(on W7 on a Q920 -- this is just a test; the deployment will be on a quad Xeon HP; installed from ZMREPO based on instructions on the page linked from zoneminder.com)
I bulled my way through a lot of stuff to get to where I have a stable monitor set up that will capture at 20fps, and can *intermittently* get a video image in a monitor window.
I'm still getting a couple recurrent errors, though, only when the view window is up, akin to the ones mentioned in this thread.
From web_php.log:
Code: Select all
06/12/17 22:57:19.010576 web_php[4326].ERR [Socket /var/lib/zoneminder/sock/zms-747369s.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.] at /usr/share/zoneminder/www/includes/functions.php line 2033
06/12/17 22:57:24.911027 web_php[3422].ERR [Socket /var/lib/zoneminder/sock/zms-747369s.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.] at /usr/share/zoneminder/www/includes/functions.php line 2033
Code: Select all
06/12/17 22:57:13.222572 web_js[3425].ERR [getStreamCmdResponse stream error: Socket /var/lib/zoneminder/sock/zms-747369s.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()] at ?view=watch line
06/12/17 22:57:13.328520 web_js[3421].ERR [TypeError: streamImg.src is undefined] at https://10.20.40.240/zm/skins/classic/views/js/watch.js line 217
06/12/17 22:57:19.096502 web_js[3420].ERR [getStreamCmdResponse stream error: Socket /var/lib/zoneminder/sock/zms-747369s.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()] at ?view=watch line
06/12/17 22:57:19.177770 web_js[3425].ERR [TypeError: streamImg.src is undefined] at https://10.20.40.240/zm/skins/classic/views/js/watch.js line 217
The embed link is this:
https://10.20.40.240/cgi-bin/zm/nph-zms ... 1497322148
and when I go there, I get an empty page, but no error in the ssl_access_log -- the request is there with a 200 status, just no video.
The undocumented problem after all the documented ones was 'setenforce 0'; that got me my first video embed, but it doesn't seem reliable.
I put the playback in mpeg mode, as you can see, but now I can't find that knob in the Options; it has a path to FFMPEG, which is the mode the monitor is in, and the binary is there and runs and has exec permissions for all, as does nph-zms. You can see what [edit:]I had to change ZMS path to, and the location [edit:]in which the repo installed nph-zms is:
/usr/libexec/zoneminder/cgi-bin/nph-zms
which [edit:]matches what the installed apache config file points to:
Code: Select all
[jra@zones zoneminder]$ cat /etc/httpd/conf.d/zoneminder.conf
#
# ZoneMinder Apache configuration file
# With SSLRequire and HTTPS auto redirect
# Modify this configuration to suit your requirements
#
# Auto Redirect HTTP requests to HTTPS
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">
SSLRequireSSL
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
SSLRequireSSL
AllowOverride All
Options ExecCGI FollowSymLinks
Order allow,deny
Allow from all
</Directory>
My shm is around 40%, my load below 3, my disk below 50%. One camera, it's an ip314-pi Trendnet, which I'm told is a Hikvision, but that model's not on the wiki page. I've set all the relevant speeds at 20fps, and that's what the logs are showing me, as long as the monitor isn't open.
As noted above, this is on a VM for testing and workout purposes; I'll have it on a real machine for deployment -- though it may be over KVM, as it has to share the box with Concerto.
Any obvious or non-obvious things I should mention?