SVN: MKCOL 405 Method Not Allowed Error  

Posted by Anirudh Acharya in , ,

I had just pulled down Mac4Lin files from the SVN repo and was to reupload them yesterday. This time I decided to upload each folder separately, one by one. The first folder (directory for UNIX people) was properly uploaded. When I did and 'svn add ' the folder got successfully added. Next when I did an 'svn commit -m "message"', I got this dreaded error:

svn: Commit failed (details follow):
svn: MKCOL of '': 405 Method Not Allowed ()

I kept scratching my head for a long time as to why this kept happening. I was finally able to fix it. After an 'svn commit', all I had to do was an 'svn checkout '. The local copy would then be sync'd with the remote copy, brining it up to the same revision. I could then proceed to adding new folders/files and then svn commit'ting'.

It turns out that the folder previously added/uploaded needs to haf proper revision before the new folder can be added. Otherwise, svn will treat it as trying to upload the files/folder already existing in the repo. Another solution to this would be to wipe the SVN repo clean and start afresh.

I'm sure many of you would've faced this error. What were your fixes?

This entry was posted on 3/13/2009 at Friday, March 13, 2009 and is filed under , , . You can follow any responses to this entry through the comments feed .


I did a svn update instead of a checkout. Thanks for the post.

1/26/2010 05:42:00 PM

Post a Comment