I went to the wiki and it advised:
I did that and nothing changed.If you have issues getting your camera(s) to work, you might need to edit the /usr/bin/zmdc.pl file.
Try to put the following before the my @ daemons = ( line:
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
Here is what is in the log:
The errors timestamped 10:43:49 occurred when I tried to veiw the live stream from the coamera.2017-07-31 10:43:49.904271 web_js 2118 ERR getStreamCmdResponse stream error: Socket /var/lib/zoneminder/sock/zms-178996s.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/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
2017-07-31 10:43:49.871547 web_php 2118 ERR Socket /var/lib/zoneminder/sock/zms-178996s.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/lat ... window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2033
2017-07-31 10:43:47.936870 zmc_m2 19225 INF Front-Door: 1000 - Capturing at 12.20 fps zm_monitor.cpp 3125
2017-07-31 10:42:25.957334 zmc_m2 19225 INF Priming capture from rtsp://user:password@192.168.1.20:554/user=admin_password=fKYa4j2R_channel=1_stream=0.sdp?real_stream zm_ffmpeg_camera.cpp 104
2017-07-31 10:42:25.955082 zmc_m2 19225 INF Starting Capture version 1.30.4 zmc.cpp 247
2017-07-31 10:42:25.823970 zmdc 19225 INF 'zmc -m 2' started at 17/07/31 10:42:25 zmdc.pl
2017-07-31 10:42:25.823970 zmdc 19015 INF 'zmc -m 2' starting at 17/07/31 10:42:25, pid = 19225 zmdc.pl
2017-07-31 10:42:25.697810 zmwatch 19080 INF Restarting capture daemon for Front-Door, shared data not valid zmwatch.pl
2017-07-31 10:42:20.063570 zmdc 19015 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl
2017-07-31 10:42:20.008220 zmdc 19015 INF 'zmc -m 2' starting at 17/07/31 10:42:20, pid = 19213 zmdc.pl
2017-07-31 10:42:20.008220 zmdc 19213 INF 'zmc -m 2' started at 17/07/31 10:42:20
This is what I have in my zonminder.conf file:
And this is what I have in httpd.conf:RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(zm)(.*) https://%{SERVER_NAME}/$1$2 [R,L]
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
# explicitly set index.php as the only directoryindex
DirectoryIndex disabled
DirectoryIndex index.php
SSLRequireSSL
# Options -Indexes +MultiViews +FollowSymLinks
Options +MultiViews +FollowSymLinks
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
# Order deny,allow
# Allow from all
</IfModule>
</Directory>
ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
SSLRequireSSL
AllowOverride All
Options +ExecCGI +FollowSymLinks
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
I've checked that /usr/share/zoneminder/www, /usr/libexec/zoneminder/cgi-bin and /var/www/cgi-bin/ all exist in the filesystem. I've checked that CGI is loaded using the "apachectl -M" command.ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI
Require all granted
</Directory>
In ZoneMinder's options I have the paths set like this:
PATH_ZMS = /cgi-bin-zm/nph-zms
PATH_MAP = /dev/shm
PATH_SOCKS = /var/lib/zoneminder/sock
PATH_LOGS = /var/log/zoneminder
PATH_SWAP = /dev/shm
I've read everything I can find on the internet about this, I'm at my wits end. Can sombody please help?
Thanks,
Grant Howat