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

Odd URL parsing by Apache/Subversion

From: David Goodlad <dgoodlad_at_shaw.ca>
Date: 2004-04-22 16:50:02 CEST

Hi all

I am trying to set-up Apache2.0.49/svn1.0.1 to access multiple
repositories. I have the repositories in /home/svn/repositories, owned
by user 'svn', group 'svn'. The 'apache' user (which is what the httpd
daemon process runs as) is a member of the 'svn' group as well. Here is
the directory listing of /home/svn:

svn$ ls -lR
.:
total 1
drwxrwxr-x 3 svn svn 72 Apr 22 08:42 repositories

./repositories:
total 1
drwxrwxr-x 7 svn svn 224 Apr 22 07:22 repos

./repositories/repos:
total 11
-rw-rw-r-- 1 svn svn 376 Apr 22 07:22 README.txt
drwxrwxr-x 2 svn svn 80 Apr 22 07:22 conf
drwxrwxr-x 2 svn svn 48 Apr 22 07:22 dav
drwxrwxr-x 2 svn svn 448 Apr 22 07:22 db
-rw-rw-r-- 1 svn svn 2 Apr 22 07:22 format
drwxrwxr-x 2 svn svn 232 Apr 22 07:22 hooks
drwxrwxr-x 2 svn svn 104 Apr 22 07:22 locks

./repositories/repos/conf:
total 4
-rw-rw-r-- 1 svn svn 1101 Apr 22 07:22 svnserve.conf

./repositories/repos/dav:
total 0

./repositories/repos/db:
total 768
-rw-rw-r-- 1 svn svn 1740 Apr 22 07:22 DB_CONFIG
-rw-rw-r-- 1 svn svn 8192 Apr 22 07:22 __db.001
-rw-rw-r-- 1 svn svn 270336 Apr 22 07:22 __db.002
-rw-rw-r-- 1 svn svn 327680 Apr 22 07:22 __db.003
-rw-rw-r-- 1 svn svn 737280 Apr 22 07:22 __db.004
-rw-rw-r-- 1 svn svn 16384 Apr 22 07:22 __db.005
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 changes
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 copies
-rw-rw-r-- 1 svn svn 75986 Apr 22 08:26 log.0000000001
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 nodes
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 representations
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 revisions
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 strings
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 transactions
-rw-rw-r-- 1 svn svn 8192 Apr 22 08:26 uuids

./repositories/repos/hooks:
total 20
-rw-rw-r-- 1 svn svn 1411 Apr 22 07:22 post-commit.tmpl
-rw-rw-r-- 1 svn svn 1475 Apr 22 07:22
post-revprop-change.tmpl
-rw-rw-r-- 1 svn svn 2216 Apr 22 07:22 pre-commit.tmpl
-rw-rw-r-- 1 svn svn 1952 Apr 22 07:22
pre-revprop-change.tmpl
-rw-rw-r-- 1 svn svn 1500 Apr 22 07:22 start-commit.tmpl

./repositories/repos/locks:
total 8
-rw-rw-r-- 1 svn svn 295 Apr 22 07:22 db-logs.lock
-rw-rw-r-- 1 svn svn 460 Apr 22 07:22 db.lock

Every file is chmod'ed to 664, and all dirs are 775.

My apache Location directive is:

  <Location /svn>
    DAV svn
    SVNParentPath /home/svn/repositories

# AuthType Basic
# AuthName "Subversion Repositories"
# AuthUserFile /home/svn/.repos-users

# Require valid-user
  </Location>

I was trying authentication but it wasn't working so I've got it to it's
most basic level. Any access to URLs like
http://my.hostname.com/svn/repos gives an xml file containing:

<D:error>
<C:error/>
<m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>

In the apache error-logs there is an entry that mentions that it cannot
open "/home/svn/repositories/svn/format". This seems to be the
problem. If I change my location directive to <Location /> instead of
<Location /svn> (and restart apache of course) everything works, except
that I don't really want this - I want to have webpages at the root of
this virtual host.

It seems like subversion is getting mixed up by the URL. It's as if
it's taking the first directory after the hostname and assuming that
THAT is the repository; it's not basing it on the base url of the
location directive.

Anyone seen this before, has this been fixed?

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 22 16:51:17 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.