Debian DMO2 problem starting

Forum for questions and support relating to the 1.28.x releases only.
Locked
niffum
Posts: 1
Joined: Sat Jan 17, 2015 4:45 pm

Debian DMO2 problem starting

Post by niffum »

I have a weird problem, I upgraded from 1.27 to 1.28 today and zoneminder refuses to start or spitout any errors.

I followed a suggestion in (I can't paste the link because its to spammy but its viewtopic 86415#p86415 and setup /lib/systemd/system/zoneminder.service.

Code: Select all

skank:/# service zoneminder start
Job for zoneminder.service failed. See 'systemctl status zoneminder.service' and 'journalctl -xn' for details.
skank:/# systemctl status zoneminder.service
â zoneminder.service - ZoneMinder CCTV recording and security system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled)
   Active: failed (Result: exit-code) since Sun 2015-01-18 00:52:29 AWST; 29s ago
  Process: 6946 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)
skank:/# journalctl -xn
No journal files were found.

Code: Select all

skank:/etc/init.d# tail -f /var/log/messages
Jan 18 00:52:18 skank zmpkg[6946]: INF [Command: start]
Jan 18 00:52:19 skank zmdc[6954]: INF [Server starting at 15/01/18 00:52:19]

Code: Select all

# uname -a
Linux skank 3.2.35-20150112 #3 SMP Sun Jan 11 18:31:13 AWST 2015 i686 GNU/Linux
I tried purging zoneminder and reinstalling it.

I also tried manually running the startup script:

Code: Select all

skank:/# /usr/bin/perl -wT /usr/bin/zmpkg.pl start
Job for zoneminder.service failed. See 'systemctl status zoneminder.service' and 'journalctl -xn' for details.
skank:/#
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Debian DMO2 problem starting

Post by knight-of-ni »

You are trying to start zoneminder, on a distro that is running systemd, using the legacy sys v init scripts.
This will absolutely not work.

Not only do you need to setup the zoneminder service file, but you also need to delete the old sys v init script.

This might help:
http://www.zoneminder.com/wiki/index.ph ... se_systemd

It is Ubuntu, but most of it should apply to Debian as well.
Skip the initial steps that deal with enabling systemd as that has already been done on your system.

Make sure you run

Code: Select all

sudo systemctl daemon-reload
after making a change to your systemd service files
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked