Code: Select all
Socket /var/lib/zoneminder/sock/zms-482603s.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.
To check this I replaced the zms and nph-zms binaries will shell scripts that logged to /tmp/{nph-,}zms.log every time they were invoked. After attempting to view the console I didn't see any entries in those files. So it seems zms is not being invoked....either zms did not run, or zms exited early.
I went to the Options >> Logging tab and turned on debug logging for the target "_zms". Nothing of interest has appeared in /var/log/zoneminder/. For a short while I had debug logging turned on for the web interface as well but it didn't provide any additional information so I turned it off. It at least confirmed that the log directory is writable.Please check your zms logs
As far as I can tell, it's enabled.... and ensure that CGI is enabled in apache ...
Code: Select all
<IfModule !mpm_prefork_module>
LoadModule cgid_module modules/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module modules/mod_cgi.so
</IfModule>
I installed zoneminder via the zoneminder-git AUR package. The PKGBUILD is pretty broken, so I did make some minor adjustments to update a dependency and set some paths. Maybe this is where I went wrong. Prior to fixing the configuration directory path in the PKGBUILD I got errors in Apache's error_log saying there were undefined constants. The constants aligned with the ones in /etc/conf.d/*, which I fixed to be /etc/zm/conf.d/*. Those have all gone away now so I believe I have that setup correctly.... and check that the PATH_ZMS is set correctly.
Code: Select all
- git://github.com/FriendsOfCake/crud.git
+ git://github.com/ZoneMinder/crud.git
- -DZM_SOCKDIR=/var/lib/zoneminder/sock .
+ -DZM_SOCKDIR=/var/lib/zoneminder/sock . \
+ -DZM_CONFIG_DIR=/etc/zm \
+ -DZM_CONFIG_SUBDIR=/etc/zm/conf.d
- chown -v http.http $pkgdir/etc/zm.conf
- chmod 0700 $pkgdir/etc/zm.conf
+ chown -v http.http $pkgdir/etc/zm/zm.conf
+ chmod 0700 $pkgdir/etc/zm/zm.conf
Code: Select all
ZM_PATH_ZMS=/cgi-bin/nph-zms
It's kind of hard to tell this, since the web UI is not loading. I do get snapshots in my recording directory sporadically.Make sure that ZM is actually recording.
ZMC is running and has a stable process ID, suggesting it is not boot looping.If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit.
This link puts forth two options. I'm not running IE (lol), so that's not it. The ScriptAlias is setup to be the correct path as far asPlease go to ... for more informatiion
Code: Select all
ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"