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

post-hook not firing?

From: Scott Sanders <ssanders_at_dotnot.org>
Date: 2003-07-10 23:42:56 CEST

I know I am missing something stupid, but I need someone to tell me
where I am missing it.

I have just upgraded to apache 2.0.47 and svn 0.25. Everything is
working great. Please note that today is my first attempt at getting
the post-comit script to work. I installed the python bindings, and
went into the hooks directory, renamed post-commit.tmpl to post-commit,
made it executable for nobody (what apache runs as), and even tested
it. No dice. 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

Anybody know what I am missing?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 10 23:43:45 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.