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

Re: Error 4047: Log file currupt?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-11-30 10:22:41 CET

Simon Kennedy wrote:
> Hi all,
>
> I hope I'm not repeating the same message on the list (I believe I may
> have sent it before I was fully subscribed):
>
> After coming up with no answers with a brief search of the subversion
> mailing lists I thought I would
> put this to the mailing list. We seem to have corrupted our subversion
> db somehow. When I ran
> 'svnadmin verify' I got the following responce:
>
> svn: Berkeley DB error while checkpointing after Berkeley DB transaction
> for filesystem d:/SvnRepository/looksoftware/db:
> Invalid argument
> svn: bdb: Ignoring log file:
> d:/SvnRepository/looksoftware/db\log.0000004707: magic number 0, not 40988

That "magic number" line is indicative of a malformed log file.

First: MAKE A TARBALL/ZIPFILE BACKUP of the repository.

Then, cd to the "db" subdir of your repository.
Delete __db.* and the logfile mentioned in the error.
Try to run "db_recover -cv" - if that succeeds (doesn't report errors), try
"svnlook youngest" (a trivial test of repository access) - and if that
works, "svnadmin dump" your repository and reload into a newly created
repository.

If not, redo these instructions, deleting all __db.* and all log.* files.

You are on Windows, so you probably don't have the db_recover tool already
installed.
Get it from:

http://subversion.tigris.org/files/documents/15/8848/db-4.2.52-win32.zip

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 30 10:25:26 2004

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.