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

post-commit hook not running

From: Richard Musil <richard.musil_at_gmail.com>
Date: 2005-12-14 18:34:06 CET

I am on SUSE linux, using apache 2.0.55 (from apache.org), subversion
1.2.3 (from tigris.org). Both packages are hand compiled.
I cannot make mod_dav execute post-commit. What I already did:

1) verified that post-commit script executes per-se using:
    a) user account
    b) apache account (after I added /bin/sh shell for this account,
so I could log in)
    c) used apache account and 'env -' trick to emulate

2) put simple
    echo $REPOS $REV >> /data/svn/repos/debug.log
into the script to verify any interaction.

3) set the permissions to apache process.

I have even traced the call in apache in debugger, and ended at call
to apr_proc_wait (which consequently calls waitpid). There is no error
reported by any of those routines (i.e. there is no log either), but
the script simply does not execute.

Parameters to apr_proc_create looks correct (as far as scriptname,
repository and revision is concerned) and apr_proc_create returns 0. I
cannot get direct output from apr_proc_wait, but return code from
SVN_NO_ERR with exitcode = 11.

The whole script looks like this:
--------------------------------------
#!/bin/sh
REPOS="$1"
REV="$2"
echo $REPOS $REV >> /data/svn/repos/debug.log
/apps/bin/python /data/svn/script/mailer.py commit "$REPOS" "$REV"
--------------------------------------
mailer.conf is in the same directory as mailer.py

Since I am not familiar with apache, subversion and apr-utils
internals, the questions are:
1) Does apache account needs to have valid shell (currently /bin/false
is set) in order to be able to execute the post-commit hook?
2) Can anyone suggest some additional tests I may run to pinpoint the
issue or directions to look further?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 14 22:36:29 2005

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