Announcement

Collapse
No announcement yet.

Could not open the requested SVN filesystem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not open the requested SVN filesystem

    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.

  • #2
    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?).

    Comment


    • #3
      Thnxs, I thought I had fixed the perms, but there were a few files still w/ wrong perms.

      Comment


      • #4
        Which file do you have to change permissions on?

        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?

        Comment


        • #5
          Re: Which file do you have to change permissions on?

          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

          Comment


          • #6
            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???

            Comment


            • #7
              chcon ?

              Originally posted by symo
              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

              Comment


              • #8
                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.

                Comment


                • #9
                  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

                  Comment


                  • #10
                    security issues

                    Originally posted by symo
                    /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.

                    Originally posted by symo
                    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

                    Comment


                    • #11
                      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_ubject_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

                      Comment


                      • #12
                        apache configuration issue ?

                        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

                        Comment


                        • #13
                          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_ubject_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

                          Comment


                          • #14
                            mounted disk ?

                            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

                            Comment


                            • #15
                              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.

                              Comment

                              Working...
                              X