fixing bdb upgrade problems with svn
May 4th, 2008 by Lawrence David
my berkeley db just got updated and now svn is unhappy:
svn: Commit failed (details follow):Â
svn: Berkeley DB error while opening environment for filesystem /home/ldavid/svn/db:
Invalid argument
svn: bdb:Â Program version 4.2 doesn’t match environment version
 i found a fix for this problem here.   Â
$ svnadmin create –fs-type bdb newrepos
$ cd newrepos/db
$ rm *s __db.* log.*
$ cd ../..
$ cd oldrepos/db
$ for dbf in *s ; do db_dump $dbf | db_load -h ../../newrepos/db $dbf ; doneÂ
$ cd ../..
$ svnadmin verify newreposÂ
Â
 Â
