On Fri, 18 Nov 2005 03:05 pm, Mark Shead wrote:
> > And yes, the permissions on the repositories are correct (they're
> owned by
> > the apache user).
> You might check to make sure that the permissions are set for all of the
> subdirectories. I've run into problems before when I ran a local
> command as root and it created a file that wasn't owned by apache. I
> can't remember if it was the same error, but it seems similar.
When I said the permissions are correct, I ment it. ALL the permissions were
correct (I've been admining linux boxes for over 7 years, permissions are the
first thing I look for if something says 'permission denied' or 'failed to
You might be interested to know the problem was because of the order of
interperetation of apache commands.
I had my error documents set so that if an error occured, it would go
to /error/<error-file>.html, and an alias for /error/ to go to a specific
directory on my filesystem (where the custom error HTML files are).
However because I was using <Location /> (not <Location /svn>), when an error
occured (say, authorization required, which is why this only happened on
check-IN, but not check-OUT), it would correctly figure out the location of
the error document (/error/AUTHORIZATION.REQUIRED.html) but it would NOT
apply the alias, instead the <Location /> tag (and thus, DAV svn) would take
effect. I expected aliases to be figured out first, though I suppose it
makes sense that they were not (since it would interfere with re-writes).
The way I saw it, I had two ways around this. Either change my Location to:
<LocationMatch "^/(?!error)"> which did work (kind of), and then my error
documents showed up correctly, however it would give me a strange error (more
or less 'Bad Request') when I tried to check in (once again, checkout was
unaffected. For interested parties, the error was (in apache error_log):
[Fri Nov 18 12:11:09 2005] [error] [client 18.104.22.168] Invalid URI in
The other solution was to skip Location tags completely, and go with Directory
tags, ie. <Directory /var/svn/repos> ... </Directory> instead of location
tags. This works just fine, and errors show up as errors, and my
repositories work correctly, including commit. This IS a little paritcular
though. Initially I had <Directory /var/svn/repos/*>, which again worked for
errors and non-checkins, however also failed for checkins, with the error
405, though it didn't show up in the apache error_log, in the access_log I
22.214.171.124 - - [18/Nov/2005:12:19:50 -0800]
HTTP/1.1" 405 960 "-" "SVN/1.2.3 (r15833) neon/0.24.7"
It seems strange to me that it would re-write the URL with the LocationMatch
or Directory string, however it obviously did in both cases, which was fine
once I got the directory string sorted.
In the end, this problem only happened because I did not want:
And I got it working, however just as forewarning to anyone else who wishes to
try something similar, custom error documents and <Location /> don't play
well with eachother.
Systems Administrator, GOTH.NET (http://www.goth.net)
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Sun Nov 20 10:03:34 2005