[Pkg-torrus-maintainers] Help with torrus 2.01?

Bernhard Schmidt berni at birkenwald.de
Sat Sep 24 11:37:47 UTC 2011


Hey,

>> I'm considering running the db-recover script on upgrades, any objections?
> I don't know enough about berkeley DB. If it's harmless, do it. If
> it can cause damage, make a backup. If it causes more damage than it
> can help, don't do it.

I just tried the torrus-db-recover script you included into the 
repository some time ago. Unfortunately it does not work properly. It 
runs, but subsequent torrus runs fail with

Cannot create BerkeleyDB environment: Invalid argument

The dbenv_errlog says "Configured environment flags incompatible with 
existing environment". I suspect that I have to add a few flags in the 
script, but I could not find which. All my attempts failed.

OTOH, running db_recover seems to work fine in my tests, so I'm sticking 
with that for now. It isn't perfect since it does not deal with version 
migrations properly (it uses the DB version db-util points to, not the 
one the BerkeleyDB module is using), but it's better than nothing. One 
can always remove the db and recompile if it breaks.

Bernhard



More information about the Pkg-torrus-maintainers mailing list