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

Can't open file '/home/svn/svn_repos/format': Permission denied

From: <jussi.peltonen_at_metso.com>
Date: 2004-12-02 12:34:52 CET

Hello,

I've just installed Fedora Core 3 and I'm trying to evaluate SubVersion as
a configuration control tool. There is a problem accessing the repository
with http.

Please note that I'm working with single PC here.

I created a user "svn" and as that user I created repository
/home/svn/svn_repos.

I'm able to check out files from the repository like this:
svn co file:///home/svn/svn_repos/trunk ./trunk

But this one fails:
svn co http://localhost/repos/trunk ./trunk

svn: PROPFIND request failed on '/repos/trunk'
svn:
Could not open the requested SVN filesystem

ps shows that Apache is started as "root" but then changed to "svn". This
is what is supposed to happen because of configuration in httpd.conf.

root 12008 0.2 7.7 17976 9808 ? Ss 12:59 0:01
/usr/sbin/httpd
svn 12012 0.0 7.9 18000 10056 ? S 12:59 0:00
/usr/sbin/httpd
svn 12013 0.0 7.9 18000 10056 ? S 12:59 0:00
/usr/sbin/httpd
svn 12014 0.0 7.9 18000 10056 ? S 12:59 0:00
/usr/sbin/httpd
svn 12015 0.0 7.7 17976 9828 ? S 12:59 0:00
/usr/sbin/httpd
svn 12016 0.0 7.7 17976 9828 ? S 12:59 0:00
/usr/sbin/httpd
svn 12017 0.0 7.7 17976 9828 ? S 12:59 0:00
/usr/sbin/httpd
svn 12018 0.0 7.7 17976 9828 ? S 12:59 0:00
/usr/sbin/httpd
svn 12019 0.0 7.7 17976 9828 ? S 12:59 0:00
/usr/sbin/httpd
root 12042 0.0 0.5 3944 668 pts/2 S+ 13:11 0:00 grep htt

httpd.conf
========

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!

User svn
Group svn

<Location /repos>
    DAV svn
    SVNPath /home/svn/svn_repos
</Location>

/var/log/httpd/error_log
=================

[Fri Dec 02 13:11:27 2005] [error] [client 127.0.0.1] (20014)Error string
not specified yet: Can't open file '/home/svn/svn_repos/format':
Permission denied
[Fri Dec 02 13:11:27 2005] [error] [client 127.0.0.1] Could not fetch
resource information. [500, #0]
[Fri Dec 02 13:11:27 2005] [error] [client 127.0.0.1] Could not open the
requested SVN filesystem [500, #13]
[Fri Dec 02 13:11:27 2005] [error] [client 127.0.0.1] Could not open the
requested SVN filesystem [500, #13]

I can't understand with permission is missing. I've put "777" for each
file under /home/svn/svn_repos. Also svn home directory has "777"
permissions.

Any help available?

Thanks,
Jussi
Received on Thu Dec 2 18:38:53 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.