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

svn and berkeley db corruption

From: Yoann Vandoorselaere <yoann_at_prelude-ids.org>
Date: 2004-11-03 00:59:15 CET

Hi,

After some try recovering a database with the help of people from #svn
on Freenode, they suggested me to drop a mail here thinking you might
have an insight on what to do in the current situation.

The problem started with the following error while trying to do an "svn
update":

svn: Berkeley DB error while opening 'copies' table for
filesystem /var/lib/svn/prelude/db: Invalid argument

I then logged on the server, shut down every services using SVN, and ran
"svnadmin recover prelude", which gave me the same error message.

At this point I made a backup of the problematic svn repository, and
went to #svn to gather some help.

People from #svn suggested to run: "db_recover -vech prelude"
This gave:

db_recover: Finding last valid log LSN: file: 2903 offset 385784
db_recover: Recovery starting from [1482][28]
db_recover: Recovery complete at Wed Nov 3 00:38:00 2004
db_recover: Maximum transaction ID 82e7bf52 Recovery checkpoint [2903][385784]
db_recover: Recovery complete at Wed Nov 3 00:38:00 2004
db_recover: Maximum transaction id 80000000 Recovery checkpoint [2903][385784]

But then running "svnadmin recover prelude" or "svnadmin dump prelude"
still gave the same error:

svnadmin dump prelude > /var/tmp/prelude.dump
svn: Berkeley DB error while opening 'copies' table for filesystem prelude/db:
Invalid argument

Trying to run db_recover again, gave:

db_recover: Finding last valid log LSN: file: 1 offset 686
db_recover: Recovery starting from [1][28]
db_recover: DB_ENV->log_flush: LSN past current end-of-log
db_recover: transactions: unable to flush page: 0
db_recover: txn_checkpoint: failed to flush the buffer cache Invalid argument
db_recover: PANIC: Invalid argument
db_recover: fatal region error detected; run recovery
db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery

At which point people from #svn suggested to send a mail here.

Any help would be greatly appreciated,

Thanks in advance,

Note: the system is using subversion 1.0.9 with db-4.1.
      Please CC me on reply since I am not on the list.

-- 
Yoann Vandoorselaere <yoann@prelude-ids.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 3 01:04:38 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.