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

Re: corrupted svn repository with “serialized hash missing terminator” error

From: Stefan Sperling <stsp_at_elego.de>
Date: Sun, 1 Sep 2013 13:03:56 +0200

On Sun, Sep 01, 2013 at 12:02:18PM +0530, Nitin Bhide wrote:
> I have a local subversion repository. I am trying to convert it to
> Mercurial. In the process I discovered that repository is corrupted. I have
> tried the following
> 1. svnadmin verify - confirmed that repository is corrupted at revision
> 1265. The verify stops at this revision.
> 2. svnadmin recover - was unable to recover the repository.
> 3. tried to dump the repository content. svnadmin dump fails at revision
> 1265. So dumped till 1264. Took another dump from revision 1322. (all
> revision from 1265 to 1321 are giving the serialized hash terminator error).
> 4. I tried to combine the dumps and load it into a new repository. However,
> some files were added in the 'missing' revisions (1265 to 1321) and while
> loading dump I am getting errors.
> I googled for error and advice seems to be dump the repository and reload
> the contents in new repository. However, that does not work for me.
> I tried to find what exactly is the meaning of the error. However, I could
> not get any information. I tried to read the documentation of FSFS
> structure (
> http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_fs_fs/structure).
> I tried to manually check revision file for 1265 and see what is wrong. But
> could not find anything visibly wrong.
> Is there any way to correct this error in the repository
> (manually/programmatically) ?
> If someone can give me a hint on what is wrong in the file and underwhat
> conditions this error occurs, I will try to write a script to correct it.
> Regards,
> Nitin

Give this script a try: https://svn.apache.org/repos/asf/subversion/trunk/contrib/server-side/fsfsverify.py
It can fix some instances of corruption which was probably caused by
older Subversion/APR versions.
Received on 2013-09-01 13:04:41 CEST

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.