Page 1 of 1

Problem with viewing image from video feed

Posted: Mon Jan 28, 2019 7:13 am
by allanon
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!

Re: Problem with viewing image from video feed

Posted: Mon Jan 28, 2019 1:23 pm
by rockedge
what operating system version are you using?

so for a while you could view the streams and now suddenly you can't?

Re: Problem with viewing image from video feed

Posted: Mon Jan 28, 2019 5:54 pm
by allanon
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

Re: Problem with viewing image from video feed

Posted: Tue Jan 29, 2019 3:39 am
by rockedge
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?

Re: Problem with viewing image from video feed

Posted: Tue Jan 29, 2019 9:45 pm
by allanon
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

Re: Problem with viewing image from video feed

Posted: Wed Jan 30, 2019 4:05 pm
by rockedge
ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
there is a syntax error here which would make it not work correctly unless you have the ZM configuration set to use
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

Posted: Thu Jan 31, 2019 1:18 am
by allanon
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.

Re: Problem with viewing image from video feed

Posted: Fri Feb 01, 2019 6:55 pm
by allanon
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.