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

Re: ViewVC doesn't work when the repository is created out of /var/www

From: <Quang.Tran_at_sita.aero>
Date: 2007-03-14 19:59:46 CET

[ryan]

Have you configured Apache to allow reading of /nfsfarm1? By default,
Apache is configured very restrictively, so that it can only access
those areas of the hard drive that an administrator has deemed
necessary. For example, Apache is probably configured to allow you to
read out of /var/www.

[ryan]

Hi Ryan, Users

Thank you first for replying.

1. So I have added a new <Directory> section for pointing to the new
location of my repository in NFS /nfsfarm1 as follows:

...
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# Allow reading of /nfsfarm1
#
<Directory "/nfsfarm1/www/svn/me">
    #Options Indexes FollowSymLinks
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
...

And it still doesn't work.
Then I've tried to comment out the original section <Directory
"/var/www/html"> with same result :

[svnadmin_at_p1linux142 me]$ svn list http://10.4.14.141/me
svn: PROPFIND request failed on '/me'
svn: PROPFIND of '/me': 500 Internal Server Error (http://10.4.14.141)

Can you show me how to configure correctly that Directory in httpd.conf ?
What to try next ?

2. Also here below is the ls -lR of my repository directory showhing the
read/write + ownership :

[root@prod141linux /]# find /nfsfarm1/www/svn -exec ls -l {} \;
total 4
drwxr-xr-x 7 apache apache 4096 Mar 14 14:14 me
total 24
drwxr-xr-x 2 apache apache 4096 Mar 13 21:43 conf
drwxr-xr-x 2 apache apache 4096 Mar 13 19:05 dav
drwxr-sr-x 5 apache apache 4096 Mar 13 21:39 db
-r--r--r-- 1 apache apache 2 Mar 13 19:05 format
drwxr-xr-x 2 apache apache 4096 Mar 13 19:05 hooks
drwxr-xr-x 2 apache apache 4096 Mar 13 19:05 locks
-rw-r--r-- 1 apache apache 229 Mar 13 19:05 README.txt
total 0
total 8
-rw-r--r-- 1 apache apache 139 Mar 13 19:05 db.lock
-rw-r--r-- 1 apache apache 139 Mar 13 19:05 db-logs.lock
-rw-r--r-- 1 apache apache 139 Mar 13 19:05
/nfsfarm1/www/svn/me/locks/db.lock
-rw-r--r-- 1 apache apache 139 Mar 13 19:05
/nfsfarm1/www/svn/me/locks/db-logs.lock
total 36
-rw-r--r-- 1 apache apache 2015 Mar 13 19:05 post-commit.tmpl
-rw-r--r-- 1 apache apache 1638 Mar 13 19:05 post-lock.tmpl
-rw-r--r-- 1 apache apache 2255 Mar 13 19:05 post-revprop-change.tmpl
-rw-r--r-- 1 apache apache 1567 Mar 13 19:05 post-unlock.tmpl
-rw-r--r-- 1 apache apache 2934 Mar 13 19:05 pre-commit.tmpl
-rw-r--r-- 1 apache apache 2038 Mar 13 19:05 pre-lock.tmpl
-rw-r--r-- 1 apache apache 2764 Mar 13 19:05 pre-revprop-change.tmpl
-rw-r--r-- 1 apache apache 1979 Mar 13 19:05 pre-unlock.tmpl
-rw-r--r-- 1 apache apache 2137 Mar 13 19:05 start-commit.tmpl
-rw-r--r-- 1 apache apache 2137 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/start-commit.tmpl
-rw-r--r-- 1 apache apache 2934 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/pre-commit.tmpl
-rw-r--r-- 1 apache apache 2764 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/pre-revprop-change.tmpl
-rw-r--r-- 1 apache apache 2038 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/pre-lock.tmpl
-rw-r--r-- 1 apache apache 1979 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/pre-unlock.tmpl
-rw-r--r-- 1 apache apache 2015 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/post-commit.tmpl
-rw-r--r-- 1 apache apache 1638 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/post-lock.tmpl
-rw-r--r-- 1 apache apache 1567 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/post-unlock.tmpl
-rw-r--r-- 1 apache apache 2255 Mar 13 19:05
/nfsfarm1/www/svn/me/hooks/post-revprop-change.tmpl
total 12
-rw-r--r-- 1 apache apache 1418 Mar 13 19:17 authz
-rw-r--r-- 1 apache apache 327 Mar 13 19:09 passwd
-rw-r--r-- 1 apache apache 1449 Mar 13 19:08 svnserve.conf
-rw-r--r-- 1 apache apache 1449 Mar 13 19:08
/nfsfarm1/www/svn/me/conf/svnserve.conf
-rw-r--r-- 1 apache apache 327 Mar 13 19:09
/nfsfarm1/www/svn/me/conf/passwd
-rw-r--r-- 1 apache apache 1418 Mar 13 19:17
/nfsfarm1/www/svn/me/conf/authz
-rw-r--r-- 1 apache apache 229 Mar 13 19:05
/nfsfarm1/www/svn/me/README.txt
total 12
-rw-r--r-- 1 apache apache 8 Mar 13 21:39 current
-r--r--r-- 1 apache apache 2 Mar 13 19:05 format
-rw-r--r-- 1 apache apache 5 Mar 13 19:05 fs-type
drwxr-sr-x 2 apache apache 4096 Mar 13 21:39 revprops
drwxr-sr-x 2 apache apache 4096 Mar 13 21:39 revs
drwxr-sr-x 2 apache apache 4096 Mar 13 21:39 transactions
-rw-r--r-- 1 apache apache 37 Mar 13 19:05 uuid
-rw-r--r-- 1 apache apache 0 Mar 13 19:05 write-lock
-rw-r--r-- 1 apache apache 5 Mar 13 19:05 /nfsfarm1/www/svn/me/db/fs-type
total 53212
-rw-r--r-- 1 apache apache 115 Mar 13 19:05 0
-rw-r--r-- 1 apache apache 1111 Mar 13 19:10 1
-rw-r--r-- 1 apache apache 1139 Mar 13 19:12 2
-rw-r--r-- 1 apache apache 1179 Mar 13 19:12 3
-rw-r--r-- 1 apache apache 54352411 Mar 13 19:55 4
-rw-r--r-- 1 apache apache 390 Mar 13 21:39 5
-rw-r--r-- 1 apache apache 115 Mar 13 19:05 /nfsfarm1/www/svn/me/db/revs/0
-rw-r--r-- 1 apache apache 1111 Mar 13 19:10
/nfsfarm1/www/svn/me/db/revs/1
-rw-r--r-- 1 apache apache 1139 Mar 13 19:12
/nfsfarm1/www/svn/me/db/revs/2
-rw-r--r-- 1 apache apache 1179 Mar 13 19:12
/nfsfarm1/www/svn/me/db/revs/3
-rw-r--r-- 1 apache apache 54352411 Mar 13 19:55
/nfsfarm1/www/svn/me/db/revs/4
-rw-r--r-- 1 apache apache 390 Mar 13 21:39 /nfsfarm1/www/svn/me/db/revs/5
total 20
-rw-r--r-- 1 apache apache 50 Mar 13 19:05 0
-rw-r--r-- 1 apache apache 96 Mar 13 19:10 1
-rw-r--r-- 1 apache apache 96 Mar 13 19:12 2
-rw-r--r-- 1 apache apache 96 Mar 13 19:12 3
-rw-r--r-- 1 apache apache 96 Mar 13 19:55 4
-rw-r--r-- 1 apache apache 96 Mar 13 21:39 5
-rw-r--r-- 1 apache apache 96 Mar 13 19:10
/nfsfarm1/www/svn/me/db/revprops/1
-rw-r--r-- 1 apache apache 50 Mar 13 19:05
/nfsfarm1/www/svn/me/db/revprops/0
-rw-r--r-- 1 apache apache 96 Mar 13 19:12
/nfsfarm1/www/svn/me/db/revprops/2
-rw-r--r-- 1 apache apache 96 Mar 13 19:12
/nfsfarm1/www/svn/me/db/revprops/3
-rw-r--r-- 1 apache apache 96 Mar 13 19:55
/nfsfarm1/www/svn/me/db/revprops/4
-rw-r--r-- 1 apache apache 96 Mar 13 21:39
/nfsfarm1/www/svn/me/db/revprops/5
total 0
-rw-r--r-- 1 apache apache 8 Mar 13 21:39 /nfsfarm1/www/svn/me/db/current
-rw-r--r-- 1 apache apache 0 Mar 13 19:05
/nfsfarm1/www/svn/me/db/write-lock
-rw-r--r-- 1 apache apache 37 Mar 13 19:05 /nfsfarm1/www/svn/me/db/uuid
-r--r--r-- 1 apache apache 2 Mar 13 19:05 /nfsfarm1/www/svn/me/db/format
-r--r--r-- 1 apache apache 2 Mar 13 19:05 /nfsfarm1/www/svn/me/format

                                                                           
             Ryan Schmidt
             <subversion-2007a
             @ryandesign.com> To
                                       Quang.Tran@sita.aero
             03/13/07 05:55 PM cc
                                       users@subversion.tigris.org
                                                                   Subject
                                       Re: ViewVC doesn't work when the
                                       repository is created out of
                                       /var/www
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           

On Mar 13, 2007, at 16:11, Quang.Tran@sita.aero wrote:

[snip]

> <Location /me>
> DAV svn
> SVNPath /nfsfarm1/www/svn/me
> AuthzSVNAccessFile /etc/svn-access
> AuthType Basic
> AuthName "Subversion repository"
> AuthUserFile /etc/svn-passwd
> Require valid-user
> </Location>

[snip]

> [svnadmin_at_p1linux142 Import]$ svn list -R http://10.4.14.141/me
> svn: PROPFIND request failed on '/me'
> svn: PROPFIND of '/me': 500 Internal Server Error (http://10.4.14.141)

Have you configured Apache to allow reading of /nfsfarm1? By default,
Apache is configured very restrictively, so that it can only access
those areas of the hard drive that an administrator has deemed
necessary. For example, Apache is probably configured to allow you to
read out of /var/www.

Look in your httpd.conf for sections like this:

#
# Each directory to which Apache has access can be configured with
respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www">
     #
     # Possible values for the Options directive are "None", "All",
     # or any combination of:
     # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
     #
     # Note that "MultiViews" must be named *explicitly* --- "Options
All"
     # doesn't give it to you.
     #
     # The Options directive is both complicated and important.
Please see
     # http://httpd.apache.org/docs/2.2/mod/core.html#options
     # for more information.
     #
     Options Indexes FollowSymLinks

     #
     # AllowOverride controls what directives may be placed
in .htaccess files.
     # It can be "All", "None", or any combination of the keywords:
     # Options FileInfo AuthConfig Limit
     #
     AllowOverride None

     #
     # Controls who can get stuff from this server.
     #
     Order allow,deny
     Allow from all
</Directory>

--
To reply to the mailing list, please use your mailer's Reply To All
function
This document is strictly confidential and intended only for use by the addressee unless otherwise stated.  If you are not the intended recipient, please notify the sender immediately and delete it from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 14 20:02:01 2007

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.