Err: ZoneMinder CCTV recording and surveillance system

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
chebo
Posts: 29
Joined: Wed Mar 16, 2016 4:38 am

Err: ZoneMinder CCTV recording and surveillance system

Post by chebo »

Hello. I am using version v1.31.44. I have problems with the cameras through vpn. At 1.34, there seems to be no such problem.

I tried to update through the Deb package, repository and installation on the new system by
instruction: https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

In any case, an error appears in systemd:

Code: Select all

-- The process' exit code is 'exited' and its exit status is 1.
янв 28 11:10:45 d1-ohr1 systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
янв 28 11:10:45 d1-ohr1 systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: Unit failed zoneminder.service
-- Defined-By: systemd
-- Support: https://www.debian.org/support
Zm itself seems to work, but you can’t stop it through zmpkg or web. There are no errors in the zm log.
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by bbunge »

Those are procedures for new install not upgrade.
chebo
Posts: 29
Joined: Wed Mar 16, 2016 4:38 am

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by chebo »

bbunge wrote: Tue Jan 28, 2020 3:39 pm Those are procedures for new install not upgrade.
The result when installing on a clean system is the same.
lbm
Posts: 89
Joined: Mon Mar 26, 2018 7:44 pm

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by lbm »

Whats the content of "/lib/systemd/system/zoneminder.service" ?
chebo
Posts: 29
Joined: Wed Mar 16, 2016 4:38 am

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by chebo »

lbm wrote: Wed Jan 29, 2020 9:17 am Whats the content of "/lib/systemd/system/zoneminder.service" ?

Code: Select all

# ZoneMinder systemd unit file
# This file is intended to work with Debian distributions

[Unit]
Description=ZoneMinder CCTV recording and surveillance system
After=network.target mysql.service
# Remarked out so that it will start ZM on machines that don't have mysql installed
#Requires=mysql.service

[Service]
#User=www-data
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile=/run/zm/zm.pid
Restart=always
RestartSec=10
Environment=TZ=:/etc/localtime
TimeoutSec=600

[Install]
WantedBy=multi-user.target
lbm
Posts: 89
Joined: Mon Mar 26, 2018 7:44 pm

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by lbm »

Try to remove the comment on the "User" line, right under [service] and then run

Code: Select all

systemctl daemon-reload
systemctl start zoneminder
chebo
Posts: 29
Joined: Wed Mar 16, 2016 4:38 am

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by chebo »

lbm wrote: Wed Jan 29, 2020 11:03 am Try to remove the comment on the "User" line, right under [service] and then run

Code: Select all

systemctl daemon-reload
systemctl start zoneminder
The problem persists.
lbm
Posts: 89
Joined: Mon Mar 26, 2018 7:44 pm

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by lbm »

Can you provide some more log lines from daemon.log syslog, journalctl -xe ?

Also, make sure that no zm processes are running at all..
I've described the exact steps here ? BUT it might be, that the problem is NOT the same.
viewtopic.php?f=40&t=28958#p113369
chebo
Posts: 29
Joined: Wed Mar 16, 2016 4:38 am

Re: Err: ZoneMinder CCTV recording and surveillance system

Post by chebo »

lbm wrote: Wed Jan 29, 2020 11:43 am Can you provide some more log lines from daemon.log syslog, journalctl -xe ?

Also, make sure that no zm processes are running at all..
I've described the exact steps here ? BUT it might be, that the problem is NOT the same.
viewtopic.php?f=40&t=28958#p113369
I did:

Code: Select all

systemctl stop zoneminder
killall /usr/bin/perl
zmupdate.pl
Apparently it just needed a reboot. Surprisingly, this solved the problem. Thank you
Post Reply