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

database corruption...

From: Mark Slater <mark_at_analogsoftware.com>
Date: 2004-04-27 21:12:17 CEST

I went to shutdown my computer last night and after 10 minutes, the
little spinning lines (MacOS X 10.3) were still sitting there...
spinning. So I did a reboot and then shut down after it restarted. This
morning, two of the repository databases were corrupt. One I was able
to fix with db_recover. The other, well, it was hit harder I guess... I
had just done a checkin a few minutes before the shutdown.... but the
command completed normally with no errors.

Anyway, subversion was unable to recover the repository and suggested
using the database tools. However, those are failing also. Does anybody
have some suggestions as to how to fix things?

Thanks!

Mark

Directory contents:

$ ls
DB_CONFIG log.0000000002 representations transactions
changes log.0000000003 revisions uuids
copies nodes strings

Here's the errors I'm getting:

$ db_verify representationsdb_verify: Page 2: unreferenced page
db_verify: Page 3: unreferenced page
db_verify: DB->verify: representations: DB_VERIFY_BAD: Database
verification failed

$ db_verify nodesdb_verify: Page 2: unreferenced page
db_verify: Page 3: unreferenced page
db_verify: DB->verify: nodes: DB_VERIFY_BAD: Database verification
failed

$ db_verify strings
db_verify: Page 58: first page in overflow chain has a prev_pgno 57
db_verify: Page 111: overflow item incomplete
db_verify: Page 21: incorrect next_pgno 61 found in leaf chain (should
be 91)
db_verify: Page 58: overflow page linked twice from leaf or data page
db_verify: Page 38: overflow page linked twice from leaf or data page
db_verify: Page 54: overflow page of invalid type 5
db_verify: Page 55: overflow page linked twice from leaf or data page
db_verify: DB->verify: strings: DB_VERIFY_BAD: Database verification
failed

$ sudo db_recover
db_recover: Log sequence error: page LSN 2 322820; previous LSN 2 885276
db_recover: Recovery function for LSN 2 887886 failed on forward pass
db_recover: PANIC: Invalid argument
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: PANIC: fatal region error detected; run recovery
db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database
recovery

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 27 21:13:48 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.