SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in
 
Could not open the requested SVN filesystem
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    SVNForum.org Forum Index -> Apache
View previous topic :: View next topic  
Author Message
Wizumwalt



Joined: 10 Jun 2005
Posts: 5

PostPosted: Fri Jun 10, 2005 4:46 pm    Post subject: Could not open the requested SVN filesystem Reply with quote

I think I'm getting closer ... Where is the path of this SVNIndexXSLT line pointing to?
SVNIndexXSLT "/svnindex.sxl"

I'm hoping if I put this svnindex.xsl file in the right location, it will fix this next error ...

Code:

   This XML file does not appear to have any style information associated with it. The document tree is shown below.
     
   <D:error>
<C:error/>
<m:human-readable errcode="160029">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>


All of my repository directories are owned by apache and the group is svnusers.
Back to top
View user's profile Send private message
Manuzhai



Joined: 16 Dec 2004
Posts: 168
Location: Amsterdam

PostPosted: Sun Jun 12, 2005 5:18 am    Post subject: Reply with quote

That is not an error, just a notice that there is no XSLT.

Your real problem is with Subversion not being open to able the SVN filesystem. I'd say you probably got the permissions wrong (on what OS are you?).
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Wizumwalt



Joined: 10 Jun 2005
Posts: 5

PostPosted: Mon Jun 13, 2005 11:36 am    Post subject: Reply with quote

Thnxs, I thought I had fixed the perms, but there were a few files still w/ wrong perms.
Back to top
View user's profile Send private message
symo



Joined: 26 Jul 2005
Posts: 4

PostPosted: Tue Jul 26, 2005 3:33 am    Post subject: Which file do you have to change permissions on? Reply with quote

Hi Guys,

I am new to support, fresh out of uni, and my first task is to set up subversion.

I am trying to get a subversion server up and running on Fedora Core 3.

I have installed apache2 (yum install httpd)
I have installed subversion (yum instal subversion)
I have installed mod_dav_svn (yum install mod_dav_svn)

I have added the lines to my httpd.conf file:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

and:
User svn
Group svn

and also:
<Location /svn>
DAV svn
SVNPath /home/svn/repos/
</Location>

I have set all the permissions on "/home/svn/repos" to svn.

I get the message:


This XML file does not appear to have any style information associated with it. The document tree is shown below.

-
<D:error>
<C:error/>
<m:human-readable errcode="13">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>


I have created the repository using:

svnadmin create /home/svn/repos

What am I doing wrong?
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Tue Jul 26, 2005 3:42 am    Post subject: Re: Which file do you have to change permissions on? Reply with quote

Is the whole tree of /home/svn/repos writable for user svn, the one Apache is using in your case ? It should be.
_________________
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
symo



Joined: 26 Jul 2005
Posts: 4

PostPosted: Wed Jul 27, 2005 4:05 am    Post subject: Reply with quote

Thank you for you help, I made the whole tree recursively "svn" group and user, and I dont get the error:
<m:human-readable errcode="13">

But unfortunately I now get the error:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

-
<D:error>
<C:error/>
<m:human-readable errcode="160029">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>


Do you have any clues on this one???? Could it have anything to do with chcon???
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Wed Jul 27, 2005 5:23 am    Post subject: chcon ? Reply with quote

symo wrote:

Do you have any clues on this one???? Could it have anything to do with chcon???

what is chcon ?
_________________
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
mike5



Joined: 10 Apr 2005
Posts: 571
Location: Slovenia

PostPosted: Wed Jul 27, 2005 6:01 am    Post subject: Reply with quote

What is in /home/svn/repos ?

Is it just one repository, or are there more repositories in it?

Cheers, Mike5
_________________
Miha Vitorovic
Close the world, txEn eht nepO.
Back to top
View user's profile Send private message Visit poster's website
symo



Joined: 26 Jul 2005
Posts: 4

PostPosted: Wed Jul 27, 2005 8:50 pm    Post subject: Reply with quote

Hi again,

/home/svn/repos is just one repository,
I creted it using the command:

svnadmin create /home/svn/repos

Is this the correct way to create a repository?
Have I addressed the repository correctly?


Side note:

chcon is a unix command for change the security context of each file to a different context of your choosing. find more info at:
http://linuxcommand.org/man_pages/chcon1.html
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Thu Jul 28, 2005 1:27 am    Post subject: security issues Reply with quote

symo wrote:

/home/svn/repos is just one repository,
I creted it using the command:

svnadmin create /home/svn/repos

Is this the correct way to create a repository?
Have I addressed the repository correctly?


This is the correct way it is just that the name you used isn't that clear.
I think people usually create a directory called "repos" and then create
one or more repositories within that directory. It should not matter just for
easier communicatiion.

symo wrote:

Chcon is a unix command for change the security context of each file to a different context of your choosing. find more info at:
http://linuxcommand.org/man_pages/chcon1.html


Ah, SElinux.
I turned it off because I did not have the time to learn it and I heard it was not working really well no FC3 that I have currently.

Security considerations might be an issue for SVN not to work.

Try chmod-ing the whole treeto your user and if that does not work then
chown 777 the whole tree. If you have it working wsith this then you know
it was a user rightsisse. Now go and remove the unnecessary bits in order to secure
your installation.
_________________
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: Sat Jul 30, 2005 6:24 pm    Post subject: Reply with quote

I'm using centOS4 and I've tried all the suggestions people mentioned before (i.e. chmod 0777, chcon, ...) However, I still couldn't get svn to work with apache2 although I had no trouble at all with "svn list file:///".

I traced the problem to (/var/log/messages):

Jul 30 15:02:23 localhost kernel: audit(1122760943.520:0): avc: denied { search } for pid=3008 exe=/usr/sbin/httpd name=/ dev=hda3 ino=2 scontext=user_u:system_r:httpd_t tcontext=system_u:object_r:file_t tclass=dir

So it's not that "format" file that apache failed to access. In fact, I got the same error in /var/log/messages even if I try to access a non-existing svn repository (and the apache error_log would still show ".../format: permission denied" instead of "file not found") It seems that apache is trying to access /, but why?

Can someone please help me? I've been stuck at this for several days.. really getting frustrated..

thanks,
-- John
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sat Jul 30, 2005 6:29 pm    Post subject: apache configuration issue ? Reply with quote

could you share the relevant part in httpd.conf with us and show how the relevant part of the filesystem looks like ?
_________________
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: Sat Jul 30, 2005 7:05 pm    Post subject: Reply with quote

I have these lines in conf.d/subversion.conf:

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

and this file is automatically included in httpd.conf. The repository was created using:

svnadmin create /u/svn/repos
chmod -R 0777 /u/svn/repos
chcon -R -h -u system_u -t httpd_sys_content_t /u/svn/repos

"svn list file:///u/svn/repos" can access the repository successfully, but "svn list http://localhost/svn" fails with:

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

and /var/log/httpd/error_log shows:

[Sat Jul 30 16:00:06 2005] [error] [client 127.0.0.1] (20014)Error string not specified yet: Can't open file '/u/svn/repos/format': Permission denied
[Sat Jul 30 16:00:06 2005] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0]
[Sat Jul 30 16:00:06 2005] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #13]
[Sat Jul 30 16:00:06 2005] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #13]

As I mentioned before, it has nothing to do with /u/svn/repos/format, because /var/log/messages shows:

Jul 30 16:00:06 localhost kernel: audit(1122764406.907:0): avc: denied { search } for pid=3157 exe=/usr/sbin/httpd name=/ dev=hda3 ino=2 scontext=user_u:system_r:httpd_t tcontext=system_u:object_r:file_t tclass=dir

I tried to rename format to foo, but httpd/error_log still shows "/u/svn/repos/format: permission denied"

-- John
Back to top
View user's profile Send private message
szabgab



Joined: 12 Jul 2005
Posts: 91
Location: Modiin

PostPosted: Sun Jul 31, 2005 12:05 am    Post subject: mounted disk ? Reply with quote

I can only guess

1) /u is some network device or for some reason the user that runs apache cannot see
try to su to that user and see if you can run sc\vn co file:///... then ?

2) Uncomment the loading of conf.d/subversion.conf, restart apache and try the
svn co http:// operation again. Does it fail the same way ?
Then you know the loaded config file did not have a chance to do its work
_________________
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 2:16 am    Post subject: Reply with quote

No, /u is not a network device; it's just a partition. "svn update file:///u/svn/repos" works fine, but "svn update http://localhost/svn" failed. I tried to change httpd.conf to include those lines, but got exactly the same result.
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 1, 2, 3  Next
Page 1 of 3
Display posts from previous:   
Google
 
Web SVNForum.org

 




Powered by phpBB