I've got 2 Ubuntu 9.10 boxes with apache2 and subversion 1.6.5 for
testing, on which I've done:
On both boxes:
svnadmin create repos
*Create apache configs* (see below)
On slave:
a2enmod proxy proxy_http
*create pre-revprop-change*
On master:
svnsync init http://slave.foo.com/svn/repos file:///var/svn/repos
svnsync sync http://slave.foo.com/svn/repos
*create post-commit to svnsync*
All of this works fine, and I can do checkins to the master directly,
and checkouts from the slave (which is being updated properly).
However, when I try a checkin I get:
svn: Commit failed (details follow):
svn: At least one property change failed; repository is unchanged
svn: Server sent unexpected return value (405 Method Not Allowed) in
response to PROPPATCH request for
'/svn/repos!svn/wbl/40e3ca68-8d37-4cb0-892a-eeabf5739d25/0'
When I try to do a checkin against the slave.
Interestingly, the checkin still seems to work, as if I then do an 'svn
up' against the slave, I get the checked in file as a new revision.
My configuration for master and slave is below - does anyone have any
ideas why this is happening?
Thanks,
Matthew
master
------
apache config:
<Location /svn/repos>
DAV svn
SVNPath /var/svn/repos
</Location>
post-revprop-change:
#!/bin/bash
REVISION=${2}
svnsync copy-revprops http://slave.foo.com/svn/repos-sync ${REVISION}
>/dev/null 2>&1
post-commit:
#!/bin/bash
svnsync sync http://slave.foo.com/svn/repos-sync >/dev/null 2>&1
slave
-----
apache config:
<Location /svn/repos>
DAV svn
SVNPath /var/svn/repos
SVNMasterURI http://master.foo.com/svn/repos/
</Location>
<Location /svn/repos-sync>
DAV svn
SVNPath /var/svn/repos
</Location>
pre-revprop-change:
#!/bin/bash
exit 0
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2426405
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-s...@subversion.apache.org>.
<snip...>
> svn: Commit failed (details follow):
> svn: At least one property change failed; repository is unchanged
> svn: Server sent unexpected return value (405 Method Not Allowed) in
> response to PROPPATCH request for
> '/svn/repos!svn/wbl/40e3ca68-8d37-4cb0-892a-eeabf5739d25/0'
I've done a bit more digging, but not got anywhere.
Looking at the PROPPATCH error above, its clear that there is a missing
trailing slash from /svn/repos at the start. To try to fix this I
changed the location block to be:
<Location /svn/repos/>
However, svn co now complains:
svn: Server sent unexpected return value (405 Method Not Allowed) in
response to PROPFIND request for '/svn/repos
It seems that the client (or mod_dav_svn) is stripping off this trailing
slash making the repository undiscoverable.
There are posts about a similar bug in 1.5.1, but I'm using 1.6.5 so I
don't think its related.
Any ideas?
Matthew
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2426723