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

Re: Berkeley DB error

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-02-07 17:07:59 CET

Rob Shepherd wrote:
> Dear list.
>
> the following output appears from interactions with my repo.
>
>
> svn: Berkeley DB error while moving cursor for file system
> /export/home/robshep/svn/db:
> DB_RUNRECOVERY: Fatal error, run database recovery
> svn: bdb: page 625193: illegal page type or format
> svn: bdb: PANIC: Invalid argument
> svn: bdb: fatal region error detected; run recovery
> svn: bdb: fatal region error detected; run recovery
> svn: Berkeley DB error while closing 'nodes' database for filesystem
> /export/home/robshep/svn/db:
> DB_RUNRECOVERY: Fatal error, run database recovery
> svn: bdb: fatal region error detected; run recovery
>
> this exact message comes from 'svnlook tree' or 'svnadmin dump'
>
> I have tried to run 'svnadmin recover /export/home/robshep/svn/'
> I have tried to db_recover in the db directory
>
> the process is over very fast. (immediatly really)
>
> you may also note, I own all the files and there is only myself who uses
> the
> repository through the svn+ssh protocol.
>
> Is my database screwed? I have a recent backup however, can I recover or
> would
> it be best to 'svnadmin load'
>
> regards
>
> Rob
>
> PS.
>
>> svnadmin --version
> svnadmin, version 1.1.1 (r11581)
>
> and Berkeley db-4.1
>
> on Solaris 9 SPARC.

The current database is pretty messed up.

If you have all the BDB logfiles available since your recent backup, I would
restore the recent backup, copy across the logfiles from the broken
repository, and run "db_recover -c".

Note, for this to work, the broken repository must contain logfiles reaching
back to when the backup was made.

Example by numbers:

The backup contains highest log number log.0000000108

The live repos must contain all the log files back to _and_ including
log.0000000108, and you must copy all of them, including log.0000000108,
into the restored backup (overwriting the log.0000000108 in the backup).

For more detail, see the BDB manual.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 7 17:13:31 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.