install failed: error 255 - zoneminder 1.22.3-10

Bug #243934 reported by Jostein lorentsen
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zoneminder (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: zoneminder

trying to install Zoneminder camera security system, but get error in synaptics

dbi connect failed, unknown database 'ZM' at /usr/share/pearl5/zoneminder/config.pm line 89

also error msg at line 91,100,33,45,89
script return exit errorstatus 255

Using ubuntu 8.04

ProblemType: Package
Architecture: i386
Date: Sun Jun 29 12:03:22 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 255
NonfreeKernelModules: fglrx
Package: zoneminder 1.22.3-10
PackageArchitecture: i386
SourcePackage: zoneminder
Title: package zoneminder 1.22.3-10 failed to install/upgrade: subprocess post-installation script returned error exit status 255
Uname: Linux 2.6.24-19-generic i686

Revision history for this message
Jostein lorentsen (jostein-lorentsen) wrote :
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

That's because zoneminder fails to install with the following error:

Selecting previously deselected package zoneminder.
(Reading database ... 150559 files and directories currently installed.)
Unpacking zoneminder (from .../zoneminder_1.22.3-10_i386.deb) ...
Setting up zoneminder (1.22.3-10) ...
Installing new version of config file /etc/zm/zm.conf ...
Installing new version of config file /etc/init.d/zoneminder ...
Starting 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.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
 subprocess post-installation script returned error exit status 255

Changed in zoneminder:
status: New → Confirmed
Revision history for this message
cwraig (forums-cwraig) wrote :

I can confirm that this bug also exists in 8.10 beta.

Any help would be great or we should think about removing the package as it doesnt appear to have worked for a while now.

root@security:~# apt-get install zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
zoneminder is already the newest version.
The following packages were automatically installed and are no longer required:
  libcamel1.2-13 openssh-blacklist
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up zoneminder (1.23.3-3) ...
Upgrading from version 1.22.3-10 to 1.23.2
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 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)

Revision history for this message
paul (paul-staffordnet) wrote :

Mine was working in 8.10 this morning, but when I came home at night and tried to connect to it, it started giving me problems, then I tried to reinstall it after removing it and I now get the above errors...

What gives? This is a brand new installation of 8.10, not an upgrade.

Thanks,
Paul

Revision history for this message
cwraig (forums-cwraig) wrote :

Is anyone looking at fixing this bug or should we think about removing this package from the repository because i have tried on a range of installs (of 8.10 and 8.10beta) and it doesn't work anywhere.

Thanks
cwraig

Revision history for this message
cwraig (forums-cwraig) wrote :

Hi all, i have been able to get around this bug by using the debian package from a debian mirror.

This shows that there is no problem with the debian package or other parts of ubuntu and that the fault is in the zoneminder package in the ubuntu repos.

<workaround>
i used
wget http://mirror.pacific.net.au/pub1/debian/pool/main/z/zoneminder/zoneminder_1.23.3-3_i386.deb

then
dpkg -i zoneminder_1.23.3-3_i386.deb

then following the instructions at
http://www.zoneminder.com/wiki/index.php/Main_Documentation#Installation_from_a_.deb

i restarted the machine
zoneminder is now running.

</workaround>

Aditya V (kroq-gar78)
summary: - install failed
+ install failed: error 255 - zoneminder 1.22.3-10
Revision history for this message
Steve Gilvarry (steve-gilvarry) wrote :

Closing out old bugs that no one had done anything about.
Thank you for reporting this bug to Ubuntu. 8.04 reached EOL on May 9, 2013.
See this document for currently supported Ubuntu releases: https://wiki.ubuntu.com/Releases

Please upgrade to the latest version and re-test.

Do feel free to report any other bugs you may find.

Changed in zoneminder (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for zoneminder (Ubuntu) because there has been no activity for 60 days.]

Changed in zoneminder (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.