Problem with subversion hooks scripts under Linux Apache Dav
From: Korte, Michael Johannes <michael.korte_at_zeiss.com>
Date: Thu, 26 Jun 2014 08:20:16 +0000
Hello all,
I have a very strange problem with subVersion Hook scripts under Ubuntu Linux (Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-64-generic x86_64))., when accessing the repository via Apache2 WebDav. I'm using subversion 1.7.9 .
The WebDav Configuration is as follows:
I tried with a post-commit hook (I wanted Trac to be informed about commits : /usr/bin/trac-admin /var/lib/trac/YourProject changeset added "$1" "$2") but the same problem occurs also for all other hook scripts, no difference what I use as content of the script.
Let me explain my problem:
I used a Tortoise Client on a remote Windows machine and tried there a commit. I always got the error message:
I tried all possible changes at my hook script and at the end it consists only of the following two lines:
But I got still the same error message.
A local call of the script works perfect:
When I do a direct commit on the subVersion server (without apache Dav access: ) the post-commit script works fine. I could verify this because after such a commit, the Trac shows the new changeset.
The very strange thing was, that when I did the tests yesterday the hook script (even called via Apache DAV from Tortoise at a remote client) sporadically was executed but it also failed sporadically without any changes in the script.
I restarted apache service but it didn't help. Also a reboot of the complete machine did not help. htop showed that memory is still available:
I checked also the apache log but I found no relevant error message, even when I used LogLevel debug in the apache2.conf .
Can you please give me any hint what is wrong.
Can I see in any log /trace why the hook script can not be started?
Thanks in advance.
Best regards Michael
|
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.