home

subversion webdav

In trying to setup SVN webDAV over https on a server, I kept getting permission denied:

[Mon Jun 13 17:49:27 2005] [error] [client 10.0.0.59]
   (20014)Error string not specified yet: Can't open file
    '/home/svnroot/format': Permission denied
[Mon Jun 13 17:49:27 2005] [error] [client 10.0.0.59]
    Could not fetch resource information.  [500, #0]
[Mon Jun 13 17:49:27 2005] [error] [client 10.0.0.59]
    Could not open the requested SVN filesystem  [500, #13]
[Mon Jun 13 17:49:27 2005] [error] [client 10.0.0.59]
    Could not open the requested SVN filesystem  [500, #13]

I thought I would be clever and:

[root@beta ~]# chmod ugo+rwx /home/svnroot

But still no. OK, so it must be SELinux, right? Let’s enable SELinux access to home directories, and reboot. What’s with this SELinux changes requiring a reboot, it’s like windows. There goes my few weeks up-time….

Instead, I FINALLY found this:

http://subversion.tigris.org/faq.html#reposperms

that says to issue:

$ chcon -R -h -t httpd_sys_content_t PATH_TO_REPOSITORY

Do I know what that does? No. Do I care, since my svn is now working after only a few hours? No.

Leave a Reply

Type the word "seebq" here: