On Thu, Jun 26, 2014 at 4:20 AM, Korte, Michael Johannes
<michael.korte_at_zeiss.com> wrote:
> 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:
>
> <Location /sbox>
>
> DAV svn
>
> SVNPath /var/subversion/repos17/sbox
Hmmm. This might be a hint. Do you have SELinux running? Can you test
with it turned off? According to the Linux File System Hierarchy, I'd
expect this material to be in "/var/www".
Nico Kadel-Garcia
> AuthType Basic
>
> AuthName "Subversion Sandbox Repository"
>
> AuthUserFile /etc/subversion/etc/svn-auth-file
>
> Require valid-user
>
> AuthzSVNAccessFile /etc/subversion/etc/svn-acl
>
> </Location>
>
>
>
>
>
> 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:
>
> Failed to start '/var/subversion/repos17/sbox/hooks/post-commit' hook
>
>
>
> I tried all possible changes at my hook script and at the end it consists
> only of the following two lines:
>
> #!/bin/sh
>
> /bin/echo "Dies ist ein Test fuer Pre-Commit."
>
>
>
> But I got still the same error message.
>
> The execute bit was set for the script and the file owner was www-data .
>
>
>
> A local call of the script works perfect:
>
> sudo -u www-data env - ./post-commit /var/subversion/repos17/sbox/ 175
>
>
>
> 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 checked in google for similar problems and the only helpful hint I found
> was an entry from 2008 :
> http://www.wandisco.com/svnforum/threads/31927-Hook-does-not-work-%28and-yes-absolute-paths-are-used-*g*%29;
> : The reason for this was, that the system only has limited resources
> available, such as main memory.
> After reducing the number of server processes and/or threads created by
> Apache at startup, the SVN post-commit hook worked fine when committing to
> the repository. )
>
>
>
> 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:
>
> Mem : 125 /3954 MB
>
> Swp : 65 / 3068
>
>
>
> 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
>
>
Received on 2014-06-26 13:47:44 CEST