[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: oliver langan <oliver.langan_at_aa-rf.com>
Date: 2005-03-09 02:22:47 CET

Hi Ben, thanks for the message. Unfortunately, I seem to have a
particularly corrupted database. I did delete all the log files and __db*
as well, and the recovery seems to work: when the errors I mentioned below
actually happen when I am trying to dump the file. It is really
catastrophic. We have lost about three weeks of revisions since our last
backup.

We have only just started using svn within the company (trying to get away
from SourceSafe), but I am going to have a hard time selling it after this.

oliver

On 3/8/05 1:57 PM, "Ben Scheirman" <ben@lyntonweb.com> wrote:
> I just now ran across this issue, and I resolved it by deleting the last
> logfile in the list. Make sure to create a zip of the folder before you
> do this. Most likely the log file 4434 is corrupt. Anyway, I give
> credit to this url:
> http://svn.haxx.se/users/archive-2004-11/1476.shtml I used that to
> fix my problem.
>
> -Ben.
> LyntonWeb
>
> 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?
>>
>> 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
Received on Wed Mar 9 02:25:16 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.