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

Re: Corrupt Repository

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-12-14 16:03:19 CET

kfogel@collab.net wrote:
> "Thamm, Russell" <russell.thamm@dsto.defence.gov.au> writes:
>> This morning, I tried to check-out a fresh copy of my repository and
>> I got the error:
>> REPORT request failed on '/svn/ssc/!svn/vcc/default blah blah blah
>> In the apache error log, I found the following error:
>> Checksum mismatch on rep 'kn':\n blah blah blah
>> Can I repair my repository?
>> I have an up-to-date working directory. I could use this to recreate
>> my repository but I would then lose my history.
>> The really annoying thing is that the corrupt file hasn't be
>> modified since day 1, it is still version 1.
> We'd love a lot more detail about your setup: version of Subversion,
> type of repository, the exact file, etc. Has your disk filled up
> recently or anything? Is the repository large, can you save it before
> you do anything further?

Reiterating that the above would be very interesting.

Regarding repair:


I'm going to assume you have the Berkeley DB db_dump and db_load programs

cd repository/db
db_dump -p representations > reps.txt
your-favourite-editor reps.txt

Find the line which is exactly the string " kn".
On the line below, look for the substring that is like:

(md5 16 some-mess-here))

Change the some-mess-here to 16 repetitions of the 3-character string "\00".

Save and exit.

db_load representations < reps.txt

Now, try "svnadmin dump" on the repository.

If there are further errors, the best course of action would probably be for
you to give me a tarball of the repository for repair.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 14 16:06:08 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.