You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ian Rowlands <Ia...@sro.vic.gov.au> on 2006/09/15 07:17:25 UTC

Repairing a repository with a checksum error




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.


Regards,

Ian Rowlands
_________________________________________
Software Developer
State Revenue Office Victoria
Phone : (03) 9628-0185
Email : ian.rowlands@sro.vic.gov.au



Disclaimer: The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material
from your computer.
Privacy: If you are responding to this email or providing personal
information to the SRO for the purposes of one of the Acts it administers,
such information is used only for the purpose for which it was collected
( administration of SRO legislation ) and is protected by the Information
Privacy Act 2000 and secrecy provisions contained in legislation
administered by SRO. It is not disclosed otherwise than in accordance with
the law. If you would like a copy of the SRO Privacy Policy please refer to
SRO website (www.sro.vic.gov.au) or contact SRO on 9628 0556 and request a
copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Repairing a repository with a checksum error

Posted by John Szakmeister <jo...@szakmeister.net>.
----- Ian Rowlands <Ia...@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