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

Re: File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 27 Jun 2014 15:42:44 +0100

"Korte, Michael Johannes" <michael.korte_at_zeiss.com> writes:

> Warnung: Failed to start '/var/subversion/repos17/sbox/hooks/post-commit' hook
>
> It seems that the hook script can not be executed, when it is started
> via apache server, if it has execute permission and owner www-data.
>
> Is there any possibility to specify that apache can execute a script?

I believe the "Failed to start" message means that Apache is failing to
fork a child process and is not getting as far as attempting to run the
hook script. One possibility is this memory problem:

http://mail-archives.apache.org/mod_mbox/subversion-dev/201211.mbox/%3C87bof1nqcn.fsf@ntlworld.com%3E

in which case the solution is to allocate some swap or reduce the cache
size.

Run "strace -f -p <NNN>" on the apache process and look for the clone()
and execve() calls. That will confirm whether or not apache is forking
and attempting to run the hook.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-06-27 16:43:18 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.