Page 1 of 1

Err: ZoneMinder CCTV recording and surveillance system

Posted: Tue Jan 28, 2020 8:12 am
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.

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Tue Jan 28, 2020 3:39 pm
by bbunge
Those are procedures for new install not upgrade.

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Wed Jan 29, 2020 4:14 am
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.

Re: Err: ZoneMinder CCTV recording and surveillance system

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

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Wed Jan 29, 2020 10:16 am
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

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Wed Jan 29, 2020 11:03 am
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

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Wed Jan 29, 2020 11:37 am
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.

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Wed Jan 29, 2020 11:43 am
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

Re: Err: ZoneMinder CCTV recording and surveillance system

Posted: Wed Jan 29, 2020 12:03 pm
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