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

Re: svnadmin dump checksum mismatch

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-06-18 01:14:09 CEST

Mathieu MERLAY wrote:
> Bonjour,
> I need to transfer my SVN repository on a new server, that's why I would
> like to dump my current repository tree.
> I tried svnadmin dump "directory" > "file".
> Revisions to 110 are correctly dumped, but on the 111, I've this message :
> * Dumped revision 110.
> * Dumped revision 111.
> svn: Checksum mismatch on rep '18t':
> expected: 8cc04ee47694ad36e632a5acbc906d07
> actual: 2a2eb00769b48989502df3a5c1b346f2
> zsh: exit 1
> Today, the repository is at revision 262 and updates/commits are working
> very well.
> The computer is a single CPU Pentium MMX under Debian/Linux (woody) with
> subversion packages from backports.org. The repository was created under
> version 0.7.0, and is today under 1.0.5.
> I've already seen questions about this failure, but I've never found an
> answer to correct this. Maybe can we change the checksum in the database
> ? I would like to transfer this repository as soon as possible.

Your repository has somehow suffered some corruption.

I suggest the following procedure:

1) Change the checksum in the database (see below)
2) Use "svn log" to see all files which changed in the problem revision.
3) Use "md5sum" to find the file which matches the "actual" md5sum from the error message.
4) Examine its content, looking for corruption

How to change a checksum in the database:

*Using a _copy_ of your repository*

cd <the db directory within the repository>
db_dump -kp representations > representations.dump

The dumpfile will contain lines like:
 ((fulltext 1 7 (md5 16 \fa\85\a5\e3\bdN7\95\03\e8\baq0\ad\9cn)) w)
 ((delta 0 (md5 16 \dfV\c9\88BZ>\9fn\9bg1\a6\d4\9a*)) (1 0 ((svndiff 1 0 2 1x) 2 13 2 1c)))

Edit the part after "(md5 16 " to 16 repeats of \00 - the all-zero checksum matches anything.

db_load representations < representations.dump


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 18 01:15:35 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.