Page 1 of 1

DB Error on clean install

Posted: Wed Mar 02, 2016 2:03 am
by Grundle
I'm following the "Easy way" instructions and I get this during the apt-get install zoneminder php5-gd step:

Setting up zoneminder (1.29.0-wily) ...
DBI connect('database=zwhost=localhost1,1zmuser',...) failed: Unknown database 'zm' at /usr/share/per15/2oneMinder/Config.pm line 92.
Can't connect to db at /usr/share/per15/2oneMinder/Config.pm line 119.
BEGIN failed--compilation aborted at /usr/share/per15/2oneMinder/Config.pm line 119.
Compilation failed in require at /usr/bin/zmupdate.pl line 71.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 71.
dpkg: error processing package zoneminder (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing: zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

My system is a 15.10 server install on a Hyper-V VM. I ran the next couple steps setting up the databases and it works fine now, but I wanted to report so that the instructions could be updated.

Looking forward to getting the next part running!

Re: DB Error on clean install

Posted: Wed Mar 02, 2016 2:13 am
by bbunge
You may ignore the error message. Continue with the install procedure as cited in the WIKI and set up the database manually.

The error is the result of the auto database setup being removed from the install. It was decided to make the Ubuntu installs like the Debian installs and our wonderful package maintainer has not gotten all the old code removed...yet.

See: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

bb