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

Re: recovering a corrupt repository

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

Ben Scheirman wrote:
> Earlier I sent a message out with a problem of a corrupted repository.
> I have since created a fresh repository because we need to continue
> development and I don't know how long it will be before I can fix it.
> What are some things I can try to recover the db? The error message I
> got was:
> svn: Berkeley DB error while checkpointing after Berkeley DB transaction
> for filesystem /svn/repository/db:
> Invalid argument
> svn: bdb: DB_ENV->log_flush: LSN of 2699/250148 past current end-of-log
> of 2699/
> 214302
> svn: bdb: Database environment corrupt; the wrong log files may have
> been remove
> d or incompatible database files imported from another environment
> svn: bdb: strings: unable to flush page: 0
> svn: bdb: txn_checkpoint: failed to flush the buffer cache Invalid
> argument
> no matter what command I run on the repository I get that error
> message. I am running svn 1.1.2 on Windows 2000 Server. I get this
> when using command line locally as well as remotely through apache webDAV.
> I really don't want to lost our 260 revisions of history. Any Ideas?

HAVING MADE A BACKUP of the repository as-is, 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 ..


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:35:36 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.