zoneminder_1.24.1-1 for Debian and Ubuntu

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

zoneminder_1.24.1-1 for Debian and Ubuntu

Post by PeterHoward »

The notification is a bit late; it's been in the Debian repo for a couple of weeks now.

But I've finally done the Ubuntu packages; look in
ftp://ftp.northern-ridge.com.au/zonemin ... tu/jaunty/ - both 32 and 64 bit packages.

note: Due to the extreme joy of ffmpeg, I'm not planning to package 1.24 for any Ubuntu releases prior to Jaunty.

Also note: I have had a report of the zoneminder database not being auto-created by package install, though I can't repeat this myself. Let me know if you experience that.

PJH
doughoman
Posts: 3
Joined: Tue Sep 01, 2009 3:26 am

Database not created

Post by doughoman »

I am having the problem of the database not created. I'm trying to install it on mythbuntu 9.04 so guessing the fact that it already setup mysql might be throwing things off.

--------------------
sudo dpkg -i zoneminder_1.24.1-1_i386.deb
(Reading database ... 131047 files and directories currently installed.)
Preparing to replace zoneminder 1.24.1-1 (using zoneminder_1.24.1-1_i386.deb) ...
Stopping ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
Zoneminder already stopped

Unpacking replacement zoneminder ...
Setting up zoneminder (1.24.1-1) ...
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/bin/zmupdate.pl line 49.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 49.
dpkg: error processing zoneminder (--install):
subprocess post-installation script returned error exit status 255
Processing triggers for man-db ...
Errors were encountered while processing:
zoneminder


------------
Then no database shown in mysql
ldillon
Posts: 1
Joined: Tue Dec 15, 2009 2:31 am

E: zoneminder: subprocess installed post-installation script

Post by ldillon »

Preconfiguring packages ...
Selecting previously deselected package libdc1394-22.
(Reading database ... 161552 files and directories currently installed.)
Unpacking libdc1394-22 (from .../libdc1394-22_2.1.2-1_i386.deb) ...
Selecting previously deselected package libavdevice52.
Unpacking libavdevice52 (from .../libavdevice52_4%3a0.5+svn20090706-2ubuntu2_i386.deb) ...
Selecting previously deselected package libavfilter0.
Unpacking libavfilter0 (from .../libavfilter0_4%3a0.5+svn20090706-2ubuntu2_i386.deb) ...
Selecting previously deselected package ffmpeg.
Unpacking ffmpeg (from .../ffmpeg_4%3a0.5+svn20090706-2ubuntu2_i386.deb) ...
Selecting previously deselected package php5-common.
Unpacking php5-common (from .../php5-common_5.2.10.dfsg.1-2ubuntu6.3_i386.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.10.dfsg.1-2ubuntu6.3_i386.deb) ...
Selecting previously deselected package libarchive-zip-perl.
Unpacking libarchive-zip-perl (from .../libarchive-zip-perl_1.18-1_all.deb) ...
Selecting previously deselected package libconvert-binhex-perl.
Unpacking libconvert-binhex-perl (from .../libconvert-binhex-perl_1.119+pristine-3_all.deb) ...
Selecting previously deselected package libdate-manip-perl.
Unpacking libdate-manip-perl (from .../libdate-manip-perl_5.54-1_all.deb) ...
Selecting previously deselected package libemail-date-format-perl.
Unpacking libemail-date-format-perl (from .../libemail-date-format-perl_1.002-1_all.deb) ...
Selecting previously deselected package libio-stringy-perl.
Unpacking libio-stringy-perl (from .../libio-stringy-perl_2.110-4_all.deb) ...
Selecting previously deselected package libmime-lite-perl.
Unpacking libmime-lite-perl (from .../libmime-lite-perl_3.023-1_all.deb) ...
Selecting previously deselected package libmime-tools-perl.
Unpacking libmime-tools-perl (from .../libmime-tools-perl_5.427-2_all.deb) ...
Selecting previously deselected package libmime-perl.
Unpacking libmime-perl (from .../libmime-perl_5.427-2_all.deb) ...
Selecting previously deselected package libmime-types-perl.
Unpacking libmime-types-perl (from .../libmime-types-perl_1.27-1_all.deb) ...
Selecting previously deselected package libmysqlclient15off.
Unpacking libmysqlclient15off (from .../libmysqlclient15off_5.1.30really5.0.83-0ubuntu3_i386.deb) ...
Selecting previously deselected package libphp-serialization-perl.
Unpacking libphp-serialization-perl (from .../libphp-serialization-perl_0.32-1_all.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.2.10.dfsg.1-2ubuntu6.3_all.deb) ...
Selecting previously deselected package php5-mysql.
Unpacking php5-mysql (from .../php5-mysql_5.2.10.dfsg.1-2ubuntu6.3_i386.deb) ...
Selecting previously deselected package libdevice-serialport-perl.
Unpacking libdevice-serialport-perl (from .../libdevice-serialport-perl_1.04-2_i386.deb) ...
Selecting previously deselected package zoneminder.
Unpacking zoneminder (from .../zoneminder_1.24.1-1ubuntu2_i386.deb) ...
Selecting previously deselected package nullmailer.
Unpacking nullmailer (from .../nullmailer_1%3a1.04-1.1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for ureadahead ...
Setting up libdc1394-22 (2.1.2-1) ...

Setting up libavdevice52 (4:0.5+svn20090706-2ubuntu2) ...

Setting up libavfilter0 (4:0.5+svn20090706-2ubuntu2) ...

Setting up ffmpeg (4:0.5+svn20090706-2ubuntu2) ...
Setting up php5-common (5.2.10.dfsg.1-2ubuntu6.3) ...
Setting up libapache2-mod-php5 (5.2.10.dfsg.1-2ubuntu6.3) ...
* Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...done.

Setting up libarchive-zip-perl (1.18-1) ...
Setting up libconvert-binhex-perl (1.119+pristine-3) ...
Setting up libdate-manip-perl (5.54-1) ...
Setting up libemail-date-format-perl (1.002-1) ...
Setting up libio-stringy-perl (2.110-4) ...

Setting up libmime-lite-perl (3.023-1) ...
Setting up libmime-tools-perl (5.427-2) ...
Setting up libmime-perl (5.427-2) ...
Setting up libmime-types-perl (1.27-1) ...
Setting up libmysqlclient15off (5.1.30really5.0.83-0ubuntu3) ...

Setting up libphp-serialization-perl (0.32-1) ...
Setting up php5 (5.2.10.dfsg.1-2ubuntu6.3) ...
Setting up php5-mysql (5.2.10.dfsg.1-2ubuntu6.3) ...

Setting up libdevice-serialport-perl (1.04-2) ...
Setting up zoneminder (1.24.1-1ubuntu2) ...
Installing new version of config file /etc/zm/zm.conf ...
Installing new version of config file /etc/init.d/zoneminder ...
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/bin/zmupdate.pl line 49.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 49.
dpkg: error processing zoneminder (--configure):
subprocess installed post-installation script returned error exit status 255
Setting up nullmailer (1:1.04-1.1) ...
* Starting mail-transfer-agent:
...done.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up zoneminder (1.24.1-1ubuntu2) ...
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/bin/zmupdate.pl line 49.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 49.
dpkg: error processing zoneminder (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
zoneminder

uname -a Linux monika 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Re: E: zoneminder: subprocess installed post-installation sc

Post by PeterHoward »

ldillon wrote: ./libmysqlclient15off_5.1.30really5.0.83-0ubuntu3_i386.deb) ...

DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
I'm assuming that this is a new installation . . .

So it looks like it can't connect to the zoneminder database. This should have been created as part of the install. There should be some more information in the syslog as to what went wrong with the database. Can you check what's in there straight after the installation failure?
Post Reply