[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: can not recover/export database

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-03-13 01:27:49 CET

oliver langan wrote:
> Hi, I am a relatively new subversion user/administrator. I have a big
> problem with my database, and I am hoping that you all can help me recover
> it.
>
> The problem began with an error message on checkouts, telling me to
> recover
> the database. I shut down the server and attempted to run 'svnadmin
> recover
> /svn/' which gave the following error many times:
> svn: bdb: Recovery function for LSN 24461 656348 failed on forward pass
>
> Reading through this mailing list, I saw these two message threads:
> http://svn.haxx.se/users/archive-2004-11/1047.shtml
> (clearly the results of a google search, since it comes from different
> archive)
>
> I deleted the log.* files as suggested and ran the recovery again: it
> seemed
> to work just fine. However, when I attempted to run 'svnadmin dump /svn/
> >
> /svn.dump' it wrote the first 10 or 12 revisions, then gave a LOT of
> errors
> like so:
> svn: bdb: DB_ENV->log_flush: LSN of 232/789010 past current end-of-log
> of 1/4434
> svn: bdb: Database environment corrupt; the wrong log files may have
> been removed or incompatible database files imported from another
> environment
> followed by:
> svn: bdb: strings: unable to flush page: 0
> svn: bdb: txn_checkpoint: failed to flush the buffer cache Invalid
> argument
>
> Are there any further steps I can take to recover this directory?

You might try this recipe:

rm log.* __db.*
for i in *s; do mv ${i} ${i}-old && db_dump ${i}-old | db_load ${i}; done
svnadmin recover ..

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Mar 13 01:30:29 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.