You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mahesh S Kudva <ma...@robosoftin.com> on 2005/11/25 12:05:47 UTC
post-commit now executing
Hi
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.
Regards & Thanks
================
Mahesh S Kudva
-------------------------------------------------------
Robosoft Technologies - Partners in Product Development
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: post-commit not executing
Posted by Mahesh S Kudva <ma...@robosoftin.com>.
Hi
I figured it out. I added a the user who is running the httpd to the
authentication database and it worked like a beauty
Regards & Thanks
================
Mahesh S Kudva
-----Original Message-----
From: Ryan Schmidt <su...@ryandesign.com>
To: Mahesh S Kudva <ma...@robosoftin.com>
Cc: users@subversion.tigris.org
Date: Fri, 25 Nov 2005 13:26:55 +0100
Subject: Re: post-commit not executing
> 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
>
-------------------------------------------------------
Robosoft Technologies - Partners in Product Development
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: post-commit not executing
Posted by Ryan Schmidt <su...@ryandesign.com>.
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