Repository corruption; svnadmin recover reports it's fixed, svnadmin verify immediately disagrees
From: Jim Sokoloff <jim_at_sokoloff.com>
Date: 2007-05-18 00:57:48 CEST
(Apologies if this posts twice; I posted it an hour ago
Our main development repository has become corrupted.
Fortunately, I have a full svnsync.d repository that.s only a few days old
Here.s the short summary of the current situation:
Apache immediately 500s when serving the repository
Versions of software (all Windows):
Apache 2.0.59
Apache modules 1.4.3
Svn command line, a mix of 1.4.2 and 1.4.3, mostly 1.4.3
Here's the longish recollection of what led to the current situation:
For a few months, I.d been seeing intermittent (once a week maybe) Apache
We were svnsync.ing to a slave repository, but only for about the past 2
We moved offices.
The crashes became MUCH more frequent in the past two weeks, so I stopped
Today, the repository went down hard and our usual reset-the-svn-server
Instead the svnadmin (1.4.3) recover process hung, and was completely
I then did an svnadmin recover manually, inadvertently using the 1.4.2
Subsequent restarts didn.t improve the situation. All 6 other repos work
Svnadmin dump doesn.t work, complaining:
UUID: 8217dfb6-ca92-db4d-a461-c54c91ed5a1f
Revision-number: 0
K 8
* Dumped revision 0.
Revision-number: 1
K 7
svnadmin: Berkeley DB error for filesystem 'db' while moving cursor:
DB_RUNRECOVERY: Fatal error, run database recovery
svnadmin: bdb: page 0: illegal page type or format
svnadmin: bdb: PANIC: Invalid argument
svnadmin: bdb: PANIC: fatal region error detected; run recovery
------------------------------------------------------------------------------
svnadmin recover reports:
Repository lock acquired.
Please wait; recovering the repository may take some time...
Recovery completed.
The latest repos revision is 116241.
------------------------------------------------------------------------------
BDB 4.3 db_recover reports:
db_recover: Program version 4.3 doesn't match environment version
db_recover: Unacceptable log file db\log.0000073513: unsupported log
db_recover: Invalid log file: log.0000073513: Invalid argument
db_recover: PANIC: Invalid argument
db_recover: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database
BDB 4.4 db_recover reports:
Finding last valid log LSN: file: 73513 offset 444418
Recovery starting from [73513][442146]
Recovery complete at Thu May 17 18:20:31 2007
Maximum transaction ID 8000000a Recovery checkpoint [73513][444418]
I couldn.t figure out how to get anything more useful out of db_verify. It
c:\Program Files\Sleepycat Software\Berkeley DB 4.4.20\bin\db_verify.exe:
As for the logs dir, the only logs from the last week were both from
Anti-virus is on the machine; I.m chasing down whether any config change
svnadmin: Berkeley DB error for filesystem '../db' while opening
svnadmin: Invalid argument
svnadmin: bdb: DB_REGISTER limits each process to a single open DB_ENV
which leads me to wonder if AV is in the way somehow.
Any help would be hugely appreciated. I can give whatever more details
---------------------------------------------------------------------
|
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.