Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've a problem with my svn repo. I cannot use it, I even cannot dump it.

svnadmin verify repo

returns

Can't set position pointer in file 'svn/db/revs/0/0'

When I try to dump repo (no matter what revision range), console output shows:

* Dumped revision 0.
svnadmin: Final line in revision file missing space

I've googled that this may be connected with wrong version apr apache2 library, but I have other repositories which work good, so I thing this isn't the case.

Is there any way to save at least some files from my repo? Can svn repo get corrupted so easily (probably after power-cut, however I'm not sure).

share|improve this question
1  
Are the permissions set so that your user (or the user the web server is running as) can write to that location? I've seen things like this when somehow the filesystem permissions on the repo have got borked - a chown -R sorted that out. –  superdupersheep Feb 27 '11 at 18:08

1 Answer 1

Did you run svnadmin repair [path to repo]?

Check for a missing or damaged file. If you are running on Windows, verify that the file is in UNIX format (\n) and not Windows format (\n\r).

Worst case, copy in a replacement file. It works for revprops (comment files), haven't tried it for revs (data files).

share|improve this answer
    
'svnadmin repair'? what's that? 0_o –  bahrep Mar 6 '13 at 14:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.