Rob Gonda's Blog

SVN: PROPFIND request failed - No Such Revision

One of my Subversion repositories got corrupted today and every single operation started failing, returning an error message: PROPFIND request failed on '/path/to/repo/ No Such Revision 296.

After researching for an hour I could not find anything, nada, nothing at all ... I found a few posts on dumping the data, creating a new repo, importing again ... but like I said, every operation on the repo failed... I couldn't even try those options.

So I chose to backup the repository's file system and fix it myself... I noticed that the error claimed that revision 296 did not exist and indeed, when I opened the db/revs folder it only went up to 295. With a completely wild guess, I opened the /current file and noticed that it had the 296 revision number on it, so I assumed this is the pointer to the latest revision, but the data never made it to the server... I modified the number to 295 and everything immediately started working.

Again, it was a wild guess, but it worked ... Hope this saves someone a few hours.

update: I think I found out how it broke. Someone committed a file that Nod32 caught with a virus; SVN increased the repo version, updated the indexes, and then the antivirus deleted the data...

TrackBacks
There are no trackbacks for this entry.

Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?B994C61C-A0B6-C557-0FEC5334B87C7D18

Comments
awesome fix rob.
# Posted By Tony Petruzzi | 10/19/07 6:12 PM
Augh... Freakin' antivirus software. Nice catch. I suppose the greatest lesson learned is to ensure all team members have up-to-date antivirus definitions.
# Posted By Joshua Curtiss | 10/22/07 12:47 PM
@Joshua, they do ... It seems like it was some advanced heuristic caught a piece of a .FLA file as a virus...
# Posted By Rob Gonda | 10/22/07 5:48 PM
You saved my day. Thanks.
# Posted By SO | 11/3/07 2:04 AM
niiiiiiiiiiiice !
you saved my day too !
thanks you for the tip !
# Posted By ufunk | 12/13/07 8:35 AM
Thanks you. You save me.....
# Posted By Anonimous | 7/11/08 11:06 AM
Thanks for the post, You saved my day..
# Posted By sundar | 9/5/08 9:34 AM
This blog is running version 5.9.003. Contact Blog Owner