You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kevin Korb <ko...@gmail.com> on 2010/05/19 17:22:33 UTC

Trying to revive a repo

We were backing up the repository files, but not a dump.  We lost the server
and we're trying to restore the repo.

When we run a svnadmin verify, we get this back...

* Verified revision 0.
svnadmin: Revision file lacks trailing newline

The files are all there, and they seem fine... How do we go about trying to
fix the issue?

Any ideas would be greatly appreciated!

Thanks.

Re: Trying to revive a repo

Posted by David Morris <dw...@xpasc.com>.
Kevin Korb <korb.kevin <at> gmail.com> writes:

> 
> We were backing up the repository files, but not a dump.  We lost the server 
and we're trying to restore the repo.When we run a svnadmin verify, we get this 
back...* Verified revision 0.svnadmin: Revision file lacks trailing newlineThe 
files are all there, and they seem fine... How do we go about trying to fix the 
issue?Any ideas would be greatly appreciated!Thanks.


I suspect this error may have bunch of root causes. In my repository, the db 
corruption was a revs/* file full of binary zero ... in other words never 
written with data. My server is v1.6.11.

The broken revision was identified by the svnadmin dump command which stopped 
at the failure. The server had continued to accept updates after the failure. 
The failure was probably caused by a file system full on the svn machine.

>From the svnnotify mail box, I was able to determine the the failed update 
which turned out to be the build system creating a version tag. For this
description assume:

   1000 revision in the db
    950 last valid revision dumped by svnadmin
    951 corrupted revision
    
So I created a new respository NEW and primed it with the first part of ORIG.
   svnadmin create /resos/NEW
   svnadmin dump /repos/ORIG -r0:950 | svnadmin load /repos/NEW
from a client machine ...
   svn copy -r950 svn+ssh://svn/repos/NEW/trunk \
                   svn+ssh://svn/repos/NEW/tags/build-950
then on the svn server:
   svnadmin dump /repos/ORIG -r952:1000 --incremental | svnadmin load /repos/NEW


    


Re: Trying to revive a repo

Posted by Régis Décamps <de...@users.sf.net>.

On 19 mai, 19:22, Kevin Korb <ko...@gmail.com> wrote:
> We were backing up the repository files, but not a dump.  We lost the server
> and we're trying to restore the repo.
>
> When we run a svnadmin verify, we get this back...
>
> * Verified revision 0.
> svnadmin: Revision file lacks trailing newline
>
> The files are all there, and they seem fine... How do we go about trying to
> fix the issue?
>
> Any ideas would be greatly appreciated!

I don't know for subversion but missing newlines are usually caused
when you change OS. Windows, Unix, Mac and Mainframe encode newlines
differently...