Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2009 23:59:39 -0500
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Glen Johnson <nelgmj@verizon.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Apache22 + Subversion 1.6.6 = No go.
Message-ID:  <4B06223B.2010900@FreeBSD.org>
In-Reply-To: <6b6f6c5e02e38af4ded7a3884301c1ac@verizon.net>
References:  <0c5bf2a922ecbc1096da03be5670e3e1@verizon.net>	<4B0575A0.707@FreeBSD.org> <6b6f6c5e02e38af4ded7a3884301c1ac@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Glen Johnson wrote:
> On Nov 19, 2009, at 11:43 AM, Greg Larkin wrote:
>>
>> Glen Johnson wrote:
>>> FreeBSD-questions,
>>> I am attempting to use FreeBSD as my Subversion server.  I have
>>> Subversion working, and I have Apache working.  However when I try to
>>> use http:/my_server/svn/my_project I get:
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns"
>>> xmlns:C="svn:">
>>> <C:error/>
>>> <m:human-readable errcode="2">
>>> Could not open the requested SVN filesystem
>>> </m:human-readable>
>>> </D:error>
>>>
>>> 1 I tried chmod -R 777 /home/svn/repos.
>>> 2 I tried recompiling apache, db, and subversion.
>>> 3 I looked at /var/log/http-error.log (partial list below)
>>> [Thu Nov 19 09:35:52 2009] [notice] Graceful restart requested, doing
>>> restart
>>> [Thu Nov 19 09:35:53 2009] [notice] Digest: generating secret for digest
>>> authentication ...
>>> [Thu Nov 19 09:35:53 2009] [notice] Digest: done
>>> [Thu Nov 19 09:35:54 2009] [notice] Apache/2.2.13 (FreeBSD)
>>> mod_ssl/2.2.13 OpenSSL/0.9.8e DAV/2 SVN/1.6.6 configured -- resuming
>>> normal operations
>>> [Thu Nov 19 09:36:10 2009] [error] [client 192.168.2.12] (20014)Internal
>>> error: Can't open file '/usr/home/svn/repos/default/format': No such
>>> file or directory
>>> [Thu Nov 19 09:36:10 2009] [error] [client 192.168.2.12] Could not fetch
>>> resource information.  [500, #0]
>>> [Thu Nov 19 09:36:10 2009] [error] [client 192.168.2.12] Could not open
>>> the requested SVN filesystem  [500, #2]
>>>
>>>
>>> What am I missing?
>>> Thank you,
>>> Glen
>>
>> Hi Glen,
>>
>> Please post the relevant bits from your httpd.conf where you set up the
>> SVNPath, etc.  It looks like maybe the SVNPath directive is pointing to
>> the wrong place.
>>
> Thanks for your reply.  I currently have this info in
> /usr/local/etc/apache22/Includes/svn.conf.  Apache22 loads all the conf
> files in this directory when httpd.conf is loaded.
> <Location /svn>
>         DAV svn
>         SVNParentPath /usr/home/svn/repos
>         SVNListParentPath on
>         SVNPathAuthz off
>         SVNIndexXSLT "/data-dist/svnindex.xsl"
> 
>         # anonymous first
>         Satisfy Any
>         Require valid-user
> 
>         # authenticating them valid ones
>         AuthType Basic
>         AuthName "Subversion Repositories"
>         AuthUserFile /usr/home/svn/access/users
> </Location>
> 

Hi Glen,

At first glance, that looks OK to me. The next tests are:

- - Does /usr/home/svn/repos/default exist? (I know, dumb question!)

- - If it does, are permissions set such that the httpd process user can
read the directory? You said "chmod 777" on the repository parent
directory didn't work.

- - Please post the output of "ls -laR /usr/home/svn/repos"

Thank you,
Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksGIjsACgkQ0sRouByUApBUsACffnyMxsMTR3lzSEpG3e+DfOHc
N14AoLp3XunUeFoVVInCNfNzg1vxRw3E
=5lEw
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B06223B.2010900>