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

Power outage corrupted database

From: Michael Melanson <michael_at_interglobal.ca>
Date: 2005-05-19 18:59:25 CEST

Hi,

I've been using Subversion for a while now, mostly in Linux, but recently at
work I've started using the Windows port.

Just today, about 2 hours ago, there was a power disruption and the server
went down. When we tried to commit changes afterwards, the server replied
with a database error, which read:

Berkeley DB error while checkpointing after Berkeley DB transaction for
filesystem D:/SubversionRep/db: Invalid argument
bdb: DB_ENV->log_flush: LSN of 346/295183 past current end-of-log of
346/15967
bdb: Database environment corrupt; the wrong log files may have been removed
or incompatible database files imported from another environment

One person committed changes about a minute before the power failure, but at
the time of the failure, the server was inactive.

I have tried recovering the database using svnadmin recover with no success.
svnadmin verify confirms that most of the revisions are valid, but at some
point towards the end, it prints an error like the above indefinitely until
the program closes. Of the two sets of numbers listed above, the first one
set (346/295183) is always constant like the above, but the second one
varies (always starts with 346, however).

Likewise, svnadmin lstxns just outputs the above error.

As a temporary fix, we have created a new repository and committed our
working copies. We are a small development team (3 people), and this is
pre-release commercial software, so we're not too concerned with history
just yet. Recovering the database is not very important; I just thought you
should be aware of this corruption.

Unfortunately, due to copyright issues on the contents of the database, and
the sheer size (over 250MB), I cannot release the database. However, the old
database is still on the server, and I can answer any further questions
about the state of it.

--
Michael Melanson
.NET Programmer, InterGlobal Solutions
michael@interglobal.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 19 19:01:49 2005

This is an archived mail posted to the Subversion Users mailing list.