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

Re: another apache permissions problem

From: Gary Thomas <gary_at_mlbassoc.com>
Date: 2004-12-06 23:26:24 CET

On Mon, 2004-12-06 at 15:14, Daniel Anderson wrote:
> I'm a complete svn newbie trying to setup access to a new repository
> through Apache. Everything works just fine when I try to access the
> repository via the file:// protocol, but I can't seem to get it to
> work with Apache. When I try to connect to the svn repository via
> http, I get this error:
>
> svn: PROPFIND request failed on '/MyProject'
> svn:
> Could not open the requested SVN filesystem
>
> ... or through a browser:
>
> <m:human-readable errcode="13">
> Could not open the requested SVN filesystem
> </m:human-readable>
>
> The Apache error log shows the following:
>
> [Mon Dec 06 16:28:22 2004] [error] [client 192.168.254.119]
> (20014)Error string not specified yet: Can't open file
> '/data/svn/services/customers/MyProject/format'
> : Permission denied
> [Mon Dec 06 16:28:22 2004] [error] [client 192.168.254.119] Could not
> fetch resource information. [500, #0]
> [Mon Dec 06 16:28:22 2004] [error] [client 192.168.254.119] Could not
> open the requested SVN filesystem [500, #13]
> [Mon Dec 06 16:28:22 2004] [error] [client 192.168.254.119] Could not
> open the requested SVN filesystem [500, #13]
>
>
> The error doesn't make any sense to me because I set global write
> permissions on the project directory in an attempt to ge this to
> work. ls -l on the project direcory:
>
> total 56
> drwxrwxrwx 2 root mygroup 4096 Dec 6 15:18 conf
> drwxrwxrwx 2 root mygroup 4096 Dec 6 15:18 dav
> drwxrwxrwx 2 root mygroup 4096 Dec 6 15:24 db
> -rwxrwxrwx 1 root mygroup 2 Dec 6 15:18 format
> drwxrwxrwx 2 root mygroup 4096 Dec 6 15:18 hooks
> drwxrwxrwx 2 root mygroup 4096 Dec 6 15:18 locks
> -rwxrwxrwx 1 root mygroup 379 Dec 6 15:18 README.txt
>
> This is my http.conf entry (again, no permissions):
>
> <Location /MyProject>
> DAV svn
> SVNPath /data/svn/services/customers/MyProject
> </Location>
>
> If anyone has an idea as to what the problem is, please let me know.

When I set this up, I found that I needed the SVN repository within
my HTTP tree - I had some troubles when the repository was outside of
it(*). There may be a way to change that, but I'm happy with it working
this way. I also run virtual servers, so I have my <Location>
directives nested within one of those. Mine looks [sort of] like this:
    <Location /SVN>
      DAV svn
      SVNParentPath /var/www/SVN/
      AuthzSVNAccessFile /var/www/SVN/.authz
      AuthUserFile /var/www/SVN/.htpasswd
      AuthName "Subversion Repository Access"
      AuthType Basic
      require valid-user
    </Location>

This works great for me - I actually have multiple repositories under
the /SVN umbrella. Access to the repositories is then
  http://MY_SERVER/SVN/xyz

(*) IIRC the trouble I had was that ViewCVS didn't like things that
were outside of the tree.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 6 23:30:44 2004

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

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