[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

1.4.6 auto update in post-commit stopped working when we moved from rhel4->rhel5

From: James Riordon <hosting_at_outofcontrol.ca>
Date: Fri, 4 Apr 2008 11:48:41 -0400

Hi,

We had post-commit automatically updating several folders on our
server everytime someone did a check-in. We moved to RHEL5 and are
now running Subversion 1.4.6. Everything appears normal, except our
auto-updates now fail with this in the post-commit.log:

Fri Apr 4 08:02:55 PDT 2008Authentication realm: <https://domain:
443> Subversion repositoryPassword for 'root': Authentication realm:
<https://domain:443> Subversion repositoryUsername: svn: PROPFIND
request failed on '/svn/repos/trunk/html/_css/img/popup'svn: PROPFIND
of '/svn/repos/trunk/html/_css/img/popup': authorization failed
(https://domain)

The RPM's we installed:
mod_dav_svn-1.4.6-0.1.el5.rf.i386.rpm
subversion-1.4.6-0.1.el5.rf.i386.rpm
subversion-devel-1.4.6-0.1.el5.rf.i386.rpm

This is the relevant part of our post-commit:
#!/bin/sh
LOG=/home/virtual/domain/home/svn/repos/repos/hooks/post-
commit.logdate >> $LOG
sudo /usr/bin/svn update /home/virtual/domain2/var/www/html/temp/
popup 1>>$LOG 2>>$LOG

We are using sudoers, and this is my entry in /etc/sudoers:
apache ALL=NOPASSWD:/usr/bin/svn update /home/virtual/domain2/var/www/
html/temp/popup

If I run the post-commit command from the CLI like this:
sudo -u apache /usr/bin/svn update /home/virtual/domain2/var/www/html/
temp/popup

I get this:
svn: Can't open file '/root/.subversion/servers': Permission denied

That last bit I am not sure is relevant or if I am being trapped by
chcon settings, though I have tried the suggestions on this list for
that with no success. I just need the automated updates to work, not
the CLI version. In the back of my mind there is some little niggly
thing I have forgotten to change, but for the list of me I can't
think of it, and I can't find my notes.

Does anyone have any suggestions on this?

James

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-04 17:49:10 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.