Clean Debian 10 install

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
wlsitguy
Posts: 2
Joined: Tue Mar 20, 2018 7:15 pm

Clean Debian 10 install

Post by wlsitguy »

Hello all,

I just loaded a clean debian 10 install and am using the instructions here: https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

When I try to run the "systemctl start zoneminder" command it fails to start.

systemctl status zoneminder.service shows:

Code: Select all

root@security:~# systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2021-08-20 08:16:16 CDT; 5s ago
  Process: 24076 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)


journalctl -xe shows:

Code: Select all

A start job for unit zoneminder.service has finished with a failure.
-- 
-- The job identifier is 6969 and the job result is failed.
Aug 20 08:20:10 security kernel: [UFW BLOCK] IN=enp3s4f0 OUT= MAC=80:c1:6e:74:d8:d2:c0:ea:e4:e3:86:e2:08:00 SRC=205.185.
Aug 20 08:20:14 security kernel: [UFW BLOCK] IN=enp3s4f0 OUT= MAC=01:00:5e:00:00:01:3c:8c:f8:f2:6f:b0:08:00 SRC=192.168.
Aug 20 08:20:17 security systemd[1]: zoneminder.service: Service RestartSec=10s expired, scheduling restart.
Aug 20 08:20:17 security systemd[1]: zoneminder.service: Scheduled restart job, restart counter is at 29.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Automatic restarting of the unit zoneminder.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 20 08:20:17 security systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
-- Subject: A stop job for unit zoneminder.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A stop job for unit zoneminder.service has finished.
-- 
-- The job identifier is 7157 and the job result is done.
Aug 20 08:20:17 security systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
-- Subject: A start job for unit zoneminder.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A start job for unit zoneminder.service has begun execution.
-- 
-- The job identifier is 7157.
Aug 20 08:20:17 security zmpkg[24435]: INF [Sanity checking States table...]
Aug 20 08:20:17 security zmpkg[24435]: INF [Command: start]
Aug 20 08:20:17 security su[24443]: (to www-data) root on none
Aug 20 08:20:17 security su[24443]: pam_unix(su:session): session opened for user www-data by (uid=0)
I have UFW enabled, incoming ports are blocked except for SSH for remote access. Outgoing ports are open. I disabled UFW and rebooted and nothing changes when I try to start the ZM service. Any kicks in the right direction would be appreciated.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Clean Debian 10 install

Post by bbunge »

I am have run that procedure several time this week wit no issues. I do not use UFW been but that should have no effect on Zoneminder.
wlsitguy
Posts: 2
Joined: Tue Mar 20, 2018 7:15 pm

Re: Clean Debian 10 install

Post by wlsitguy »

Yes, it's odd, MySQL and Apache2 start up just fine.

I thought about going to Debian 11 or going backwards to ZM 1.34
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Clean Debian 10 install

Post by bbunge »

You might try again with Mariadb. Don't second guess the install procedures in the WIKI. They do work.
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: Clean Debian 10 install

Post by lbm »

Does /var/log/syslog gives anything ?
karimba
Posts: 9
Joined: Mon Feb 16, 2009 10:12 am

Re: Clean Debian 10 install

Post by karimba »

I Had that on mine, fresh install, kept repeating those same restart scheduled errors.
Turns out you need to install sudo, there's a zm process watcher that tries to check for a running process via sudo.

Installed, reboot, tickety boo now.

Cheers
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Clean Debian 10 install

Post by bbunge »

karimba wrote: Tue Sep 28, 2021 9:16 am I Had that on mine, fresh install, kept repeating those same restart scheduled errors.
Turns out you need to install sudo, there's a zm process watcher that tries to check for a running process via sudo.

Installed, reboot, tickety boo now.

Cheers
Interesting...
Installing sudo is something I do on a Debian install automatically. RPI Debian has sudo. Guess I will have to add a step in the WIKI procedure to make sure sudo is installed. A rainy day here in Pa. so the lawn mowing will have to wait for another day. Good to have something to do inside!
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: Clean Debian 10 install

Post by lbm »

Same on 1.34.x.
viewtopic.php?f=40&t=30720&p=122007#p121318

I've later upgraded to Debian11, zm 1.36.x.

sudo should simply just be an dependency (or the way it checks if its running using sudo changed).
Post Reply