Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-21-2009, 03:15 AM   #1
Registered: Jul 2004
Location: Herent, Belgium, Europe, Earth
Distribution: Ubuntu 7.04
Posts: 102

Rep: Reputation: 15
[SVN - post-commit hook] hook failed, did not exit cleanly

Hi all,

I am trying to create a post-commit hook script for Subversion, but I always keep on getting this error:

'post-commit' hook failed (did not exit cleanly: apr_exit_why_e was 2, exitcode was 10). with no output.
What I did was create a file "post-commit" in the repository under the hooks/ directory.
root@noname:/data/svn/testing/hooks# ls -lA post-commit
-rwxr-xr-x 1 _www _www 31 Jan 21 09:09 post-commit
root@noname:/data/svn/testing# ls -lAd hooks/
drwxr-xr-x 12 _www _www 408 Jan 21 09:09 hooks/
root@noname:/data/svn# ls -lAd testing/
drwxr-xr-x 9 _www _www 306 Jan 20 23:12 testing/
root@noname:/data# ls -lAd svn/
drwx------ 74 _www _www 2516 Jan 21 00:14 svn/
root@noname:/# ls -lAd data/
drwxr-xr-x 15 steven staff 510 Jan 17 16:12 data/

As you can see from the directory listings here above, the directory is readable/writable by the www:www user. Under which the apache user runs, and under which dav_svn was configured.

Subversion itself works perfectly, just not the post-commit hook.
root@noname:/data/svn/testing/hooks# cat post-commit

echo "Hello world";

As you can see, nothing fancy happens here...

I went already to search a little, and found out that "apr_exit_why_e"=2 means it's killed by signal. But why? I mean, the www user has complete rights to the script, it's executable etc etc...

Can someone tell me what I am missing here?

Thanks a lot!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
svn post-commit hook script mcd Linux - Software 1 08-08-2008 09:34 AM
Subversion - post-commit hook Braynid Linux - Software 1 07-02-2008 04:02 AM
Subversion Post-Commit hook script... will not run mattp52 Linux - Server 2 02-10-2008 02:33 PM
subversion post-commit hook problems pajamabama Linux - Server 2 01-19-2007 06:14 PM
Why isn't dhclient running my exit hook? eantoranz Ubuntu 2 06-27-2005 03:41 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration