zoneminder installation error

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
richfm
Posts: 1
Joined: Thu Feb 27, 2020 4:06 pm

zoneminder installation error

Post by richfm » Thu Feb 27, 2020 4:13 pm

I've successfully followed the instruction for installing Zoneminder on Ubuntu 18, but when I get enter the following command (systemctl start zoneminder), I get the following error messages:

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 Thu 2020-02-27 10:21:52 EST; 48s ago
Docs: http://zoneminder.readthedocs.org/en/latest/
Process: 4215 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCEPTION)

Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuse
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 166.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS zmpkg.pl[4215]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS systemd[1]: zoneminder.service: Control process exited, code=exited, status=255/EXCEPTION
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Feb 27 10:21:52 rich-VivoBook-E14-E402WAS systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.

I have no idea how to remedy this problem. Any thoughts?

jackydany
Posts: 1
Joined: Thu Mar 12, 2020 3:23 pm

Re: zoneminder installation error

Post by jackydany » Thu Mar 12, 2020 3:29 pm

Hi,

i have the same issue.

I tried Debian, Ubuntu 18 and 19.
Tried as VM and LXC container.
Tried with mariadb isntallation-guide and mysql.
Tried the way from the wiki and other ways like https://www.hoelzle.net/zoneminder-1-30 ... -mit-lamp/
Always the same result. Errors!

Seems like he cant connect to the DB. Seems like an issue with the password. I set a strong password via mysql_secure_installation, no success.

Can anybody please help me out here.

I want to install zoneminder as LXC on an ubuntu 19 base system container. A VM would be ok as well but i prefer a container because of resourcess.

Thanks in advance

Stefan

User avatar
Bluemax
Posts: 105
Joined: Wed Jun 12, 2019 5:15 pm

Re: zoneminder installation error

Post by Bluemax » Thu Mar 12, 2020 8:28 pm

If you are on LXC anyway why not use Arch Linux (or Manjaro) as guest? It has an AUR package that is very easy to install (if you can handle Arch). I'm on LXC/Alpine but it's rather for hardcore users in its current state.

Regarding the problem in the 1st post it looks like the db user either doesn't exist or is inaccessible. Probably something went wrong with the initialization.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests