You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Scott Sanders <ss...@dotnot.org> on 2003/07/16 13:58:20 UTC

post-commit hook not firing

I have just upgraded to apache 2.0.47 and svn 0.25.  Everything is 
working great.  I installed the python bindings, and went into the 
hooks directory, renamed post-commit.tmpl to post-commit, made it 
executable, and even tested it.  It didn't get called.  So I added a 
simple debug to the top of the script, and I don't even get that debug 
message when committing.

Here is all the data I have about the process:

1. repo location: /www/svn.dotnot.org/thisrepo

2. the hooks directory
[ssanders@nyx hooks]$ ls -al /www/svn.dotnot.org/thisrepo/hooks/
total 68
drwxrwsr-x    2 ssanders web          4096 Jul 10 13:34 .
drwxrwsr-x    6 ssanders web          4096 Jun 22 09:50 ..
-rw-rw-r--    1 ssanders web           160 Jul 10 14:37 debug
-rw-rw-r--    1 ssanders web          6596 Jun 29 18:21 mailer.conf
-rwxrwxr-x    1 ssanders web         26715 Jun 29 18:14 mailer.py
-rwxrwxr-x    1 ssanders web          1453 Jul 10 13:34 post-commit

3. nobody is in the web group:
[ssanders@nyx hooks]$ id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody),499(web)

4. post-commit looks like this:

[ssanders@nyx hooks]$ more post-commit
#!/bin/sh

PYTHONPATH=/usr/local/lib/svn-python; export PYTHONPATH

REPOS="$1"
REV="$2"

echo "mailer.py $1 $2 USER=$USER" >> debug

./mailer.py $REPOS $REV mailer.conf

5. running the post-commit (in which I do receive the email from 
mailer.py):
[ssanders@nyx hooks]$ ./post-commit /www/svn.dotnot.org/thisrepo 25
[ssanders@nyx hooks]$


6. results in the debug file
[ssanders@nyx hooks]$ more debug
mailer.py /www/svn.dotnot.org/thisrepo 25 USER=ssanders


But when I checked in rev 26 through Apache, I get nothing in the debug 
file or error log.

7. apache in ps
[ssanders@nyx hooks]$ ps -ef | grep httpd
root     16859     1  0 12:58 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
nobody   18022 16859  0 14:32 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
nobody   18023 16859  0 14:32 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
nobody   18024 16859  0 14:32 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
nobody   18025 16859  0 14:32 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
nobody   18026 16859  0 14:32 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
nobody   18027 16859  0 14:33 ?        00:00:00 
/usr/local/apache2/bin/httpd -k
ssanders 18348 11856  0 14:49 pts/3    00:00:00 grep httpd


What am I missing?

Thanks,
Scott Sanders


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org