socket_sendto error intermittently. Feeds are up

Forum for questions and support relating to the 1.29.x releases only.
Locked
hummvee2134
Posts: 2
Joined: Mon Jan 29, 2018 10:33 pm

socket_sendto error intermittently. Feeds are up

Post by hummvee2134 »

Hey Everyone,

I just set up a zoneminder 1.29 on a raspberry pi running "jessie"

I'm able to add my cameras and i can see the streams from the cameras just fine. However, if i have the montage view up, every so often a camera will freeze and i'll see the following in logs:

Jan 29 22:58:13 raspberrypi web_php[1538]: ERR [socket_sendto( /var/run/zm/zms-734563s.sock ) failed: No such file or directory]

if i LS that directory, sure enough the file is missing:
srwxr-xr-x 1 www-data www-data 0 Jan 29 22:53 zmdc.sock
-rw-r--r-- 1 www-data www-data 4 Jan 29 22:53 zm.pid
-rw------- 1 www-data www-data 0 Jan 29 22:59 zms-794677.lock
srwxr-xr-x 1 www-data www-data 0 Jan 29 22:59 zms-794677s.sock

If i reload montage, both streams come back and LS will show that as well:

pi@raspberrypi:/var/run/zm $ ls -l
total 4
srwxr-xr-x 1 www-data www-data 0 Jan 29 22:53 zmdc.sock
-rw-r--r-- 1 www-data www-data 4 Jan 29 22:53 zm.pid
-rw------- 1 www-data www-data 0 Jan 29 23:05 zms-134186.lock
srwxr-xr-x 1 www-data www-data 0 Jan 29 23:05 zms-134186s.sock
-rw------- 1 www-data www-data 0 Jan 29 23:05 zms-601469.lock
srwxr-xr-x 1 www-data www-data 0 Jan 29 23:05 zms-601469s.sock

now i know from my googling, that this error is relatively common on new installs where the ZMS path is set wrong. I don't believe this to be the case here since my streams actually do work, they just intermittently fail.

Any insight would be greatly appreciated.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: socket_sendto error intermittently. Feeds are up

Post by bbunge »

Socket Sendto errors are not fatal and likely the result of the browser. I have several PC's set to view montage in one building and was seeing a lot of these errors. PC's using Firefox. I found an add on that refreshes the browser every 5 minutes and the errors (almost) stopped!
User avatar
snake
Posts: 337
Joined: Sat May 21, 2016 2:20 am

Re: socket_sendto error intermittently. Feeds are up

Post by snake »

Another option for refreshing is xdotool. I've documented that here:
https://wiki.zoneminder.com/Dedicated_S ... riodically

I use surf (for <6 cameras only), but any browser could be used.

There are some addons for FF, but may require esr, possibly. (52)
hummvee2134
Posts: 2
Joined: Mon Jan 29, 2018 10:33 pm

Re: socket_sendto error intermittently. Feeds are up

Post by hummvee2134 »

Okay the browser refresh would certainly be a good workaround. I was wondering if that stream disappearing could also be a result of network connectivity from my cameras. They're WiFi and they drop quite a bit of traffic.

I suppose I can do a little more testing to rule that in or out.

Thanks again
Locked