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

Re: post-commit not executing

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-25 13:26:55 CET

On Nov 25, 2005, at 13:05, Mahesh S Kudva wrote:

> I have subversion setup and is working fine. post-commit is not
> working.
> when I check the logs I can see the error "user www not found".
> This is
> the user who starts httpd. However i can see that the commit works
> fine.

Need more info.....

You are presumably serving your repository with Apache2 on a Unix-
like OS?

What log does it say that in?

Is your post-commit hook named "post-commit", located in the hooks
directory and executable by the www user?

Are you remembering that a hook script runs with no environment, so
you need to use absolute paths to all programs and files?

If you run your post-commit hook from the command line like this:

cd /path/to/repo/hooks
env -i ./post-commit

does it work? If not, it won't work when called from Subversion either.

Can you try if a simple one-line post-commit hook which writes into a
log file works?

echo hello >> /tmp/hook.log

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 25 13:29:55 2005

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

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