The world, how it works, surroundings, myself, etc.

Friday, April 21, 2006

svn recovery

What do you do when you have a submission in a few hours, and your svn starts reporting something like:

svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///svn/gswall/trunk/Client'
svn: Berkeley DB error while opening environment for filesystem /svn/gswall/db:
DB_RUNRECOVERY: Fatal error, run database recovery
svn: bdb: PANIC: fatal region error detected; run recovery

To make matters worse, you recollect that the last non-svn backup is a bit too old, and you start blaming yourself for keeping all the blank DVDs unused.
Well, luckily (and thank God for it) there is:

svnadmin recover /path/to/svn

This did something to the Berkeley DB, and the prob fixed. I was almost dead.
Post a Comment