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

RA-DAV tests acting *very* strangely.

From: <cmpilato_at_collab.net>
Date: 2003-03-07 06:52:00 CET

I have no local mods to my Subversion tree, have not changed the way I
build or anything. I have freshly autogen/configure/make'd. I've
restarted Apache. Apache runs as 'cmpilato', and all files in my tree
are owned by 'cmpilato'.

Now, I try to run Python tests over DAV, and they all fail at the
initial import. MKCOL returns 405. Ethereal sez it's because a
repository directory '/A' was trying to be created but already
existed. Running tests over ra_local work fine, though, and imports
by hand are fine, too.

Ben looked at this with me for a bit this afternoon. I've now blown
two hours looking at it. Here are the details.

### First, I try to run basic_tests.py by hand. No dice.

$ ./basic_tests.py 1 --url http://localhost
CMD: svnadmin "create" "local_tmp/repos" "--bdb-txn-nosync" <TIME = 0.091154>
CMD: svn "import" "--username" "jrandom" "--password" "rayjandom" "-m" "Log message for revision 1." "http://localhost/local_tmp/repos" "local_tmp/greekfiles" <TIME = 1.354023>
subversion/libsvn_ra_dav/util.c:81: (apr_err=175002)
svn: RA layer request failed
svn: MKCOL of /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A: 405 Method Not Allowed
Errors during initial 'svn import':
ACTUAL STDERR:
subversion/libsvn_ra_dav/util.c:81: (apr_err=175002)
svn: RA layer request failed
svn: MKCOL of /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A: 405 Method Not Allowed
Caught SystemExit(1), skipping cleanup
FAIL: basic_tests.py 1: basic checkout of a wc

### Well, let's check the Apache logs

$ tail /usr/local/apache2/logs/access_log
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "PUT /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/D/G/pi HTTP/1.1" 201 336
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "PUT /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/D/G/rho HTTP/1.1" 201 337
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "PUT /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/D/G/tau HTTP/1.1" 201 337
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "MKCOL /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/B HTTP/1.1" 201 333
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "PUT /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/B/lambda HTTP/1.1" 201 338
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "MKCOL /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/B/F HTTP/1.1" 201 335
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "MKCOL /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/B/E HTTP/1.1" 201 335
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "PUT /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/B/E/alpha HTTP/1.1" 201 339
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "PUT /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A/B/E/beta HTTP/1.1" 201 338
127.0.0.1 - - [06/Mar/2003:23:33:44 -0600] "MKCOL /local_tmp/repos/!svn/wrk/c8b3803a-41b8-0310-b505-b5db1e0c4835/A HTTP/1.1" 405 379
$ tail /usr/local/apache2/logs/error_log
[Thu Mar 06 23:31:30 2003] [notice] Apache/2.0.44 (Unix) DAV/2 SVN/0.18.1+ configured -- resuming normal operations
$

### Sheesh. Well, I'll copy-n-paste the import that failed (but
### correct the path to the 'svn' binary). I suppose I'll see the
### same failure. But...

$ ../../../clients/cmdline/svn "import" "--username" "jrandom" "--password" "rayjandom" "-m" "Log message for revision 1." "http://localhost/local_tmp/repos" "local_tmp/greekfiles"
Adding local_tmp/greekfiles/iota
Adding local_tmp/greekfiles/A
Adding local_tmp/greekfiles/A/C
Adding local_tmp/greekfiles/A/mu
Adding local_tmp/greekfiles/A/D
Adding local_tmp/greekfiles/A/D/gamma
Adding local_tmp/greekfiles/A/D/H
Adding local_tmp/greekfiles/A/D/H/chi
Adding local_tmp/greekfiles/A/D/H/omega
Adding local_tmp/greekfiles/A/D/H/psi
Adding local_tmp/greekfiles/A/D/G
Adding local_tmp/greekfiles/A/D/G/pi
Adding local_tmp/greekfiles/A/D/G/rho
Adding local_tmp/greekfiles/A/D/G/tau
Adding local_tmp/greekfiles/A/B
Adding local_tmp/greekfiles/A/B/lambda
Adding local_tmp/greekfiles/A/B/F
Adding local_tmp/greekfiles/A/B/E
Adding local_tmp/greekfiles/A/B/E/alpha
Adding local_tmp/greekfiles/A/B/E/beta

Committed revision 1.
$

### I also reproduce this like so:

$ python
>>> from svntest import *
>>> main.test_area_url = 'http://localhost'
>>> actions.guarantee_greek_repository('foo')
CMD: svnadmin "create" "local_tmp/repos" "--bdb-txn-nosync" <TIME = 0.089539>
CMD: svn "import" "--username" "jrandom" "--password" "rayjandom" "-m" "Log message for revision 1." "http://localhost/local_tmp/repos" "local_tmp/greekfiles" <TIME = 1.627360>
subversion/libsvn_ra_dav/util.c:81: (apr_err=175002)
svn: RA layer request failed
svn: MKCOL of /local_tmp/repos/!svn/wrk/9025c670-41b8-0310-a270-93155f6fee3b/A: 405 Method Not Allowed
Errors during initial 'svn import':
ACTUAL STDERR:
subversion/libsvn_ra_dav/util.c:81: (apr_err=175002)
svn: RA layer request failed
svn: MKCOL of /local_tmp/repos/!svn/wrk/9025c670-41b8-0310-a270-93155f6fee3b/A: 405 Method Not Allowed

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 7 06:54:00 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.