You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by oliver langan <ol...@aa-rf.com> on 2005/03/07 20:44:48 UTC

can not recover/export database

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?

oliver

-- 
oliver langan  |  interface engineer   |  415 369 6423


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

Re: can not recover/export database

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