SVN errorcode=2不能打开请求的SVN文件系统。

时间:2022-11-16 14:41:28

I've got MAMP running (XAMP for OSX), and I'm trying to setup subversion.

我已经运行了MAMP运行(XAMP for OSX),我正在尝试设置subversion。

When I go to the freshly created repository in my browser, I get:

当我在浏览器中访问新创建的存储库时,我得到:

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

The repository is setup in ~/server/svn. My html/php files are also there (~/server/http), and it works fine. My basic httpd.conf setup:

存储库设置在~/server/svn中。我的html/php文件也在那里(~/server/http),它运行良好。我基本的httpd。配置设置:

<Location /svn>
DAV svn
SVNPath ~/server/svntest
(Authenticaton will be added later)
</Location>

I've allready chmod'ed everything to 777

我已经准备好了所有东西到777。

drwxrwxrwx   9 gerrit  staff       306 27 okt  2008 svn

Apache's errorlog does not show any errors.

Apache的errorlog不会显示任何错误。

How do I troubleshoot this?

我如何解决这个问题?

9 个解决方案

#1


3  

What is ~/server/svntest? The web server doesn't normally have a home dir or even shell access, try substituting it for a full path.

~ /服务器/ svntest是什么?web服务器通常不会有一个主目录或者甚至是shell访问,尝试将其替换为完整路径。

#2


4  

Try running

尝试运行

svnadmin verify ~/svntest/svn

on the repository. If that reports errors, run:

在存储库中。如果报告出现错误,请运行:

svnadmin recover ~/svntest/svn

#3


2  

Change SELinux security context for repository files:

更改存储库文件的SELinux安全上下文:

# chcon --reference=/var/www/html -R /var/svn/repos
# ll -Z /var/svn/repos
drwxr-xr-x  apache apache system_u:object_r:httpd_sys_content_t /var/svn/repos

#4


2  

You can try using SVNParentPath instead of SVNPath if you are pointing to a folder having multiple repositories.

如果您指向一个拥有多个存储库的文件夹,您可以尝试使用SVNParentPath而不是SVNPath。

#5


1  

Had this problem and found it was caused by an incompatible version of SVNadmin and Apache. I had upgraded SVN on the machine (and forgotten that I had). I just used the full path (/usr/local/subversion-1.3.0/bin/svnadmin on my old CentOS machine) to the old svnadmin bin (version 1.3, as opposed to 1.6.11 which I had upgraded to). Then it worked immediately. No file permission issues.

有了这个问题,发现它是由SVNadmin和Apache的不兼容版本引起的。我在机器上升级了SVN(忘记了我有)。我只是将完整路径(/usr/local/subversion-1.3.0/bin/svnadmin放在我的旧CentOS机器上)到旧的svnadmin bin(版本1.3,相对于我已经升级到的1.6.11)。然后立即工作。没有文件权限问题。

#6


1  

ln -s /home/subversion/repos /var/www/html/

ln - s /home/subversion/repos /var/www/html/

you should NOT do that... access for "everyone"... without svn, svn-user, ...

你不应该那样做……获得“每个人”……没有svn,svn-user,…

#7


0  

You should try:

你应该试试:

ln -s /home/subversion/repos /var/www/html/

#8


0  

change permissions to chown -R apache:apache /your repo

更改权限到chown -R apache:apache /您的repo。

#9


0  

The problem is may be due to the port conflicts between virtual host and apache2.Check that once.That resolved the problem for me

问题在于虚拟主机与apache2之间的端口冲突。检查一次。这解决了我的问题。

#1


3  

What is ~/server/svntest? The web server doesn't normally have a home dir or even shell access, try substituting it for a full path.

~ /服务器/ svntest是什么?web服务器通常不会有一个主目录或者甚至是shell访问,尝试将其替换为完整路径。

#2


4  

Try running

尝试运行

svnadmin verify ~/svntest/svn

on the repository. If that reports errors, run:

在存储库中。如果报告出现错误,请运行:

svnadmin recover ~/svntest/svn

#3


2  

Change SELinux security context for repository files:

更改存储库文件的SELinux安全上下文:

# chcon --reference=/var/www/html -R /var/svn/repos
# ll -Z /var/svn/repos
drwxr-xr-x  apache apache system_u:object_r:httpd_sys_content_t /var/svn/repos

#4


2  

You can try using SVNParentPath instead of SVNPath if you are pointing to a folder having multiple repositories.

如果您指向一个拥有多个存储库的文件夹,您可以尝试使用SVNParentPath而不是SVNPath。

#5


1  

Had this problem and found it was caused by an incompatible version of SVNadmin and Apache. I had upgraded SVN on the machine (and forgotten that I had). I just used the full path (/usr/local/subversion-1.3.0/bin/svnadmin on my old CentOS machine) to the old svnadmin bin (version 1.3, as opposed to 1.6.11 which I had upgraded to). Then it worked immediately. No file permission issues.

有了这个问题,发现它是由SVNadmin和Apache的不兼容版本引起的。我在机器上升级了SVN(忘记了我有)。我只是将完整路径(/usr/local/subversion-1.3.0/bin/svnadmin放在我的旧CentOS机器上)到旧的svnadmin bin(版本1.3,相对于我已经升级到的1.6.11)。然后立即工作。没有文件权限问题。

#6


1  

ln -s /home/subversion/repos /var/www/html/

ln - s /home/subversion/repos /var/www/html/

you should NOT do that... access for "everyone"... without svn, svn-user, ...

你不应该那样做……获得“每个人”……没有svn,svn-user,…

#7


0  

You should try:

你应该试试:

ln -s /home/subversion/repos /var/www/html/

#8


0  

change permissions to chown -R apache:apache /your repo

更改权限到chown -R apache:apache /您的repo。

#9


0  

The problem is may be due to the port conflicts between virtual host and apache2.Check that once.That resolved the problem for me

问题在于虚拟主机与apache2之间的端口冲突。检查一次。这解决了我的问题。