Apache22 + Subversion 1.6.6 = No go.

Richard Mahlerwein mahlerrd at yahoo.com
Thu Nov 19 22:05:05 UTC 2009



--- On Thu, 11/19/09, Glen Johnson <nelgmj at verizon.net> wrote:

> >> 1 I tried chmod -R 777 /home/svn/repos.
> >> 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]

> > 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>

Here's one of mine that I think I've minimally modded to fit your paths.  Could you try dropping that into place and see if it fails?  That would at least cut down the places it may go wrong (e.g. SVNParentPath...).  You'll need to htpasswd a new user into the "new" AuthUserFile.  Then try the /test and see what happens.

<Location /test>
        DAV svn
        SVNPath   /usr/home/svn/repos/<FIXME_TO_A_SVN_DIR>
        AuthType Basic
        AuthName "Documentation Repository"
        AuthUserFile /usr/home/svn/access/users.new

        <LimitExcept GET PROPFIND OPTIONS REPORT>
          Require valid-user
        </LimitExcept>
</Location>

-Rich


      


More information about the freebsd-questions mailing list