Subversion: MKCOL 405 Method Not Allowed
I hope this helps some other poor person before they tear all their hair out.
This was driving me up the wall.
$ svn co -N https://repo/svn/fez
$ cd fez
$ mkdir -p qwacks/trunk qwacks/tag
$ cp -R ~/qwacks/* qwacks/trunk
$ svn add qwacks
$ svn commit -m "initial import"
svn: Commit failed (details follow):
svn: MKCOL of '...': 405 Method Not Allowed (https://repo)
svn: Your commit message was left in a temporary file:
What?! What does that mean:
svn: MKCOL of '...': 405 Method Not Allowed
Much Googling suggested that either a firewall was blocking DAV requests, or my Apache server was configured to reject them. The latter I considered a possibility, since I'd just spent the last hour fixing my config. Poring over the files yielded nothing.
Even worse, adding other files and folders to the repository worked.
Which - had I not had a beer first, I would have realised much sooner - meant there was something wrong with the 'qwacks' directory specifically.
The directory already existed in the Subversion repository - I hadn't realised that I'd already added it, and of course I did a non-recursive initial fetch, so I didn't spot it.
Ultimately, the error was therefore mine - trying to add a directory that already existed in source control. However, a more descriptive error message would have been nice!