[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

intermittent MKCOL failure - error 405

From: Jonathan Mark <jhmark_at_xenops.com>
Date: 2006-02-23 06:18:54 CET

hi all...
I have a web application (via mod_python) which uses Popen3 to invoke svn
commands including a commit.
This intermittently succeeds, but often fails unexpectedly with the
following error.
(Each time it is invoked, a different path is committed ... i.e. the "9" at
the end will be a different number.)

svn: Commit failed (details follow):\nsvn: MKCOL of
'/prowa/files/!svn/wrk/44bb7548-6b0d-0410-82d2-f4971f4a807f/attachments/9':
405 Method Not Allowed (https://xenops.com)

By adding debug output I've determined that the error comes from this test
in dav_method_mkcol() in mod_dav.c:
    if (resource->exists) {
        /* oops. something was already there! */

        /* Apache will supply a default error for this. */
        /* ### we should provide a specific error message! */
        return HTTP_METHOD_NOT_ALLOWED;
    }

Looking in the Subversion code, comb->res.exists is being set to TRUE at the
end of dav_svn_prep_working() in repos.c.
This does not seem right because the path has not been seen before so it
should not exist.

Component versions: Subversion 1.3.0, Apache 2.0.54, mod_python 3.1.4, db
4.4.20.

Anyone have any ideas or advice?
Otherwise I guess I can keep on debugging and figuring out how it is
supposed to work.

thanks!

        Jonathan

P.S.
here is Apache's access_log ... note 405 return value from the MKCOL.

66.33.192.52 - - [22/Feb/2006:16:25:35 -0800] "OPTIONS
/prowa/files/attachments HTTP/1.1" 401 552
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "OPTIONS
/prowa/files/attachments HTTP/1.1" 200 191
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "MKACTIVITY
/prowa/files/!svn/act/44bb7548-6b0d-0410-82d2-f4971f4a807f HTTP/1.1" 201 383
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "PROPFIND
/prowa/files/attachments HTTP/1.1" 207 450
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "PROPFIND
/prowa/files/!svn/vcc/default HTTP/1.1" 207 405
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "CHECKOUT
/prowa/files/!svn/bln/68 HTTP/1.1" 201 398
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "PROPPATCH
/prowa/files/!svn/wbl/44bb7548-6b0d-0410-82d2-f4971f4a807f/68 HTTP/1.1" 207
357
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "PROPFIND
/prowa/files/attachments HTTP/1.1" 207 413
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "CHECKOUT
/prowa/files/!svn/ver/68/attachments HTTP/1.1" 201 407
66.33.192.52 - jhmark [22/Feb/2006:16:25:35 -0800] "MKCOL
/prowa/files/!svn/wrk/44bb7548-6b0d-0410-82d2-f4971f4a807f/attachments/9
HTTP/1.1" 405 445
66.33.192.52 - jhmark [22/Feb/2006:16:25:36 -0800] "DELETE
/prowa/files/!svn/act/44bb7548-6b0d-0410-82d2-f4971f4a807f HTTP/1.1" 204 -

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 23 16:46:26 2006

This is an archived mail posted to the Subversion Users mailing list.