[Gllug] Subversion dav_svn
Ben Fitzgerald
ben_m_f at yahoo.co.uk
Sat Sep 2 08:51:55 UTC 2006
On Fri, Sep 01, 2006 at 02:20:39PM +0100, Steve Nelson wrote:
> On 9/1/06, Steve Nelson <sanelson at gmail.com> wrote:
> >> You may also want to turn on apache verbose debugging to see if you can
> >get something
> >> more juicy...
> >
> >Doing so...
>
> Ok... logging set to debug:
>
> [Fri Sep 01 20:03:12 2006] [notice] Apache/2.0.54 (Debian GNU/Linux)
> DAV/2 SVN/1.1.4 mod_ssl/2.0.54 OpenSSL/0.9.7d configured -- resuming
> normal operations
> [Fri Sep 01 20:03:51 2006] [error] [client 10.1.142.100] (20014)Error
> string not specified yet: Can't open file
> '/var/svn/repository/format': No such file or directory
> [Fri Sep 01 20:03:51 2006] [error] [client 10.1.142.100] Could not
> fetch resource information. [500, #0]
> [Fri Sep 01 20:03:51 2006] [error] [client 10.1.142.100] Could not
> open the requested SVN filesystem [500, #2]
> [Fri Sep 01 20:03:51 2006] [error] [client 10.1.142.100] Could not
> open the requested SVN filesystem [500, #2]
> [Fri Sep 01 20:04:14 2006] [error] [client 10.1.142.100] (20014)Error
> string not specified yet: Can't open file
> '/var/svn/repository/format': No such file or directory
> [Fri Sep 01 20:04:14 2006] [error] [client 10.1.142.100] Could not
> fetch resource information. [500, #0]
> [Fri Sep 01 20:04:14 2006] [error] [client 10.1.142.100] Could not
> open the requested SVN filesystem [500, #2]
> [Fri Sep 01 20:04:14 2006] [error] [client 10.1.142.100] Could not
> open the requested SVN filesystem [500, #2]
>
> No idea why it is trying to find a resource called "format"...
from the svn manual:
format
A file whose contents are a single integer value that dictates the
version number of the repository layout.
I have a repository called "home". If I list the repository:
$ ls repos/home/
conf dav db format hooks locks README.txt
so the structure is <repository_root>/<repository_name>/format
>From your earlier mail I see your repository lives in the child dir of
/var/svn/repository:
# ls -l /var/svn/repository/
total 4
drwxr-xr-x 7 www-data www-data 4096 Aug 31 19:34 example
i.e $ cat /var/svn/repository/example/format
3
your apache config:
<Location /svn>
SVNParentPath /var/svn/repository
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
given the above you should as you say be able to browse:
http://localhost/svn/example
IIRC I found SVNParentPath a pain and ended up using SVNPath
Try this:
<Location /svn>
SVNPath /var/svn/repository/example
#AuthType Basic
#AuthName "Subversion Repository"
#AuthUserFile /etc/apache2/dav_svn.passwd
#<LimitExcept GET PROPFIND OPTIONS REPORT>
#Require valid-user
#</LimitExcept>
</Location>
Then uncomment our your access restrictions once you know the basic is found.
hth,
ben.
--
Registered Linux user number 339435
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list