SVN errorcode=2 Could not open the requested SVN filesystem
Solution 1
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.
Solution 2
Try running
svnadmin verify ~/svntest/svn
on the repository. If that reports errors, run:
svnadmin recover ~/svntest/svn
Solution 3
You can try using SVNParentPath instead of SVNPath if you are pointing to a folder having multiple repositories.
Solution 4
Change SELinux security context for repository files:
# 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
Solution 5
ln -s /home/subversion/repos /var/www/html/
you should NOT do that... access for "everyone"... without svn, svn-user, ...
Gerrit
Updated on September 17, 2020Comments
-
Gerrit over 3 years
I've got MAMP running (XAMP for OSX), and I'm trying to setup 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:
<Location /svn> DAV svn SVNPath ~/server/svntest (Authenticaton will be added later) </Location>
I've allready chmod'ed everything to 777
drwxrwxrwx 9 gerrit staff 306 27 okt 2008 svn
Apache's errorlog does not show any errors.
How do I troubleshoot this?
-
David Hogue over 12 yearsI don't think this was the problem that Gerrit had, but it did solve my problem, so thanks!