LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Subversion - Could not open the requested SVN filesystem (https://www.linuxquestions.org/questions/linux-server-73/subversion-could-not-open-the-requested-svn-filesystem-652666/)

Braynid 06-30-2008 05:03 PM

Subversion - Could not open the requested SVN filesystem
 
Hey,

I'm trying to configure subversion on a CentOS server that runs Apache2.

I have this in httpd.conf:

Code:

<Location /repos>
DAV svn
SVNPath /home/repos
</Location>

And I have created a new repository, using svnadmin, in /home/admin.

Also I've restarted the httpd daemon.

/home/repos has both owner and group ownership set to 'apache' and also I've tried setting it to chmod 777 ( now is 755).

If is use file:///home/repos it works fine, but if I try to use it via a URL like http://domain.com/repos then it gives me this:

Code:

svn: PROPFIND request failed on '/repos/repository'
svn: Could not open the requested SVN filesystem

Any ideas why ?!

Thanks


LATER EDIT:
Quote:

And I have created a new repository, using svnadmin, in /home/admin.
Actually I made the repository in /home/repos not /home/admin

bathory 07-01-2008 02:15 AM

Quote:

And I have created a new repository, using svnadmin, in /home/admin.
Since you have created the repository in /home/admin you should change SVNPath to point to that directory. Also make sure you load the various modules needed by apache (mod_dav.so, mod_dav_svn.so, mod_authz_svn.so).

Regards

Braynid 07-01-2008 03:22 AM

My bad, I made the repsitory in /home/repos not in /home/admin. So that's alright.

On the other hand there was a wee problem with the apache modules as follows:

I didn't had the mod_dav_svn.so so I did a yum install dav_svn. In httpd.conf I don't have any LoadModule for mod_dav_svn but if I add:

Code:

LoadModule dav_svn_module modules/mod_dav_svn.so
and then restart httpd it says:
Code:

Starting httpd: [Tue Jul 01 11:21:27 2008] [warn] module dav_svn_module is already loaded, skipping
At the moment I have the following lines concerning SVN in httpd.conf:
Code:

LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so

(even if I decomment dav_fs_module, it still won't work)

bathory 07-01-2008 03:41 AM

If the module is already loaded, then maybe there is an "Include ..." statement in httpd.conf that is used to load the various modules. You can run
Code:

httpd -M
to see the loaded modules

Braynid 07-01-2008 04:06 AM

I did a httpd -M and in deed the modules:
Code:

dav_svn_module (shared)
 authz_svn_module (shared)

are loaded.

Still the I cannot access the svn repository.

bathory 07-01-2008 04:23 AM

Quote:

Still the I cannot access the svn repository.
You don't say what is the problem you face.
Anyway take a look at the apache error_log to see if you find out what the problem is.

Braynid 07-01-2008 04:29 AM

Quote:

Originally Posted by Braynid (Post 3199678)

If is use file:///home/repos it works fine, but if I try to use it via a URL like http://domain.com/repos then it gives me this:

Code:

svn: PROPFIND request failed on '/repos/repository'
svn: Could not open the requested SVN filesystem

Any ideas why ?!

Thanks

Also I've been 'combing' the error_log and access_log with no notable result yet.

bathory 07-01-2008 05:16 AM

Make sure that the user/group that apache is running as, owns your repository (you said that it's apache:apache but check httpd.conf to make sure).
Also change "SVNPath /home/repos" to "SVNParentPath /home/repos" to see if it helps.

Braynid 07-01-2008 10:10 AM

Thanks for all the support, I've found the problem.

It seems that due to the definition in httpd.conf the correct browser path was /repos/repos.

Thanks again

felbape 03-04-2009 07:33 AM

Quote:

Originally Posted by bathory (Post 3200154)
Make sure that the user/group that apache is running as, owns your repository (you said that it's apache:apache but check httpd.conf to make sure).
Also change "SVNPath /home/repos" to "SVNParentPath /home/repos" to see if it helps.

Thanks you for solve my problem with Apache and WebSVN.

Regards.


All times are GMT -5. The time now is 02:43 PM.