开发者

SVN Error: Could not open the requested SVN filesystem

开发者 https://www.devze.com 2023-03-21 09:45 出处:网络
I installed the ffg and subsequently the SVN document on Windows Server 2008: 1. Subversion-Setup-Subversion-1.5.1.en-us

I installed the ffg and subsequently the SVN document on Windows Server 2008:

1. Subversion-Setup-Subversion-1.5.1.en-us
2. Apache-httpd-2.2.开发者_如何学Python19-win32-x86-no_ssl
3. TSVN- TortoiseSVN-1.6.16.21511-win32-svn-1.6.17

Here are the settings for Location:

<Location /svn>
  DAV svn
  SVNListParentPath on
  SVNParentPath C:\SVN
</Location>

When I tried to open the URL in the browser, http://localhost/svn/test, I got this error:

SVN Error: Could not open the requested SVN filesystem.

What is the problem and how can I fix it?


First, the Apache error log file contains more information about such errors.

Since you're using Windows Server 2008 and the repositories are on the C drive, it's possible that the access restrictions prevent the Apache process from accessing them. Add the user the Apache process runs under (could be SYSTEM if it runs as a service) to the C:\SVN folder recursively with full access.

And make sure that there actually is a repository at C:\SVN\test


My situation

I moved my SVN data from one server to another, got everything setup and working great, except that when I created a new file and tried and commit it to the SVN, I got the following error (ONLY on commit of a new file (add), update works fine (existing files)).

$ svn commit -am 'testing commit'
Adding         trunk/public_html/mynewtestfile.txt
svn: Commit failed (details follow):
svn: Could not open the requested SVN filesystem
svn: Could not open the requested SVN filesystem

My Vhosts is set up in a way that I can have multiple repositories within the same directory, and I can access them like so:

http://svn.mydomain.com/repo1
http://svn.mydomain.com/repo2

It turns out that in my vhosts.conf (or httpd.conf or wherever you setup your virtual hosts) is using SVNParentPath so that I can access my SVN repositories using the URLs above.

Q. How do I setup multiple SVN repositories in the same directory on my server?

A: https://serverfault.com/questions/461144/vhost-setup-for-multiple-svn-repositories

Now, I could have either setup the SVN in my vhosts separately to fix this error (check my answer on the ServerFault post) (svn: Could not open...), or I just had to create another SVN repo in my repos directory called error.

I created this repository like so:

#Inside your repository's directory, create an error repository.
svnadmin create error

This seemed to resolve all my errors with committing code through my SVN.


Yes! The problem is file access permissions. For me, the simplest solution was to move the repository to the folder where Apache has read/write permissions.

In my case (I am using CollabNet Subversion Edge):

C:\csvn\data\repositories
0

精彩评论

暂无评论...
验证码 换一张
取 消