首页 文章

Apache失败的SVN(错误代码=“13”)无法打开请求SVN文件系统

提问于
浏览
1

我有与Error number 13 - Remote access svn with dav_svn failing相同的症状 . 但是,该问题的解决方案对我不起作用 .

错误消息:

<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="13">Could not open the requested SVN filesystem</m:human-readable>
</D:error>

相关的apache日志条目:

(20014)内部错误:无法打开文件'/ svn / testrepo / format':权限被拒绝

subversion conf文件:

<Location /svn>
   DAV svn
   SVNPath /svn/testrepo
</Location>

但是,我进一步确认用户 apache 确实可以打开文件 /svn/testrepo/format ,并且不仅可以打开它,还可以移动它,复制它,删除它并覆盖它 . (su apache - >做所有这些 . )接下来我该怎么办?

=========== FURTHER INFORMATION ===========

为回应crazyjul,这里是 ps aux | grep apache 的结果

apache   14019  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14020  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14021  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14022  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14023  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14024  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14025  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
apache   14026  0.0  0.2  11248  2112 ?        S    16:40   0:00 /usr/sbin/httpd
root     14032  0.0  0.0   5412   772 pts/4    R+   16:41   0:00 grep apache

ps aux | grep www 的结果

root     14034  0.0  0.0   5412   772 pts/4    S+   16:42   0:00 grep www

我的repo文件夹中 ls -as 的结果:

drwxrwxrwx 7 apache apache 4096 2011-10-07 16:13 .
drwxr-xr-x 7 apache apache 4096 2011-10-07 14:04 ..
-rw-r--r-- 1 apache apache  229 2011-10-07 13:50 README.txt
drwxr-xr-x 2 apache apache 4096 2011-10-07 15:50 conf
drwxr-xr-x 2 apache apache 4096 2011-10-07 13:50 dav
drwxr-sr-x 5 apache apache 4096 2011-10-07 14:25 db
-rwxrwxrwx 1 apache apache    2 2011-10-07 13:50 format
drwxr-xr-x 2 apache apache 4096 2011-10-07 13:50 hooks
drwxr-xr-x 2 apache apache 4096 2011-10-07 13:50 locks

4 回答

  • 2

    你有启用 selinux 吗?我通常会为 mod_dav_svn 禁用它,但您可以使用某些配置 .

    vince@fedora12 /etc/httpd/conf.d > cat /etc/selinux/config
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #       enforcing - SELinux security policy is enforced.
    #       permissive - SELinux prints warnings instead of enforcing.
    #       disabled - SELinux is fully disabled.
    SELINUX=disabled
    # SELINUXTYPE= type of policy in use. Possible values are:
    #       targeted - Only targeted network daemons are protected.
    #       strict - Full SELinux protection.
    SELINUXTYPE=targeted
    
  • 2

    请在这里查看我的解决方案:http://www.indevcenter.com/svn-issue-could-open-requested-svn-filesystem/

    它应该适用于您的SVN权限问题 .

  • 2

    我在研究,我发现了这一点 .

    可能你有SELinux anabled,是一个安全系统,我没有完全理解它是如何工作的,但这就是问题所在 . 如果你想知道是否在类型上

    [root @ localhost~] #getenforce

    如果说强制执行,则打开

    为了停用它类型

    [root @ localhost~] #chcon -R -t httpd_sys_content_t / var / www / svn / your / path [root @ localhost~] #chcon -R -t httpd_sys_rw_content_t / var / www / svn / your / path

  • 1

    Apache通常有另一个用户来访问数据 . 通常它被称为www-data . 您可以通过调用 ps aux 来检查并搜索apache进程

相关问题