No video Streaming
Posted: Fri Dec 14, 2018 3:29 pm
I installed zoneminder a couple weeks ago and everything appeared to work fine. My goal was to use zoneminder to record data and to make a connection to Home Assistant. Unfortunately the connection to Home Assistant did not work, after several days of effort I found out that the zoneminder API was not installed correctly; no API Plugin. I uninstalled zoneminder and its dependencies and reinstalled per https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way . It now appears at least that the API is functioning; the Plugin folder is installed and I can connect from home assistance. The issue I have now is that there is no video streaming. I tried following all the suggestions in the http://zoneminder.readthedocs.io/en/lat ... window-etc these are listed below, just not sure I understand how everything is linked. Any help is appreciated.
Key information:
1. From the command line validated cgi enabled
2. Validated PATH_ZMS = /zm/cgi-bin/nph-zms
3. Zoneminder.conf (/etc/apache2/conf-enabled/zoneminder.conf )
4. Directory and permissions
- The zoneminder capture is working in that events are being captured and recorded.
- I could not find anything in /var/log/zm. Is this the correct place for the zoneminder log?
- Apache logs
/var/log/apache2/access.log the log is empty
/var/log/apache2/error.log has the same information that is show in the zoneminder error log below.
- Zoneminder separate server running on Debian Stretch.
- Zoneminder version 1.30.4
Code: Select all
Web_js
getStreamCmdResponse stream error: Socket /var/run/zm/zms-233675s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit.Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()
?view=watch
Code: Select all
Web_php
Socket /var/run/zm/zms-233675s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.
/usr/share/zoneminder/www/includes/functions.php
Key information:
1. From the command line validated cgi enabled
Code: Select all
root@Server1:/etc/apache2/conf-enabled# a2enmod cgi
Module cgi already enabled
root@Server1:/etc/apache2/conf-enabled# a2enconf serve-cgi-bin.conf
Conf serve-cgi-bin already enabled
root@Server1:/etc/apache2/conf-enabled#
3. Zoneminder.conf (/etc/apache2/conf-enabled/zoneminder.conf )
Code: Select all
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
php_flag register_globals off
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>
Code: Select all
/usr/lib/cgi-bin/
lrwxrwxrwx 1 root root 29 Jul 10 2017 nph-zms -> ../zoneminder/cgi-bin/nph-zms
lrwxrwxrwx 1 root root 29 Dec 12 10:30 php -> /etc/alternatives/php-cgi-bin
-rwxr-xr-x 1 root root 3.9M Dec 7 04:36 php7.0
lrwxrwxrwx 1 root root 25 Jul 10 2017 zms -> ../zoneminder/cgi-bin/zms
Code: Select all
/usr/lib/zoneminder/cgi-bin
lrwxrwxrwx 1 root root 3 Jul 10 2017 nph-zms -> zms
-rwxr-xr-x 1 root root 1.3M Jul 10 2017 zms
root@Server1:/usr/lib/zoneminder/cgi-bin#