Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion Can't read length line in file

Tags:

svn

fsfs

When I commit I had no error. Now I tried to check out and I got this error

Can't read length line in file 'c:\svn\db\revs\0\14'

I have tried older revision it doesn't work either. Does it mean I lost everything in subversion ?

like image 285
user310291 Avatar asked Jan 14 '11 12:01

user310291


2 Answers

You can run

svnadmin verify /var/svn/repo

to check your repository.

In case you use Berkeley db (you shouldn't),

svnadmin recover /var/svn/repo

may help.

like image 118
marapet Avatar answered Oct 01 '22 14:10

marapet


I had the same problem and here is simple fix I found without administering the SVN repository.

  1. the error was produced by a specific file that I had to commit.
  2. I committed all other changed files Ok
  3. I copied the local file to the desktop as a backup
  4. SVN->Delete file
  5. commit the folder. It was successful
  6. added the file from the desktop in the local folder
  7. svn -> add, svn->commit

problem fixed. I think this way you loose the previous versions of the file from the repository but this was not a problem for me.

Hope this info can help you.

like image 40
Mike Avatar answered Oct 01 '22 14:10

Mike