tags:

views:

4220

answers:

6

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?

+4  A: 

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.

Artem Russakovskii
Bingo!I replaced ~ by /Users/gerrit, and now it works
Gerrit
+1  A: 

Try running

svnadmin verify ~/svntest/svn

on the repository. If that reports errors, run:

svnadmin recover ~/svntest/svn
Sander Rijken
It verifies. I'm not surprised, because its a fresh repostitory. I just created it.
Gerrit
A: 

I'm having the same problem on Cent OS. I have the following subversion.conf in /etc/httpd/conf.d/

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /repos>
     DAV svn
     SVNPath /home/subversion/repos
     # authenticating them valid ones
     AuthType Basic
     AuthName "Subversion Repositories at vatican"
     AuthUserFile /etc/svn-auth-conf
     Require valid-user
</Location>

When to go http://myserver/repos I get asked to log in and after I do that it just says the same error as above:

Could not open the requested SVN filesystem

Apache has the following errors in its error log:

[Thu Jul 02 15:28:31 2009] [error] [client 192.168.1.12] (20014)Internal error: Can't open file '/home/subversion/repos/format': Permission denied
[Thu Jul 02 15:28:31 2009] [error] [client 192.168.1.12] Could not fetch resource information.  [500, #0]
[Thu Jul 02 15:28:31 2009] [error] [client 192.168.1.12] Could not open the requested SVN filesystem  [500, #13]
[Thu Jul 02 15:28:31 2009] [error] [client 192.168.1.12] Could not open the requested SVN filesystem  [500, #13]

Anyone have any ideas?

Patrick Kiernan
SELinux was causing this problem
Patrick Kiernan
Care to explain how you solved it too?
stian
Sure, I disabled SELinux by editing /etc/selinux/configto have only:SELINUX=disabled
Patrick Kiernan
A: 

You should try :

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

newbie
A: 

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

ahamed
A: 

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.

Olof Nordenstam