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

Re: Repairing a repository with a checksum error

From: John Szakmeister <john_at_szakmeister.net>
Date: 2006-09-15 11:19:11 CEST

----- Ian Rowlands <Ian.Rowlands@sro.vic.gov.au> wrote:
> I was attempting to do a dump of our repository (about to upgrade) and
> received the following error:
>
> svnadmin: Checksum mismatch while reading representation:
> expected: b8a416747c932902932a95880e740d78
> actual: 7a0665c5b480601e0c9c0c4a5bfdab49
>
> This wasn't in the latest revision (9318 of a repository containing 9900+
> revisions).
>
> How do I fix this problem so I can dump the repository in preparation for
> importing to a newer version of Subversion? I'm currently running 1.2.3
> with the FSFS.

Make a backup of the repository. Then, open db/revs/9318 and search for 'b8a416747c932902932a95880e740d78'. Then change 'b8a416747c932902932a95880e740d78' to '00000000000000000000000000000000' (that is a string of ASCII zeros of the exact same length as the original checksum). Save it. Then try running svnadmin dump again.

FYI, the all zeros checksum is a wildcard that will match any checksum. You should try to at least verify that the contents are valid. You should also run 'svnadmin verify' against your repository to help catch these errors sooner.

Hope that helps! If you have trouble, let me know. I can help walk you through this a little more.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 15 11:19:59 2006

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.