zmc does not run from web

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
v.mazurenko
Posts: 3
Joined: Wed Mar 04, 2020 9:26 am

zmc does not run from web

Post by v.mazurenko »

HI everyone!
i got this errors :
/var/log/zoneminder/web_php.log

03/04/20 14:18:42.317826 web_php[5350].ERR [192.168.5.14] [Socket /var/lib/zoneminder/sock/zms-417005s.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.] at /usr/share/zoneminder/www/includes/functions.php line 2170


/var/log/zoneminder/zmwatch.log

03/04/2020 09:40:15.693603 zmwatch[1823].ERR [ZoneMinder::Memory::Mapped:96] [Memory map file '/dev/shm/zm.mmap.1' should have been 1160 but was instead 0]
03/04/2020 09:40:15.707525 zmwatch[1823].INF [main:136] [Restarting capture daemon for TestMonitor-1, shared data not valid]
03/04/2020 09:40:15.869318 zmwatch[1823].WAR [ZoneMinder::Memory:379] [no memkey in zmMemInvalidate]


Config :
/etc/httpd/conf.d/zoneminder.httpd.conf:

ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
SSLRequireSSL
AllowOverride None
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>


/etc/zm/conf.d/01-system-paths.conf:

# ZoneMinder url path to the zms streaming server
ZM_PATH_ZMS=/zm/cgi-bin-zm/nph-zms


ls /usr/libexec/zoneminder/cgi-bin
nph-zms zms

When i write from console zmc -m 1 then reload web page monitor starts working
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zmc does not run from web

Post by bbunge »

Linux distro and version?
Instructions used to install Zoneminder?
v.mazurenko
Posts: 3
Joined: Wed Mar 04, 2020 9:26 am

Re: zmc does not run from web

Post by v.mazurenko »

bbunge wrote: Wed Mar 04, 2020 12:50 pm Linux distro and version?
Instructions used to install Zoneminder?
Distro : Centos 7
ZM Version : version 1.34.3 ( RMP FUSION )
Instructions : https://zoneminder.readthedocs.io/en/1. ... and-clones and /usr/share/doc/zoneminde/README
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: zmc does not run from web

Post by rockedge »

hello v.mazurenko,

I have also seen this error recently as well. for a camera using "Remote" I have to use zmc -m 2 from a terminal and then it works.
Puppy Linux Tahr 6.0.5 ZM 1.35 zoneminder-master

I upgraded from 1.30.4 which had worked perfectly. I am testing with the set up so something was expected. I am tying to hammer out what is wrong exactly.
v.mazurenko
Posts: 3
Joined: Wed Mar 04, 2020 9:26 am

Re: zmc does not run from web

Post by v.mazurenko »

i found that process restarts every few minutes. Look at PID

apache 4284 1.6 0.8 518712 16324 ? S 08:29 0:00 /usr/bin/zmc -m 1

after few minutes:

apache 4319 5.0 0.8 518712 16324 ? S 08:29 0:00 /usr/bin/zmc -m 1


Also noticed :

apache 4979 0.3 0.8 518712 16328 ? S 08:38 0:00 /usr/bin/zmc -m 1
apache 4997 9.0 0.6 277396 11604 ? R 08:38 0:00 /usr/bin/perl -wT /usr/bin/zmdc.pl restart zmc -m 1


[root@zm ~]# zmwatch.pl
03/05/2020 08:39:36.468091 zmwatch[5069].INF [main:72] [Watchdog starting, pausing for 30 seconds]
03/05/2020 08:40:06.488784 zmwatch[5069].ERR [ZoneMider::Memory::Mapped:96] [Memory map file '/dev/shm/zm.mmap.1' should have been 1160 but was instead 0]
03/05/2020 08:40:06.502356 zmwatch[5069].INF [main:136] [Restarting capture daemon for TestMonitor, shared data not valid]
03/05/2020 08:40:06.711341 zmwatch[5069].WAR [ZoneMinder::Memory:379] [no memkey in zmMemInvalidate]
Post Reply