Cannot access Subversion repository over http

5 posts / 0 new
Last post
#1 Wed, 01/07/2015 - 12:22
loyalwhite

Cannot access Subversion repository over http

I have three servers running Virtualmin. Across boxes 1 and 2 I have about 15 SVN repositories, all working fine.

On box 3, up to now I have only ever held Working Copies. Today I have created a repository on there in what I thought would be a 10-minute task, but I cannot access the repository over http and I cannot work out why.

On browsing to http://domain.com/svn/reponame I get:

Forbidden
 
You don't have permission to access /svn/reponame on this server.

If I try to browse to http://domain.com/svn/ the error is:

<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>

Looking in the Apache error log, I see this rather unhelpful message for the first of those URLs:

[error] [client xx.xx.xxx.xxx] Access denied: 'domain.com GET svn:/reponame

And this for the second:

[Wed Jan 07 18:04:26 2015] [error] [client xx.xx.xxx.xxx] (20014)Internal error: Can't open file '/home/domain.com/svn/svn/format': No such file or directory
[Wed Jan 07 18:04:26 2015] [error] [client xx.xx.xxx.xxx] Could not fetch resource information.  [500, #0]
[Wed Jan 07 18:04:26 2015] [error] [client xx.xx.xxx.xxx] Could not open the requested SVN filesystem  [500, #2]
[Wed Jan 07 18:04:26 2015] [error] [client xx.xx.xxx.xxx] Could not open the requested SVN filesystem  [500, #2]

I have checked the permission on the svn folder

drwxr-sr-x 3 domain.com domain.com 4096 Jan  7 17:50 svn

and on the repo folder itself inside there:

drwxrws--- 6 apache domain.com 4096 Jan  7 17:50 reponame

All permissions look identical to repositories I have set up on my other servers, which work fine.

Does anyone have any thoughts as to how I could troubleshoot this?

Wed, 01/07/2015 - 15:28
loyalwhite

For anyone finding this in the future, I fixed it. My subversion.conf had become overwritten, presumably when I upgraded the SVN client from version 1.6 to 1.7. Copying that file from one the other servers, which was not exhibiting the problem, fixed this.

In fact, under Virtualmin, subversion.conf should, it seems, contain nothing more than:

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

All other lines commented out.

Mon, 11/09/2015 - 08:21 (Reply to #2)
spasma

Thank you so much for sharing your solution!

Tue, 06/19/2018 - 22:18
tagueis

I am running svn on a centos 7 desktop and trying to access it via http from my Fedora 27 laptop on my home wifi.

I was unable to get past the "Could not open the requested SVN filesystem" error

until I followed this from loyalwhite above:

In fact, under Virtualmin, subversion.conf should, it seems, contain nothing more than: LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so

All other lines commented out.

I now see the "repos - Revision 0: /" screen with repos being my svn repository. Hope this helps.

-Brian

Tue, 01/15/2019 - 11:16
stelios

Hi all, I'm having the same issue after a restore of a backup. My subversion conf has the following:

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

and in all svn urls I'm getting the "Could not open the requested SVN filesystem"

Any help is very much appreciated.

Topic locked