Hello Philip Martin and Nico Kadel-Gracia,

thanks a lot for your support. It seems that it was really a problem. I tried 
the hooks (unchanged as I have saved them inbetween in subversion) today at a 
different machine (with more memory) and there all hook scripts work perfect. 
The Apache WebDav configuration is on both machines identical.

One last point, which I still not understand. In the link you sent, I saw that 
you got "Cannot allocate memory" in the apache log.

I saw at our machine (where the problem occurred) no error messages in the 
apache log.
In the /etc/apache2/apache2.conf I configured a specific log file for my tests 
(ErrorLog /var/log/sbox_log/error.log) and Log level "debug" (LogLevel debug) .
Log info was written to this Log fIle but no information, why the execution of 
the hook scrip failed. Strange.

Again thanks a lot for your support.

Best regards,
Michael



-----Ursprüngliche Nachricht-----
Von: Philip Martin [mailto:philip.mar...@wandisco.com] 
Gesendet: Freitag, 27. Juni 2014 16:43
An: Korte, Michael Johannes
Cc: Nico Kadel-Garcia; users@subversion.apache.org; Kocsis, Zoltan; Seelaender, 
Robin; von Schoenebeck, Florian
Betreff: Re: File checkin hook work; http checkin hooks don't work : AW: 
SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache 
Dav

"Korte, Michael Johannes" <michael.ko...@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....@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*

Reply via email to