<< Ruby On Rails: The Video | Home | Fedora Core 4 Released >>

Trouble With Subversion

I have encountered a problem with my use of Subversion. The Subversion 1.1.4 (r13838) server is running on a Fedora Core 3 Linux machine up2date-ed on a daily basis.

From another machine, I was able to do svn status, svn add, but was unable to do svn commit or svn up.

The error message I've gotten is:

[root@gao blog]# svn commit -m "Updated blogs"
svn: Commit failed (details follow):
svn: OPTIONS request failed on '/svn/trunk/blog'
svn:
Could not open the requested SVN filesystem

I'm using mod_dav_svn to connect to Subversion through Apache httpd. I haven't changed any settings lately.

If you have encountered similar situations I'd appreciate it if you can give me a hint. Meanwhile, I'll try to diagnose the problem myself and let you know what I found out. Hopefully soon.

[Update: The problem seems to be SELinux related. I'm seeing lines like the following in my system logs:

Jun 11 16:12:55 gao-2004 kernel: audit(1118524375.759:0): avc:  denied  { write
} for  pid=3970 exe=/usr/sbin/httpd name=__db.001 dev=hda3 ino=32791 scontext=us
er_u:system_r:httpd_t tcontext=root:object_r:httpd_sys_content_t tclass=file

The system did receive an updated selinux-policy-targeted-1.17.30-3.2 earlier today.]



Re: Trouble With Subversion

http://svn.haxx.se/users/archive-2004-03/0463.shtml

Re: Trouble With Subversion

Thanks for the link. I do have a permission problem, but it's at the SELinux layer. All the UNIX permissions are fine. It's the SELinux permissions that are messed up.

Looking back at my blog entry 76 days ago, I referenced a Subversion FAQ that "made SELinux happy."

Well SELinux seems to have changed in such a way that the advice no longer works.

Re: Trouble With Subversion

BTW, IntelliJ IDEA 4.5 also stopped working for me on the same machine.

Re: Trouble With Subversion

Well, I don't know what's going on with the SELinux security policies. And guess what I did? I disabled the thing! And Subversion is happy now.

I found one message on FedoraForum that might solve my problem in a less drastic way. But I'm not comfortable with doing it as I have never done it before.

Re: Trouble With Subversion

I tried that message on FedoraForum (http://www.fedoraforum.org/forum/showpost.php?p=157889) - and it works fine for me. Matthew, York UK

Re: Trouble With Subversion

Another remedy, suggested by Daniel J Walsh <dwalsh@redhat.com>, on fedora-list, is to try

setsebool -P httpd_builtin_scripting=1

Add a comment Send a TrackBack