[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: John Szakmeister <john_at_szakmeister.net>
Date: 2006-05-23 02:27:57 CEST

----- Sergey Proskurnya <alaley@gmail.com> wrote:
> Hi,
>
> 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'
>
> "svn up/co" also fails with the following error:
> "svn: Malformed representation header" while checkouting files
> in problem revision(1714).
>
> Subversion server and client versions: 1.2.3
> Subversion server backend: FSFS
> OS: GNU Linux 2.6.x kernel
> Access via HTTPS (Apache 2.0.x + NEON 0.24.7).
>
>
> I've searched through Google, not nothing useful was found.
> Any ideas?

Yep, it's a very mysterious bug in the way mod_dav_svn works. For whatever reason, it appears that two handles are being created to write the file contents into the repository, and one handle ends up clobbering data when it is freed/closed. Malcome Rowe provides a pretty in-depth analysis here:
  http://svn.haxx.se/dev/archive-2006-02/0473.shtml

If you're truly seeing the "Can't read line length" error, then I have a script which will completely restore the file to working condition. E-mail me privately if that's the case.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 23 02:28:59 2006

This is an archived mail posted to the Subversion Users mailing list.