LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2008, 05:03 PM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
Exclamation 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

Last edited by Braynid; 07-01-2008 at 03:01 AM.
 
Old 07-01-2008, 02:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
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
 
Old 07-01-2008, 03:22 AM   #3
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
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)
 
Old 07-01-2008, 03:41 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
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
 
Old 07-01-2008, 04:06 AM   #5
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
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.
 
Old 07-01-2008, 04:23 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
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.
 
Old 07-01-2008, 04:29 AM   #7
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Braynid View Post

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.
 
Old 07-01-2008, 05:16 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
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.
 
Old 07-01-2008, 10:10 AM   #9
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
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
 
Old 03-04-2009, 07:33 AM   #10
felbape
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in using subversion(svn) in kdevelop in our project askme_scor Linux - Software 0 10-13-2007 02:47 PM
SVN: Is it possible to commit to multiple Subversion repos? nathacof Linux - Software 1 07-22-2007 08:15 PM
Subversion / Tortoise SVN problem outshined Linux - Software 1 06-08-2006 12:41 PM
Subversion (svn) client for Slackware? shilo Slackware 1 08-22-2005 06:05 PM
subversion(svn) faezeh Fedora 0 05-13-2005 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration