I've had ZoneMinder working for about 2 weeks. Yesterday, I wasn't able to view images from the camera. I've tried checking cgi-bin settings according to the logs, but they seem ok. I don't have a clue what would have caused this. Anyone know of where I should be looking to fix this?
Thanks!
Problem with viewing image from video feed
Re: Problem with viewing image from video feed
what operating system version are you using?
so for a while you could view the streams and now suddenly you can't?
so for a while you could view the streams and now suddenly you can't?
Re: Problem with viewing image from video feed
I'm using CentOS 7, up to date with all the latest patches.
Correct, I was able to view streams from the browser, but can't anymore. All I see is a broken graphic image link.
THis is what I pulled from my logs:
2019-01-28 00:01:16 web_php 9376 ERR Socket /var/lib/zoneminder/sock/zms-745763s.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 2048
Correct, I was able to view streams from the browser, but can't anymore. All I see is a broken graphic image link.
THis is what I pulled from my logs:
2019-01-28 00:01:16 web_php 9376 ERR Socket /var/lib/zoneminder/sock/zms-745763s.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 2048
Re: Problem with viewing image from video feed
can you reach http(s)://your-zm-server/zm/cgi-bin/nph-zms ? or can you locate the /cgi-bin/nph-zms and make sure the Apache Alias and path is configured correctly also check that the permissions and ownership of /etc/zm which contains the ZM configuration files are correctly set to the Apache user.
What is the Options->System->AUTH_RELAY set to?
What is the Options->System->AUTH_RELAY set to?
Re: Problem with viewing image from video feed
Can you reach http(s)://your-zm-server/zm/cgi-bin/nph-zms?
Results: The requested URL /zm/cgi-bin/nph-zms was not found on this server.
Can you locate the /cgi-bin/nph-zms
/usr/libexec/zoneminder/cgi-bin
lrwxrwxrwx. 1 root root 3 Jan 9 21:22 nph-zms -> zms
-rwxr-xr-x. 1 root root 1955832 Dec 19 20:53 zms
Make sure the Apache Alias and path is configured correctly
ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
Check that the permissions and ownership of /etc/zm which contains the ZM configuration files are correctly set to the Apache user.
/etc/zm is root:root
zm.conf is root:apache
files in /etc/zm/conf.d are root:apache
What is the Options->System->AUTH_RELAY set to?
hashed
Results: The requested URL /zm/cgi-bin/nph-zms was not found on this server.
Can you locate the /cgi-bin/nph-zms
/usr/libexec/zoneminder/cgi-bin
lrwxrwxrwx. 1 root root 3 Jan 9 21:22 nph-zms -> zms
-rwxr-xr-x. 1 root root 1955832 Dec 19 20:53 zms
Make sure the Apache Alias and path is configured correctly
ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
Check that the permissions and ownership of /etc/zm which contains the ZM configuration files are correctly set to the Apache user.
/etc/zm is root:root
zm.conf is root:apache
files in /etc/zm/conf.d are root:apache
What is the Options->System->AUTH_RELAY set to?
hashed
Re: Problem with viewing image from video feed
there is a syntax error here which would make it not work correctly unless you have the ZM configuration set to useScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
http://your_server/cgi-bin-zm
check the /etc/zm configuration files to see that the /cgi-bin path matches http://your_server/cgi-bin-zm
also set the AUTH_RELAY to "none" for a test
Re: Problem with viewing image from video feed
I set in zm.conf to: ZM_PATH_CGI=/usr/libexec/zoneminder/cgi-bin
zoneminder.conf set to ScriptAlias /cgi-bin "/usr/libexec/zoneminder/cgi-bin"
I restarted both zoneminder and httpd. It still isn't working.
zoneminder.conf set to ScriptAlias /cgi-bin "/usr/libexec/zoneminder/cgi-bin"
I restarted both zoneminder and httpd. It still isn't working.
Re: Problem with viewing image from video feed
Thank you for the help.
I finally uninstalled and reinstalled Zoneminder last night. Only had to add the link to /etc/httpd/conf.d and it started working properly after I added my cameras back in.
I finally uninstalled and reinstalled Zoneminder last night. Only had to add the link to /etc/httpd/conf.d and it started working properly after I added my cameras back in.