无法打开请求的 SVN 文件系统

无法打开请求的 SVN 文件系统

当我去http://localhost/repo/我的项目/并输入密码,显示以下信息:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="2">Could not open the requested SVN filesystem</m:human-readable>
</D:error>

这是我的httpd-svn.conf:

<Location /repo>
      DAV svn
      SVNPath “/usr/local/repo”
  AuthType Basic

  AuthName "Subversion repository"

  AuthUserFile /etc/users

  Require valid-user

</Location>

$ ls -la
drwxr-xr-x   3 _www  wheel  102 Aug 11 22:22 repo

我该如何解决这个问题?

答案1

通过故障排除聊天,我们发现了这些错误日志:

[Fri Aug 12 00:56:10 2011] [error] [client 192.168.1.2] (20014)Internal error: Can't open file '\xe2\x80\x9c/usr/local/repo\xe2\x80\x9d/format': No such file or directory 

这导致我们发现配置中的引号是那些狡猾的漂亮“”引号,而不是配置友好的""引号。这招奏效了!

答案2

我也遇到过同样的问题,但就我的情况而言,这是钩子/提交后脚本的文件权限问题。因此,我更改了文件的所有者,问题就解决了。

只是发布,因为我在尝试搜索答案时看到了这篇文章,因为我收到了针对完全不同的问题的完全相同的错误消息,它可能对其他人有用。

相关内容