1

I've installed subversion on our RHEL server and also installed dav_svn_module. My location tag in httpd.conf is as follows:

<Location /subversion>
DAV svn
SVNPath /subversion
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svn-auth.htpasswd
Require valid-user
</Location>

I've setup a password for svnuser with

htpasswd -c -m /etc/svn-auth.htpasswd svnuser

After restarting httpd, I try to checkout files from the subversion repository to my local machine and receive the error message above. Note that when I try to view the repository via HTTP, I recieve a HTTP 500 error as well.

The httpd error log shows the following entries:

error: Can't open file /subversion/format No such file or directory
Could not fetch resource information [500, #0]
Could not open the requested SVN filesystem [500, #2]

Note that /subversion/format doesn't exist. Not sure why error log is referencing this non-existent file??

What changes are needed to ensure I can both checkout/commit and authenticate via http?

Thanks!

1
  • 1
    What is the output of Apache's error.log (filename may vary)
    – Tim
    Dec 20, 2011 at 18:02

2 Answers 2

2

Well, if /subversion is a subversion repository (as you've configured it to be in your Apache config), then it sure better have a format directory.

How did you create the repository, or where did you create the repository?

If you intended for /subversion to be the repo itself, then it wasn't created correctly. Run svnadmin create /subversion.

If you intended for /subversion to be a directory which contains repos, then your Apache config should be SVNParentPath /subversion instead of SVNPath /subversion - and the repositories in that location still need to be created with svnadmin create.

1
  • Thank You!! My issue was use of SVNPath instead of SVNParentPath. I changed httpd.conf, restarted apache, and all is good again:)
    – SidC
    Dec 20, 2011 at 19:50
1

I have seen this before, I believe it was related to a permissions problem when I created the svn filesystem. From memory I am thinking permissions of 644 are correct.

Also take a look at your apache logs when you make an svn co or svn list call to your new repository. If something is wrong with permissions at the apache level (as the 500 implies) you will see it in the error log (usually /var/log/apache2/error-log or some similar path).

Good luck.

2
  • The /subversion directory shows that svnuser has access and root is the owner. Permissoins are drwxrxrwxrwx for the directory. How do I ensure that httpd can access the directory?
    – SidC
    Dec 20, 2011 at 18:48
  • Ah looks like you got your answer! Dec 21, 2011 at 13:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .