error preventing view of video stream

Forum for questions and support relating to the 1.30.x releases only.
Locked
cc3
Posts: 1
Joined: Tue Sep 13, 2016 9:40 pm

error preventing view of video stream

Post by cc3 »

Hello,

I'm a brand new ZM user. I've got a NUC thats a few years old and I've put a fresh install of Ubuntu 16.04 and installed ZM v1.30.0 following the instructions in the user guide at http://zoneminder.readthedocs.io/en/sta ... index.html I'm really excited to get ZM working using extra equipment that I had on hand rather than a more expensive new device with a cloud subscription. ZM looks like a great solution but I'm getting an error that I can't figure out how to fix.

I'm using a logitech webcam which I did have an initial issue with it not being recognized by ZM but that seems to have been a permission issue that I was able to fix. Now it is showing as green and seems to be detecting okay but when I click on it to monitor, the stream won't load. I can see the frames as still images.

The logs are below. Any suggestions would be much appreciated.

Thanks,

Ben

2016-09-13 22:49:24.548658 web_php 30673 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:49:12.543192 web_js 30673 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:49:12.530066 web_php 30673 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:49:00.519569 web_js 4729 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:49:00.508594 web_php 4729 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:48:48.504984 web_js 4729 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:48:48.491306 web_php 4729 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:48:41.239776 zmc_dvideo0 4805 INF Monitor-4: 1000 - Capturing at 9.90 fps zm_monitor.cpp 3116
2016-09-13 22:48:36.486029 web_js 4729 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:48:36.473917 web_php 4729 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:48:24.467182 web_js 3520 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:48:24.443301 web_php 3520 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:48:12.423352 web_js 3520 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:48:12.413061 web_php 3520 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:48:00.409526 web_js 4850 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:48:00.398408 web_php 4850 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:47:48.394711 web_js 4850 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:47:48.379151 web_php 4850 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:47:36.365234 web_js 4850 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:47:36.327237 web_php 30324 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:47:24.315987 web_js 4312 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-09-13 22:47:24.298361 web_php 4312 ERR socket_sendto( /var/run/zm/zms-615261s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-13 22:47:01.516920 zmdc 4772 INF 'zmtelemetry.pl' starting at 16/09/13 22:47:01, pid = 4831 zmdc.pl
2016-09-13 22:47:01.516920 zmdc 4831 INF 'zmtelemetry.pl' started at 16/09/13 22:47:01 zmdc.pl
2016-09-13 22:47:01.349680 zmdc 4826 INF 'zmupdate.pl -c' started at 16/09/13 22:47:01 zmdc.pl
2016-09-13 22:47:01.349650 zmdc 4772 INF 'zmupdate.pl -c' starting at 16/09/13 22:47:01, pid = 4826 zmdc.pl
2016-09-13 22:47:01.326220 zmwatch 4819 INF Watchdog pausing for 30 seconds zmwatch.pl
2016-09-13 22:47:01.320560 zmwatch 4819 INF Watchdog starting zmwatch.pl
2016-09-13 22:47:01.177550 zmdc 4819 INF 'zmwatch.pl' started at 16/09/13 22:47:01 zmdc.pl
2016-09-13 22:47:01.177420 zmdc 4772 INF 'zmwatch.pl' starting at 16/09/13 22:47:01, pid = 4819 zmdc.pl
2016-09-13 22:47:01.077030 zmfilter 4807 INF Scanning for events zmfilter.pl
2016-09-13 22:47:00.982629 zmc_dvideo0 4805 WAR Hue control is not supported zm_local_camera.cpp 1810
2016-09-13 22:47:00.981170 zmdc 4812 INF 'zmaudit.pl -c' started at 16/09/13 22:47:00 zmdc.pl
2016-09-13 22:47:00.981150 zmdc 4772 INF 'zmaudit.pl -c' starting at 16/09/13 22:47:00, pid = 4812 zmdc.pl
2016-09-13 22:47:00.972915 zmc_dvideo0 4805 INF Starting Capture version 1.30.0 zmc.cpp 250
2016-09-13 22:47:00.803527 zmc_dvideo0 4805 INF No direct match for the selected palette ( zm_local_camera.cpp 412
2016-09-13 22:47:00.795167 zmc_dvideo0 4805 INF Selected capture palette: YUYV 4:2:2 (YUYV) zm_local_camera.cpp 351
2016-09-13 22:47:00.783140 zmdc 4807 INF 'zmfilter.pl' started at 16/09/13 22:47:00 zmdc.pl
2016-09-13 22:47:00.782560 zmdc 4772 INF 'zmfilter.pl' starting at 16/09/13 22:47:00, pid = 4807 zmdc.pl
2016-09-13 22:47:00.758700 zmdc 4805 INF 'zmc -d /dev/video0' started at 16/09/13 22:47:00 zmdc.pl
2016-09-13 22:47:00.758690 zmdc 4772 INF 'zmc -d /dev/video0' starting at 16/09/13 22:47:00, pid = 4805 zmdc.pl
2016-09-13 22:47:00.754660 zmdc 4772 INF Starting pending process, zmc -d /dev/video0 zmdc.pl
2016-09-13 22:47:00.752350 zmdc 4772 ERR 'zmc -d /dev/video0' exited abnormally, exit status 255 zmdc.pl
2016-09-13 22:47:00.748333 zmc_dvideo0 4800 INF No direct match for the selected palette ( zm_local_camera.cpp 412
2016-09-13 22:47:00.746501 zmc_dvideo0 4800 INF Selected capture palette: YUYV 4:2:2 (YUYV) zm_local_camera.cpp 351
2016-09-13 22:47:00.629280 zmdc 4800 INF 'zmc -d /dev/video0' started at 16/09/13 22:47:00 zmdc.pl
2016-09-13 22:47:00.629270 zmdc 4772 INF 'zmc -d /dev/video0' starting at 16/09/13 22:47:00, pid = 4800 zmdc.pl
2016-09-13 22:47:00.482680 zmpkg 4757 INF Single server configuration detected. Starting up services. zmpkg.pl
2016-09-13 22:46:57.479080 zmdc 4772 INF Server starting at 16/09/13 22:46:57 zmdc.pl
2016-09-13 22:46:57.157520 zmpkg 4757 INF Command: start zmpkg.pl
2016-09-13 22:46:57.151190 zmpkg 4757 INF Sanity checking States table... zmpkg.pl
2016-09-13 22:46:56.988370 zmsystemctl 4748 INF Redirecting command through systemctl zmsystemctl.pl
2016-09-13 22:46:56.778940 zmpkg 4742 INF Command: start zmpkg.pl
2016-09-13 22:46:56.769560 zmpkg 4742 INF Sanity checking States table... zmpkg.pl
hightees
Posts: 2
Joined: Wed Sep 14, 2016 9:03 am

Re: error preventing view of video stream

Post by hightees »

I have just installed zoneminder 1.3 today and I am having the same problem. My DCS900 camera is connected, and I can view the frames and stills of an event, but not the video stream. It is installed on an ubuntu 16.04 server edition using the instructions on the website '16.04 the easy way' and I am also getting the no such file or directory fault.
forcetrainer
Posts: 2
Joined: Wed Sep 14, 2016 10:53 am

Re: error preventing view of video stream

Post by forcetrainer »

I had a similar problem last night and was getting socket errors. After hours of searching I found that the default path in Options --> Paths --> PATH_ZMS was incorrect.

The default setting is: /cgi-bin/nph-zms
The setting should be: /zm/cgi-bin/nph-zms

The default install of the web app is /zm, so the install scripts needs to be updated. I filed an issue on Github (1623), so hopefully someone will be able to put in a quick fix.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: error preventing view of video stream

Post by knight-of-ni »

Ubuntu users should be following the "easy way" documentation in the wiki:
https://wiki.zoneminder.com/Ubuntu

There you will see that the documentation states to set your PATH_ZMS to /zm/cgi-bin/nph-zms

If you disagree with this then contact the package maintainer directly. I will tell you that there are many variables the maintainer must consider when setting this value so changing it might fix it for you but could very well break things for others.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
forcetrainer
Posts: 2
Joined: Wed Sep 14, 2016 10:53 am

Re: error preventing view of video stream

Post by forcetrainer »

Knnniggett - I commented on github, but wanted to say thanks for the quick response, and I apologize for missing that vital line. The issue is in fact well documented, and had I read closely enough I would've saved myself quite a bit of time.
hightees
Posts: 2
Joined: Wed Sep 14, 2016 9:03 am

Re: error preventing view of video stream

Post by hightees »

forcetrainer wrote:I had a similar problem last night and was getting socket errors. After hours of searching I found that the default path in Options --> Paths --> PATH_ZMS was incorrect.

The default setting is: /cgi-bin/nph-zms
The setting should be: /zm/cgi-bin/nph-zms

The default install of the web app is /zm, so the install scripts needs to be updated. I filed an issue on Github (1623), so hopefully someone will be able to put in a quick fix.
Tried that and now it works fine. Thanks. :D
Locked