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

Re: Repository recovery problem

From: John Szakmeister <john_at_szakmeister.net>
Date: 2006-11-19 10:58:13 CET

----- Andrew Vit <andrew@dihedral.ca> wrote:
> I have a repository hosted on Mac OS X 10.3 running svn 1.1.3,
> accessed via svn:// protocol. I believe my problem started after a
> system reboot (we had some storms and power failures here on the west
>
> coast). After trying to access the repository again, I got the
> following error via SmartSVN:
>
>
> svn: Berkeley DB error while checkpointing after Berkeley DB
> transaction for filesystem /Users/Shared/Repositories/ontrack/db:
> Invalid Argument
> svn: bdb: Ignoring log file: /Users/Shared/Repositories/ontrack/db/
> log.0000000099: magic number 0, not 40988
> svn: bdb: DB_ENV->log_put: 99: Invalid argument
> svn: bdb: txn_checkpoint: failed to flush the buffer cache Invalid
> argument
>
>
> I tried following the instructions in the svnbook for restoring a
> "wedged" repository. When I ran the svnadmin recover command, I got
> this error:
>
>
> Repository lock acquired.
> Please wait; recovering the repository may take some time...
> svn: DB_RUNRECOVERY: Fatal error, run database recovery
> svn: bdb: Ignoring log file: ontrack/db/log.0000000099: magic number
>
> 0, not 40988
> svn: bdb: Invalid log file: log.0000000099: Invalid argument
> svn: bdb: First log record not found
> svn: bdb: PANIC: Invalid argument
>
>
> Please let me know if there's anything else I might try before going
>
> to my backup.

You can try doing a "catastrophic recovery" using the BDB's db tools. I can't remember the command line to drive it, you'll need to look that up in the documentation.

FWIW, BDB and Mac OS X is a very hateful relationship. I remember there being lots of issues between the two. You'd do better to migrate to a newer version of svn, and make your repositories FSFS instead.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 19 10:59:03 2006

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.