Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
zoneminder not working[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1382

PostPosted: Fri Feb 07, 2020 4:34 pm    Post subject: zoneminder not working[solved] Reply with quote

I'm using the following guide to configure zone minder
when i get to starting the ervices, php-fpm service does not exist, so i start the apache and mysqld services and the zoneminder service fails with:
Code:
systemctl status zoneminder.service
● zoneminder.service - Video Security and Survellance System
   Loaded: loaded (/lib/systemd/system/zoneminder.service; disabled; vendor preset: disabled)
   Active: failed (Result: protocol) since Fri 2020-02-07 18:30:25 EET; 15s ago
  Process: 69680 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
      CPU: 745ms

Feb 07 18:30:22 cherry su[70015]: + ??? root:apache
Feb 07 18:30:22 cherry su[70015]: pam_unix(su:session): session opened for user apache by (uid=0)
Feb 07 18:30:23 cherry zmpkg.pl[69680]: Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in rege>
Feb 07 18:30:24 cherry zmpkg.pl[69680]: Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in rege>
Feb 07 18:30:23 cherry su[70015]: pam_unix(su:session): session closed for user apache
Feb 07 18:30:26 cherry zmpkg.pl[69680]: Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in rege>
Feb 07 18:30:25 cherry systemd[1]: zoneminder.service: New main PID 69777 does not belong to service, and PID file is not owned by root. Refusing.
Feb 07 18:30:25 cherry systemd[1]: zoneminder.service: New main PID 69777 does not belong to service, and PID file is not owned by root. Refusing.
Feb 07 18:30:25 cherry systemd[1]: zoneminder.service: Failed with result 'protocol'.
Feb 07 18:30:25 cherry systemd[1]: Failed to start Video Security and Survellance System.



any hints?
the apache use and group are the same as the conf file:
excerpt from zm.conf:
Code:
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache


Code:
cherry ~ # ps aux | grep apache
root       62595  0.0  0.4  27000  9008 ?        Ss   18:28   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D PHP -D PROXY -DFOREGROUND
apache     62705  0.0  0.2 1952332 5388 ?        Sl   18:28   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D PHP -D PROXY -DFOREGROUND
apache     62706  0.0  0.2 2017868 5388 ?        Sl   18:28   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D PHP -D PROXY -DFOREGROUND
apache     69758  0.1  0.2   9576  5024 ?        Ss   18:30   0:00 /lib/systemd/systemd --user
apache     69760  0.0  0.0  93344  1628 ?        S    18:30   0:00 (sd-pam)
apache     69777  0.1  0.7  32832 14976 ?        S    18:30   0:00 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
apache     69969  0.5  1.5  44060 29544 ?        S    18:30   0:00 /usr/bin/perl -wT /usr/bin/zmfilter.pl
apache     69995  0.4  1.0  34188 19548 ?        S    18:30   0:00 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
apache     70202  0.3  0.9  32284 17776 ?        S    18:30   0:00 /usr/bin/perl -wT /usr/bin/zmwatch.pl
apache     70487  0.5  1.1  35848 21640 ?        S    18:30   0:00 /usr/bin/perl -w /usr/bin/zmupdate.pl -c
apache     70797  0.4  1.1  36072 21888 ?        S    18:30   0:00 /usr/bin/perl -w /usr/bin/zmtelemetry.pl
root       82545  0.0  0.0   7144   692 pts/3    S+   18:32   0:00 grep --colour=auto apache



Last edited by Adel Ahmed on Fri Mar 06, 2020 7:40 am; edited 1 time in total
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1578

PostPosted: Wed Feb 19, 2020 4:03 pm    Post subject: Reply with quote

Are you running systemd? It seems to me the file
Code:
zmpkg.pl
is complaining about getting some bad data.
I would make sure your perl install is up to date.
and make sure you can connect to your zoneminder database on the cmd line.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1382

PostPosted: Fri Mar 06, 2020 7:39 am    Post subject: Reply with quote

I remoevd zoneminder and wil erly on ffmpeg instead
thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum