错误号13 - 远程访问svn,dav_svn失败

时间:2010-02-12 16:52:20

标签: linux svn version-control ubuntu

我的svn存储库出现以下错误

<D:error>
<C:error/>
<m:human-readable errcode="13">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>

我已按照How to GeekUbuntu Community Page的说明操作,但没有成功。我甚至给了存储库777权限。

<Location /svn/myProject >

  # Uncomment this to enable the repository
  DAV svn

  # Set this to the path to your repository
  SVNPath /svn/myProject
  # Comments

  # Comments

  # Comments
  AuthType Basic
  AuthName "My Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd

  # More Comments

</Location>

权限如下:

drwxrwsrwx 6 www-data webdev 4096 2010-02-11 22:02 /svn/myProject

svnadmin验证目录

$svnadmin verify /svn/myProject/
* Verified revision 0.

我正在

访问存储库
http://ipAddress/svn/myProject

编辑:apache错误日志说

[Fri Feb 12 13:55:59 2010] [error] [client <ip>] (20014)Internal error: Can't open file '/svn/myProject/format': Permission denied
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not fetch resource information.  [500, #0]
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not open the requested SVN filesystem  [500, #13]
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not open the requested SVN filesystem  [500, #13]

即使我确认这个文件是可读写的。

我做错了什么?

2 个答案:

答案 0 :(得分:4)

我必须将apache的权限授予我的repo上方的目录:ie /svn

我使用了命令

sudo chown -R www-data:webdev /svn

答案 1 :(得分:0)

也许/ svn / myProject中文件和子目录的权限没有改变。你是递归地改变了吗?