fresh install on Debian Buster

Forum for questions and support relating to 1.33.x development only.
Locked
Marcelo1986
Posts: 2
Joined: Sat Oct 19, 2019 1:55 pm

fresh install on Debian Buster

Post by Marcelo1986 »

Hello,
I did use this guide:
https://wiki.zoneminder.com/Debian_10_B ... pro_Master
I installed Debian 10 and Apache, MySQL and PHP. Then I did run the steps in the tutorial above.
When I am going to start zoneminder, I get:
~# systemctl start zoneminder
Job for zoneminder.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.

systemctl status zoneminder.service gives me the output:
● 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 Sat 2019-10-19 15:57:36 CEST; 2s ago
Process: 31121 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)

In my /var/log/syslog there is:
Oct 19 15:59:23 cam systemd[1]: zoneminder.service: Service RestartSec=10s expired, scheduling restart.
Oct 19 15:59:23 cam systemd[1]: zoneminder.service: Scheduled restart job, restart counter is at 54.
Oct 19 15:59:23 cam systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
Oct 19 15:59:23 cam systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
Oct 19 15:59:23 cam zmpkg[31284]: INF [Sanity checking States table...]
Oct 19 15:59:23 cam zmpkg[31284]: INF [Command: start]
Oct 19 15:59:24 cam systemd[1]: Started Session c115 of user www-data.
Oct 19 15:59:24 cam systemd[1]: Started Session c116 of user www-data.
Oct 19 15:59:24 cam systemd[1]: session-c115.scope: Succeeded.
Oct 19 15:59:24 cam systemd[1]: session-c116.scope: Succeeded.
Oct 19 15:59:24 cam systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
Oct 19 15:59:24 cam systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Oct 19 15:59:24 cam systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.

Would be nice if you can help me.
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: fresh install on Debian Buster

Post by clipo »

run

sudo dpkg-reconfigure zoneminder

or

cat /usr/share/zoneminder/db/zm_create.sql | sudo mysql --defaults-file=/etc/mysql/debian.cnf
echo 'grant lock tables,alter,create,select,insert,update,delete,index on zm.* to 'zmuser'@localhost identified by "zmpass";' | sudo mysql --defaults-file=/etc/mysql/debian.cnf mysql
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: fresh install on Debian Buster

Post by bbunge »

Are you trying to install zm on a Raspberry Pi?
Marcelo1986
Posts: 2
Joined: Sat Oct 19, 2019 1:55 pm

Re: fresh install on Debian Buster

Post by Marcelo1986 »

I am running a KVM-VM with Proxmox.
Even zoneminder exits with an error, all seems to run fine.
I added 10 cams and installed the Event Server and I just get alarm if a person is on the camera detected. :)
It seems after start of zoneminder.service he is doing everything what to do, but after it exists until it get restart automatically again.
Locked