Newbie Here trying to get Zone Minder Up

Forum for questions and support relating to the 1.30.x releases only.
Locked
xatruch
Posts: 1
Joined: Wed Oct 17, 2018 2:05 pm

Newbie Here trying to get Zone Minder Up

Post by xatruch »

Good Morning Everyone

I am trying to get zone minder up, I've followed the steps here:

https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way

But when I try to start the service I get this error:

Code: Select all

Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zoneminder, action "start" failed.
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-10-17 08:59:29 CDT; 7ms ago
  Process: 7031 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)

Oct 17 08:59:29 zoneminder zmpkg.pl[7031]: Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Oct 17 08:59:29 zoneminder zmpkg.pl[7031]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Oct 17 08:59:29 zoneminder zmpkg.pl[7031]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Oct 17 08:59:29 zoneminder zmpkg.pl[7031]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Oct 17 08:59:29 zoneminder zmpkg.pl[7031]: Compilation failed in require at /usr/bin/zmpkg.pl line 48.
Oct 17 08:59:29 zoneminder zmpkg.pl[7031]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
Oct 17 08:59:29 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Oct 17 08:59:29 zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Oct 17 08:59:29 zoneminder systemd[1]: zoneminder.service: Unit entered failed state.
Oct 17 08:59:29 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
dpkg: error processing package zoneminder (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 zoneminder
Can I get a hand please?

Thanks
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Newbie Here trying to get Zone Minder Up

Post by bbunge »

Looks like the Zoneminder install did not create the database.

Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL) You will be prompted for the password you set for MySQL or Mariadb.

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql

mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"

mysqladmin -uroot -p reload

Edit: I just ran the install per https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way with no issues.
Locked