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

Re: svnadmin: Can't read length line in file ...

From: Andrew MacKenzie <amackenz_at_edespot.com>
Date: 2006-05-19 15:12:49 CEST

> >I have discovered that my repository is broken.
> >Performing "svnadmin dump", I got the following error:
> >svnadmin: Can't read length line in file '/path/to/MyRepo/db/revs/1714'
> I had the same problem. When revision 1714 is the last in your
> repository, you should try "svnadmin recover". When it cannot fix your
> repository, you have to go the hard way. The only solution for me was to
> "fix" the revision by executing the following steps:
I've just run into this issue as well...

> >Subversion server and client versions: 1.2.3
> I used SVN HEAD
We're running 1.3.1.

> >Subversion server backend: FSFS
> Hmm ... I used FSFS too
Same here.

> >OS: GNU Linux 2.6.x kernel
> Our server is running SuSE Linux 9.3 x86_64.
Our server is Win2k3.

> >Access via HTTPS (Apache 2.0.x + NEON 0.24.7).
> We use Apache 2.2.0 + NEON 0.24.7
We're using Apache 2.0.58. Not sure what version of NEON.

> >I've searched through Google, not nothing useful was found.
> >Any ideas?
> I had the same problem but nobody answered ... so I guess this problem
> is very rare. BTW: At this time we were running "svnserve" (svn://) and
> "mod_dav_svn" (https://) at the same time. Maybe this could've been the
> problem? Now we're only using the https:// access method.
We're only using mod_dav_svn.

Other information about our issue:

It seemed to only effect one file in the revision that 'went bad'. That
file was a binary file (.mdb) with the 'svn:needs-lock' property set. The
person who commited the revision thinks she didn't lock the file before
commiting it (just changed the read-only flag).

I'd love to know what causes this... This is a pretty serious issue IMHO.
I'm going to try to reproduce the scenario after I fix our repository, but
I'm not hopeful about succeeding.

I'm willing to test some scenarios using the old repository and with it as
it was 'just before it went bad' if somebody has any suggestions.

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// "If my theory of relativity is proven successful, Germany will claim
//  me as a German and France will declare that I am a citizen of the
//  world. Should my theory prove untrue, France will say that I am a
//  German and Germany will declare that I am a Jew."
//     -- Albert Einstein

  • application/pgp-signature attachment: stored
Received on Fri May 19 17:02:52 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.