[Pkg-torrus-maintainers] Bug#476356: After upgrade torrus fails with DB_VERSION_MISMATCH

Joerg Dorchain joerg at dorchain.net
Wed Apr 16 09:08:14 UTC 2008


Package: torrus-common
Version: 1.0.6-2

Hello,

after an apt-get upgrade, torrus fails to start with messages in the
log:
[16-Apr-2008 08:30:44 ] Torrus version 1.0.6
[16-Apr-2008 08:30:44 ] /usr/share/torrus/bin/collector started for tree
main, instance #0
[16-Apr-2008 08:30:44*] Cannot create BerkeleyDB Environment:
DB_VERSION_MISMATCH: Database environment version mismatch
[16-Apr-2008 08:30:44*] Cannot create BerkeleyDB Environment:
DB_VERSION_MISMATCH: Database environment version mismatch

while this sounds similiar to #408949, I think I found out the chain of
effects. torrus-common depends on libberkeleydb-perl, which in turn
depends on libdbX.X, what ever the current version is.

The latest update upgraded libdb from version 4.4 to 4.6, leading to the
failure of torrus.

Torrus starts again after a simple db4.6_recover -v -h /var/lib/torrus/db/

Is there a way to add this as a hook somewhere to be executed
automatically when need, i.e. on the libdb dependency update of
libberkeleydb-perl ? Running db_recover when not necessary has no bad
effects.

If that is not easily possible, mentioning the command in a README would
be a good thing(TM) IMHO.

Bye,

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-torrus-maintainers/attachments/20080416/44d88181/attachment.pgp 


More information about the Pkg-torrus-maintainers mailing list