SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingAll About Subversion Hook Scripts Free Subversion TrainingSubversion Locking Free Subversion TrainingAll About Checkouts
 
Could not open the requested SVN filesystem
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    SVNForum.org Forum Index -> Apache
View previous topic :: View next topic  
Author Message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sun Jul 31, 2005 2:20 am    Post subject: apache config? Reply with quote

wuz73 wrote:
I tried to change httpd.conf to include those lines, but got exactly the same result.


I meant to exclude those lines
_________________
Gabor Szabo
http://www.szabgab.com/subversion.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sun Jul 31, 2005 2:27 am    Post subject: Re: apache config? Reply with quote

BTW
Which version of Apache and Subversion are you using ?

How did you install them ?
_________________
Gabor Szabo
http://www.szabgab.com/subversion.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
wuz73



Joined: 30 Jul 2005
Posts: 5

PostPosted: Sun Jul 31, 2005 10:07 am    Post subject: Reply with quote

centOS4 distribution has svn 1.1.1 and apache2 integrated. I didn't install anything separately.

If I remove the svn-related lines, then "svn up http://localhost/svn" gives:

svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn': 405 Method Not Allowed (http://localhost)
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sun Jul 31, 2005 11:54 am    Post subject: selinux ? Reply with quote

wuz73 wrote:
centOS4 distribution has svn 1.1.1 and apache2 integrated. I didn't install anything separately.

If I remove the svn-related lines, then "svn up http://localhost/svn" gives:

svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn': 405 Method Not Allowed (http://localhost)


Then it is not that Sad

Have you tried turning off the whole SELinux thing on your machine
and then trying the
Code:

svn co http://localhost/svn

command ?
_________________
Gabor Szabo
http://www.szabgab.com/subversion.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sun Jul 31, 2005 12:35 pm    Post subject: Re: selinux ? Reply with quote

Actually, have you read this in the FAQ?

http://subversion.tigris.org/faq.html#reposperms
_________________
Gabor Szabo
http://www.szabgab.com/subversion.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
wuz73



Joined: 30 Jul 2005
Posts: 5

PostPosted: Sun Jul 31, 2005 1:19 pm    Post subject: Reply with quote

Yes, I've read the FAQ on permission. If I turn off SElinux, then it works, but if I turn it on, then it doesn't work, even though I used chcon and made sure that the security context is set properly by using "ls -Z /u/svn/repos".
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sun Jul 31, 2005 1:30 pm    Post subject: user rights Reply with quote

wuz73 wrote:
Yes, I've read the FAQ on permission. If I turn off SElinux, then it works, but if I turn it on, then it doesn't work, even though I used chcon and made sure that the security context is set properly by using "ls -Z /u/svn/repos".

OK,

while I don't know what is -Z (I don't have it on my ls)
having read access to the files is not enough. Apache has to be able to write to the directory structure of Suversion even for a simple

svn list http://...

operation.

So if you really want to keep SELinux then this is now your call to play with the rights and make sure the user that runs Apache has enough rights.

BTW that's what you should try. su - to the user that runs Apache and
tweak the suer rights until that user can

svn list file:///u/svn/repos



and then post it once you found out the exact magic
_________________
Gabor Szabo
http://www.szabgab.com/subversion.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
nvasudevan



Joined: 24 Aug 2005
Posts: 1

PostPosted: Wed Aug 24, 2005 10:00 am    Post subject: Error string not specified yet: Can't open file Reply with quote

All,

I have been getting the following error. The permissions are fine. I am running subversion 1.2.1 on Redhat Ent Linux 4, httpd2.0.52. Its only the web_dav access which doesn work. If i run "svn" on the command line, i can checkout , list etc.. Has this been fixed? I saw quite a few issues regarding this. Thanks for the help

===

[Wed Aug 24 14:35:26 2005] [error] [client 20.61.30.27] (20014)Error string not specified yet: Can't open file '/export/subversion2/format': Permission denied
[Wed Aug 24 14:35:26 2005] [error] [client 20.61.30.27] Could not fetch resource information. [500, #0]
[Wed Aug 24 14:35:26 2005] [error] [client 20.61.30.27] Could not open the requested SVN filesystem [500, #13]
[Wed Aug 24 14:35:26 2005] [error] [client 20.61.30.27] Could not open the requested SVN filesystem [500, #13]
Back to top
View user's profile Send private message
dang



Joined: 28 Dec 2005
Posts: 1

PostPosted: Wed Dec 28, 2005 6:43 pm    Post subject: Reply with quote

if you are using centos or rhel and you are getting permission issues, try putting your repository in /var/www (like /var/www/svn).

That worked for me. Has to do with stock apache being chrooted
Back to top
View user's profile Send private message
toddyp



Joined: 13 Nov 2006
Posts: 3

PostPosted: Mon Nov 13, 2006 1:48 am    Post subject: I've got exact problem Reply with quote

Hello all,

I've got the exact same problem as the original poster. I read and followed the book:

Code:
svnadmin create /usr/local/svn
svn import /usr/local/test/project file:///usr/local/svn/myproject -m "Initial import"
svn checkout file:///usr/local/svn/myproject myproject


Everything is fine so far, I can edit file content, and see the diff and commit, and update no problem.

Then i tried apache access, lines added to httpd.conf:

Code:
<Location /repos>
      DAV svn
      SVNParentPath /usr/local/svn
</Location>


I tried to access it via command line:
Code:
svn co http://localhost/svn/myproject


Code:
svn: PROPFIND request failed on '/svn/myproject'
svn: Could not open the requested SVN filesystem


via browser: http://localhost/svn/myproject
Error msg in browser:
Code:
Could not open the requested SVN filesystem

in /var/log/httpd/error_log:
Code:
[Mon Nov 13 16:42:02 2006] [error] [client 10.0.1.48] (20014)Error string not specified yet: Can't open file '/usr/local/svn/myproject/format': No such file or directory
[Mon Nov 13 16:42:02 2006] [error] [client 10.0.1.48] Could not fetch resource information.  [500, #0]
[Mon Nov 13 16:42:02 2006] [error] [client 10.0.1.48] Could not open the requested SVN filesystem  [500, #2]
[Mon Nov 13 16:42:02 2006] [error] [client 10.0.1.48] Could not open the requested SVN filesystem  [500, #2]


Oh yes, i tried also the chcon from http://subversion.tigris.org/faq.html#reposperms and restarted httpd server. no luck

I just confused, file 'format ' isn't under /usr/local/svn/myproject, but only in /usr/local/svn. is this the problem? how to solve?

Please if anybody have idea what should i do here.
Back to top
View user's profile Send private message MSN Messenger
andyl



Joined: 03 Nov 2005
Posts: 4790

PostPosted: Mon Nov 13, 2006 7:51 am    Post subject: Reply with quote

You created a repository in /usr/local/svn

SVNParentPath /usr/local/svn means "go to this directory and look for subdirectories which contain repositories."

You want SVNPath /usr/local/svn because you only have one directory and it's actually in that directory.
Back to top
View user's profile Send private message
toddyp



Joined: 13 Nov 2006
Posts: 3

PostPosted: Mon Nov 13, 2006 6:34 pm    Post subject: Reply with quote

GOT IT!
Thanks heaps mate. The whole directory structures was confusing at the beginning.
Back to top
View user's profile Send private message MSN Messenger
markie



Joined: 28 Sep 2007
Posts: 1
Location: New Mexico

PostPosted: Fri Sep 28, 2007 5:17 pm    Post subject: Reply with quote

Hi there.. First post so forgive any stupid things I ask. I am running into the same issue, but I do not have SELinux enabled, and I even added full read write permissions to the format file, but I still get the same error:

[Fri Sep 28 14:58:00 2007] [error] [client 172.16.16.172] (20014)Internal error: Can't open file '/var/svn/repositories/ENVWORLD/format': Permission denied
[Fri Sep 28 14:58:00 2007] [error] [client 172.16.16.172] Could not fetch resource information. [500, #0]
[Fri Sep 28 14:58:00 2007] [error] [client 172.16.16.172] Could not open the requested SVN filesystem [500, #13]
[Fri Sep 28 14:58:00 2007] [error] [client 172.16.16.172] Could not open the requested SVN filesystem [500, #13]

Any ideas?
Back to top
View user's profile Send private message Visit poster's website AIM Address
jobano



Joined: 10 Oct 2007
Posts: 1

PostPosted: Wed Oct 10, 2007 8:10 am    Post subject: Reply with quote

I just experienced the same problem... full permissions, apache owner and same error: Can't open file '[...]/format': Permission denied

The trick for me was to move my SVNparentFolder into /var/www/ which is apparently much more reachable for apache.

On my red hat server, /var/www have all apache subdirectories inside (html, cgi-bin, error...) and should be the root directory from where apache can access. I just suppose that last because I wasn't able to find the httpd.conf line relative to it.

Try that !
Back to top
View user's profile Send private message Send e-mail
SpaceBaz



Joined: 30 Oct 2007
Posts: 1

PostPosted: Tue Oct 30, 2007 2:32 pm    Post subject: Reply with quote

I was having the same problem.
I solved min by replacing the
SVNPath with SVNParentPath in the httpd.conf

Hope that helps someone.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> Apache All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3
Display posts from previous:   
Google
 
Web SVNForum.org