You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Scheirman <be...@lyntonweb.com> on 2005/03/08 21:08:54 UTC

recovering a corrupt repository

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?

TIA,
-Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: recovering a corrupt repository

Posted by Max Bowsher <ma...@ukf.net>.
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 ..


Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org