Fedora 23 zm 1.29.0 cannot see any streaming [solved]

Forum for questions and support relating to the 1.29.x releases only.
Locked
linforpros
Posts: 39
Joined: Fri Jan 29, 2016 6:12 pm

Fedora 23 zm 1.29.0 cannot see any streaming [solved]

Post by linforpros »

Hello, zoneminder was installed from zmrepo for fedora 23.
I am trying to connect the following public camera just for testing:
http://212.170.22.153:8080/mjpg/video.mjpg

It works in firefox and chrome. It seems to be set as 640x360

I set everything up in zoneminder as seen in the attachment. The log however is showing that:
2016-01-29 12:34:35.806950 web_php 7104 ERR socket_sendto( /var/lib/zoneminder/sock/zms-922918s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371


2016-01-29 12:34:25.434190 zmdc 8601 WAR Can't find process with command of 'zma -m 3' zmdc.pl


Do you have any hints for me?
Thank you
Linforpros
Attachments
Screenshot from 2016-01-29 12-34-07.png
Screenshot from 2016-01-29 12-34-07.png (60.65 KiB) Viewed 6198 times
Last edited by linforpros on Sat Jan 30, 2016 3:33 am, edited 1 time in total.
best regards
LinforPros
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Fedora 23 zm 1.29.0 cannot see any streaming

Post by knight-of-ni »

That camera stream came right up on my Fedora 23 system.
The frame rate was low, but the live view worked.

Please post your full log output from the moment zoneminder is started until just after the first round of errors come in.
During this test do not attempt to open any of your monitors. Be patient and give it a few minutes. If you don't see any error messages, but instead see messages like "Capturing at x.xx fps" then you can stop.

Also, please post the contents of your ZoneMinder apache config file found under /etc/httpd/conf.d and the value of PATH_ZMS found under Options from the web console.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Fedora 23 zm 1.29.0 cannot see any streaming

Post by bbunge »

Camera came right up on my Ubuntu server with your settings.

Check PATH_ZMS You may have to set it to: /zm/cgi-bin/nph-zms

You did enable CGI in Apache?
linforpros
Posts: 39
Joined: Fri Jan 29, 2016 6:12 pm

Re: Fedora 23 zm 1.29.0 cannot see any streaming

Post by linforpros »

hello, thank you for the hint.
Here is the journalctl -u zoneminder output

Code: Select all


Jan 29 20:36:46 localhost.localdomain systemd[1]: Starting ZoneMinder CCTV recording and security system...
Jan 29 20:36:46 localhost.localdomain zmpkg[1982]: INF [Sanity checking States table...]
Jan 29 20:36:46 localhost.localdomain zmpkg[1982]: INF [Command: start]
Jan 29 20:36:46 localhost.localdomain zmdc[1995]: INF [Server starting at 16/01/29 20:36:46]
Jan 29 20:36:49 localhost.localdomain zmpkg[1982]: INF [Starting up services]
Jan 29 20:36:49 localhost.localdomain zmdc[1995]: INF ['zmc -m 3' starting at 16/01/29 20:36:49, pid = 2021]
Jan 29 20:36:49 localhost.localdomain zmdc[2021]: INF ['zmc -m 3' started at 16/01/29 20:36:49]
Jan 29 20:36:49 localhost.localdomain zmdc[1995]: ERR ['zmc -m 3' exited abnormally, exit status 255]
Jan 29 20:36:49 localhost.localdomain zmdc[1995]: INF [Starting pending process, zmc -m 3]
Jan 29 20:36:50 localhost.localdomain zmdc[1995]: INF ['zmc -m 3' starting at 16/01/29 20:36:50, pid = 2028]
Jan 29 20:36:50 localhost.localdomain zmdc[2028]: INF ['zmc -m 3' started at 16/01/29 20:36:50]
Jan 29 20:36:50 localhost.localdomain zmdc[1995]: INF ['zmfilter.pl' starting at 16/01/29 20:36:50, pid = 2032]
Jan 29 20:36:50 localhost.localdomain zmdc[2032]: INF ['zmfilter.pl' started at 16/01/29 20:36:50]
Jan 29 20:36:50 localhost.localdomain zmc_m3[2028]: INF [Starting Capture version 1.29.0]
Jan 29 20:36:50 localhost.localdomain zmdc[2042]: INF ['zmaudit.pl -c' started at 16/01/29 20:36:50]
Jan 29 20:36:50 localhost.localdomain zmdc[1995]: INF ['zmaudit.pl -c' starting at 16/01/29 20:36:50, pid = 2042]
Jan 29 20:36:50 localhost.localdomain zmfilter[2032]: INF [Scanning for events]
Jan 29 20:36:50 localhost.localdomain zmdc[1995]: INF ['zmwatch.pl' starting at 16/01/29 20:36:50, pid = 2052]
Jan 29 20:36:50 localhost.localdomain zmdc[2052]: INF ['zmwatch.pl' started at 16/01/29 20:36:50]
Jan 29 20:36:50 localhost.localdomain zmwatch[2052]: INF [Watchdog starting]
Jan 29 20:36:50 localhost.localdomain zmdc[1995]: INF ['zmupdate.pl -c' starting at 16/01/29 20:36:50, pid = 2063]
Jan 29 20:36:50 localhost.localdomain zmdc[2063]: INF ['zmupdate.pl -c' started at 16/01/29 20:36:50]
Jan 29 20:36:50 localhost.localdomain zmwatch[2052]: INF [Watchdog pausing for 30 seconds]
Jan 29 20:36:50 localhost.localdomain systemd[1]: Started ZoneMinder CCTV recording and security system.


Below is a cut and paste log from web interface:

Code: Select all


2016-01-29 20:47:05.573140	zmc_m3		2028	INF	ipcamera: 1000 - Capturing at 1.63 fps	zm_monitor.cpp	3128
2016-01-29 20:36:50.741030	zmwatch		2052	INF	Watchdog pausing for 30 seconds	zmwatch.pl	
2016-01-29 20:36:50.730050	zmdc		1995	INF	'zmupdate.pl -c' starting at 16/01/29 20:36:50, pid = 2063	zmdc.pl	
2016-01-29 20:36:50.730050	zmdc		2063	INF	'zmupdate.pl -c' started at 16/01/29 20:36:50	zmdc.pl	
2016-01-29 20:36:50.719540	zmwatch		2052	INF	Watchdog starting	zmwatch.pl	
2016-01-29 20:36:50.539360	zmdc		2052	INF	'zmwatch.pl' started at 16/01/29 20:36:50	zmdc.pl	
2016-01-29 20:36:50.537590	zmdc		1995	INF	'zmwatch.pl' starting at 16/01/29 20:36:50, pid = 2052	zmdc.pl	
2016-01-29 20:36:50.431040	zmfilter		2032	INF	Scanning for events	zmfilter.pl	
2016-01-29 20:36:50.292460	zmdc		2042	INF	'zmaudit.pl -c' started at 16/01/29 20:36:50	zmdc.pl	
2016-01-29 20:36:50.292450	zmdc		1995	INF	'zmaudit.pl -c' starting at 16/01/29 20:36:50, pid = 2042	zmdc.pl	
2016-01-29 20:36:50.147366	zmc_m3		2028	INF	Starting Capture version 1.29.0	zmc.cpp	250
2016-01-29 20:36:50.069970	zmdc		2032	INF	'zmfilter.pl' started at 16/01/29 20:36:50	zmdc.pl	
2016-01-29 20:36:50.067990	zmdc		1995	INF	'zmfilter.pl' starting at 16/01/29 20:36:50, pid = 2032	zmdc.pl	
2016-01-29 20:36:50.021000	zmdc		2028	INF	'zmc -m 3' started at 16/01/29 20:36:50	zmdc.pl	
2016-01-29 20:36:50.018270	zmdc		1995	INF	'zmc -m 3' starting at 16/01/29 20:36:50, pid = 2028	zmdc.pl	
2016-01-29 20:36:49.991090	zmdc		1995	INF	Starting pending process, zmc -m 3	zmdc.pl	
2016-01-29 20:36:49.970660	zmdc		1995	ERR	'zmc -m 3' exited abnormally, exit status 255	zmdc.pl	
2016-01-29 20:36:49.872270	zmdc		2021	INF	'zmc -m 3' started at 16/01/29 20:36:49	zmdc.pl	
2016-01-29 20:36:49.872270	zmdc		1995	INF	'zmc -m 3' starting at 16/01/29 20:36:49, pid = 2021	zmdc.pl	
2016-01-29 20:36:49.706310	zmpkg		1982	INF	Starting up services	zmpkg.pl	
2016-01-29 20:36:46.702550	zmdc		1995	INF	Server starting at 16/01/29 20:36:46	zmdc.pl	
2016-01-29 20:36:46.359830	zmpkg		1982	INF	Command: start	zmpkg.pl	
2016-01-29 20:36:46.333270	zmpkg		1982	INF	Sanity checking States table...	zmpkg.pl
PATH_ZMS=/cgi-bin/zm/nph-zms


and finally the apache zoneminder config:

Code: Select all


[root@localhost ~]# 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
    <IfModule mod_authz_core.c>
       # Apache 2.4
       Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Directory>

ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
    SSLRequireSSL
    AllowOverride All
    Options +ExecCGI +FollowSymLinks
    <IfModule mod_authz_core.c>
       # Apache 2.4
       Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Directory>

and for completness:
[root@localhost ~]# getenforce
Permissive

I wonder if that matters that zoneminder has only one interface eth0 and is attached to a router. Would that prevent it to stream to a browser that is sitting right next to it on a separate machine also connected to the same router?

regards,
Linforpros
best regards
LinforPros
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Fedora 23 zm 1.29.0 cannot see any streaming

Post by knight-of-ni »

Your path zms is incorrect. It should be /cgi-bin-zm/nph-zms and not /cgi-bin/zm/nph-zms

UPDATE: This was an error in the Fedora package for new installs. Thanks for uncovering that.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
linforpros
Posts: 39
Joined: Fri Jan 29, 2016 6:12 pm

Re: Fedora 23 zm 1.29.0 cannot see any streaming

Post by linforpros »

It seems to be working after /cgi-bin-zm/nph-zms was put into PATH_ZMS to mimic what is in the "scriptAlias" directive in the apache config.
This is a pristine install on baremetal fedora 23 from zmrepo. I follow the instructions from the guys: https://zmrepo.zoneminder.com
wget http://zmrepo.zoneminder.com/f/23/i386/ ... noarch.rpm
sudo yum install --nogpgcheck zmrepo-23-2.fc23.noarch.rpm
sudo yum install zoneminder
less /usr/share/doc/zoneminder/README.Fedora

So I am a little surprised since it says in the README:

Code: Select all

1. The Apache ScriptAlias has been changed from "/cgi-bin/zm/zms" to 
   "/cgi-bin-zm/zms". This has been to done to avoid this bug:
   https://bugzilla.redhat.com/show_bug.cgi?id=973067

   IMPORTANT: ZoneMinder will not update this value during an upgrade. You must
   manually update ZM_PATH_ZMS yourself under Options. This does not affect
   new installs.
and it is a new installation. Besides it slipped my attention because the variable ZM_PATH_ZMS does not exist anymore in 1.29.0. It has become instead a PATH_ZMS.


But anyhow I am glad you guys helped me realized what was wrong.

regards,
Linforpros
best regards
LinforPros
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Fedora 23 zm 1.29.0 cannot see any streaming [solved]

Post by knight-of-ni »

PATH_ZMS is just shorthand for ZM_PATH_ZMS. They are in fact the same variable. Like all the other variables under Options, the ZM_ prefix simply isn't shown.

Initially I did think that you had simply not stated the database was existing possibly from a previous attempt, which would have explained the incorrect PATH_ZMS. However, I took a look at the rpm spec file and found the cause. It has been fixed.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked