Hi Jörg,

I'm currently working on packaging a new version of Torrus into Debian. I've tried the BDB Upgrade script Marc Haber wrote with your assistance, but it does not work (at least not for the upgrade squeeze->wheezy (4.8 -> 5.1).

The script Marc originally wrote included the flags

DB_CREATE | DB_RECOVER | DB_INIT_TXN | DB_INIT_LOCK

executes fine, but Torrus cannot use the database afterwards.

# /usr/sbin/torrus-db-recover
Program version 5.1 doesn't match environment version 4.8
Recovery of /var/lib/torrus/db successful
# torrus compilexml --all
[...] Cannot create BerkeleyDB Environment: Invalid Argument
# cat /var/log/torrus/dbenv_errlog_xxx
configured environment flags incompatible with existing environment


When I try to keep the flag combination closer to the one being used by Torrus, i.e.

DB_CREATE | DB_RECOVER | DB_INIT_TXN | DB_INIT_CDB | DB_INIT_MPOOL

as you suggested in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476356#17, the recovery process does not start at all

# /usr/sbin/torrus-db-recover
Illegal flag combination specified to DB_ENV->open

I have tried a few more combinations, but I could not find any combination that worked and could be opened by Torrus afterwards. Running db_recover always works, but probably breaks when that points to a different version than libberkeleydb-perl.

Since I do not have much knowledge about BDB, I'm at loss here. Do you have any idea?

Bernhard



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to