Problem with viewing image from video feed

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
allanon
Posts: 9
Joined: Thu Jan 17, 2019 7:50 pm

Problem with viewing image from video feed

Post by allanon » Mon Jan 28, 2019 7:13 am

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!

rockedge
Posts: 1111
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Problem with viewing image from video feed

Post by rockedge » Mon Jan 28, 2019 1:23 pm

what operating system version are you using?

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

allanon
Posts: 9
Joined: Thu Jan 17, 2019 7:50 pm

Re: Problem with viewing image from video feed

Post by allanon » Mon Jan 28, 2019 5:54 pm

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

rockedge
Posts: 1111
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Problem with viewing image from video feed

Post by rockedge » Tue Jan 29, 2019 3:39 am

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?

allanon
Posts: 9
Joined: Thu Jan 17, 2019 7:50 pm

Re: Problem with viewing image from video feed

Post by allanon » Tue Jan 29, 2019 9:45 pm

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

rockedge
Posts: 1111
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Problem with viewing image from video feed

Post by rockedge » Wed Jan 30, 2019 4:05 pm

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

allanon
Posts: 9
Joined: Thu Jan 17, 2019 7:50 pm

Re: Problem with viewing image from video feed

Post by allanon » Thu Jan 31, 2019 1:18 am

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.

allanon
Posts: 9
Joined: Thu Jan 17, 2019 7:50 pm

Re: Problem with viewing image from video feed

Post by allanon » Fri Feb 01, 2019 6:55 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests