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

Thanks a lot : Problem does not occure in other environment AW: File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

From: Korte, Michael Johannes <michael.korte_at_zeiss.com>
Date: Mon, 30 Jun 2014 14:23:58 +0000

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.martin_at_wandisco.com]
Gesendet: Freitag, 27. Juni 2014 16:43
An: Korte, Michael Johannes
Cc: Nico Kadel-Garcia; users_at_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.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-30 16:24:38 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.