socket_sendto (socketname) failed: No such file or directory

Forum for questions and support relating to the 1.27.x releases only.
Locked
mpco
Posts: 6
Joined: Thu Sep 06, 2012 5:25 pm

socket_sendto (socketname) failed: No such file or directory

Post by mpco »

For ZM 1.27 installed from source on a fully updated 64bit Centos 6.5 machine, I'm having issues getting live video or making events. This is the offending lines in the syslog are:

Code: Select all

zms[30133]: ERR [Terminating, last frame sent time 1397507107.457537 secs more than maximum of 10.000000]
web_php[27192]: ERR [socket_sendto( /tmp/zm/zms-857539s.sock ) failed: No such file or directory]
web_js[27190]: ERR [getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-227767s.sock ) failed: No such file or directory - checkStreamForErrors()]
I've searched the forum and most of the darkest reaches of the web for info about this problem, but it still has me stuck. I've tried a variety of things including starting completely over with a fresh install as well as trying an older version. Here's what I know and some things I've tried so far:
  • CGI is working, I tested it with a simple perl script, nph-zms and zms are in /var/www/cgi-bin/
  • Firewall and SElinux are disabled
  • Camera is a Edimax IC-3115W, over the network
  • If I hook a usb webcam up to /dev/video0, it works fine, can stream and record video
  • I don't think it's a permission issue, as I can see zms-857539w.sock (note the 'w' instead of 's') show up for a moment in /tmp/zm when I try to view the monitor
  • Changed permissions of /tmp/zm to 777
  • If I look at the log in the camera, it looks like ZM is opening a stream to it
  • I can view the stream fine by inputting the camera mjpg stream in a web browser
  • I've tried lots of futzing with the source options hoping something would change, but to no avail
If I turn on debugging 5 I get this like crazy in the debug log file:

Code: Select all

04/14/14 15:51:05.936439 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/187 [Expecting 11584 bytes]
04/14/14 15:51:05.936548 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/212 [Read 11584 bytes]
04/14/14 15:51:05.936979 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/929 [Unable to extract subheader from stream, retrying]
04/14/14 15:51:05.937000 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/187 [Expecting 1448 bytes]
04/14/14 15:51:05.937018 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/212 [Read 1448 bytes]
04/14/14 15:51:05.937081 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/929 [Unable to extract subheader from stream, retrying]
04/14/14 15:51:05.937860 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/187 [Expecting 8688 bytes]
04/14/14 15:51:05.937938 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/212 [Read 8688 bytes]
04/14/14 15:51:05.938175 zmc_m1[29248].DB3-zm_remote_camera_http.cpp/929 [Unable to extract subheader from stream, retrying]
Any ideas on what else to try? I'm not sure if it's a problem with ZM, or the camera. I can't find too much info about the camera or people getting it to work with ZM. About the only thing I found that bothered me was about a different model (1500) having a strange form of mjpg.

Thanks for any ideas!
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: socket_sendto (socketname) failed: No such file or direc

Post by linuxsense »

What is the configuration of the camera in zoneminder?

It does not seem like a permission problem but make sure that whatever user zoneminder is running as is in the group that has read access to /dev/videoX (add www-data to group 'video' in /etc/group and reboot), but since this is an IP cam it shouldn't matter.
mpco
Posts: 6
Joined: Thu Sep 06, 2012 5:25 pm

Re: socket_sendto (socketname) failed: No such file or direc

Post by mpco »

IC-3115W config
IC-3115W config
Capture.PNG (95.16 KiB) Viewed 3722 times
Pretty much everything not on this page is still at the default value. I've tried messing with the buffers and resolution and stuff, but it didn't seem to change anything.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: socket_sendto (socketname) failed: No such file or direc

Post by linuxsense »

mpco
Posts: 6
Joined: Thu Sep 06, 2012 5:25 pm

Re: socket_sendto (socketname) failed: No such file or direc

Post by mpco »

That does indeed look like the problem. That post gave me the idea to try the snapshot.jpg url instead of the mjpg stream, which works well enough for what I want to do. Hopefully if anyone else that's having the socket problem runs across this, they can be aware that it might be the camera config. Thanks!
Locked