SVN DB Rescue
Had alot of troubles regarding this. Merging a Huge SVN platform server to another server with a other linux distribution and everything seems to be blown up:
svn: Unable to open an ra_local session to URLsvn: Unable to open repository '#####'svn: Berkeley DB error for filesystem /SVN/db while opening environment:DB_VERSION_MISMATCH: Database environment version mismatchsvn: bdb: Program version 4.2 doesnt match environment version
Conv Script
# Goto you SVN rep dir e.g. /SVN/cd /SVN# Backup the broken repository cp -pr myrep myrep.bak# goto the db directory of the broken repository cd myrep/db# cleanup the databases (be sure to have a backup ready)rm *s __db.* log.*# goto the backuped db foldercd /SVN/myrep.bak/db# Dump current DB to actual dbfor dbfile in *s; do db4.2_dump | db4.2_load -h ../../myrep/db ; done# That's all, if it succeeded you can now reuse your SVN


The comments are closed.