How do I fix this Subversion MKCOL error?

Svn

Svn Problem Overview


When I commit I get this error from Subversion:

bash-2.05b$ svn commit -m "testing subversion, still"
Adding         baz
svn: Commit failed (details follow):
svn: MKCOL of '/viper/!svn/wrk/6b9bcd38-b2fe-0310-95ff-9d1a44098866/sandboxes/ohammersmith/trunk/baz': 405 Method Not Allowed (http://svn.example.com)

Svn Solutions


Solution 1 - Svn

This happens when you have added a directory that someone else has also added and already committed. The error message on a commit is really confusing, but if you do an svn up instead you'll see this message:

bash-2.05b$ svn up
svn: Failed to add directory 'baz': object of the same name already exists

To resolve the issue, remove your directory (or move it aside) and do an svn update to get the version on the server and re-do your changes.

As a general rule, be sure to do svn update since the error messages tend to be more helpful.

Solution 2 - Svn

This happens when you have added a directory that someone else has also added and already committed.

This is something to indicate conflict but at Directories level (just to understand).

To resolve this, just do svn update before committing your changes

Solution 3 - Svn

Sometimes this happens. Solution: When you create any new repository must add read.me file to create a default branch(trunk) so that it will find a proper path to push your stuff. If you create a repository and do not add read. me and if it is blank then upload a file like test.txt and take that uploaded file as latest update in your local folder and then try to push your code from that updated folder. This works for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionOttoView Question on Stackoverflow
Solution 1 - SvnOttoView Answer on Stackoverflow
Solution 2 - SvnHarshal Doshi JainView Answer on Stackoverflow
Solution 3 - SvnMahavirsinh PadhiyarView Answer on Stackoverflow