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

post-commit not firing through mod_dav_svn

Running Apache 2.0.47 and svn 0.25 on RedHat 7.3.

Cannot get the post commit script to fire through mod_dav_svn.  Check 
executable permissions.

Any other pointers?

Thanks,
Scott


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

Re: post-commit not firing through mod_dav_svn

Posted by Bill Comisky <bc...@pobox.com>.
On Tue, 22 Jul 2003, Scott Sanders wrote:

> > Here's another:
> >
> > Check the line endings of the script to make sure they're UNIX, not 
> > DOS.
> >
> >
> 
> Yes, that is correct.  my post-commit script is just a copy of the 
> post-commit.tmpl that is copied in on svnadmin create.

Things I would try:

- check Apache logs
- use absolute paths to any scripts called from within post-commit; the 
  user that apache runs your script as may have a different PATH
  environment variable.
- redirect stdout & stderr from the scripts you call in post-commit to a 
  file (like /tmp/post-commit.out) and check it out.

bill
-- 
Bill Comisky
bcomisky@pobox.com

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

Re: post-commit not firing through mod_dav_svn

Posted by Scott Sanders <ss...@dotnot.org>.
> Here's another:
>
> Check the line endings of the script to make sure they're UNIX, not 
> DOS.
>
>

Yes, that is correct.  my post-commit script is just a copy of the 
post-commit.tmpl that is copied in on svnadmin create.

Scott


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

Re: post-commit not firing through mod_dav_svn

Posted by John Locke <ma...@freelock.com>.
On Mon, 2003-07-21 at 22:42, Justin Erenkrantz wrote:
> --On Monday, July 21, 2003 9:34 PM -0700 Scott Sanders <ss...@dotnot.org> 
> wrote:
> 
> > Cannot get the post commit script to fire through mod_dav_svn.  Check
> > executable permissions.
> >
> > Any other pointers?
> 
> Check that your #! line points to something in httpd's PATH.  -- justin

Here's another: 

Check the line endings of the script to make sure they're UNIX, not DOS.

Cheers,
-- 
John Locke
http://freelock.com
Recently published: "Complete the e-mail set up: User accounts, DNS, and more"
http://www.techrepublic.com/article_guest.jhtml?id=r00620030617jxl01.htm
Play sports? Check in at http://teamcheckin.com


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

Re: post-commit not firing through mod_dav_svn

Posted by Scott Sanders <ss...@dotnot.org>.
>> Cannot get the post commit script to fire through mod_dav_svn.  Check
>> executable permissions.
>>
>> Any other pointers?
>
> Check that your #! line points to something in httpd's PATH.  -- justin
>
The line is:

#!/bin/sh


Am I wrong in assuming this would be accessible?

Scott


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

Re: post-commit not firing through mod_dav_svn

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Monday, July 21, 2003 9:34 PM -0700 Scott Sanders <ss...@dotnot.org> 
wrote:

> Cannot get the post commit script to fire through mod_dav_svn.  Check
> executable permissions.
>
> Any other pointers?

Check that your #! line points to something in httpd's PATH.  -- justin

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

Re: post-commit not firing through mod_dav_svn

Posted by Scott Sanders <ss...@dotnot.org>.
>> Running Apache 2.0.47 and svn 0.25 on RedHat 7.3.
>>
>> Cannot get the post commit script to fire through mod_dav_svn.  Check
>> executable permissions.
>>
>> Any other pointers?
>
> Maybe a bit more info from you?  Can you run the script by hand?  Is
> it named 'post-commit' (not post-commit.sh or post-commit.py ...)?
> Have you checked your Apache logs for errors?
>

Yes, I can run the script by hand (it works great :).  It is named 
post-commit:

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


Apache logs show no errors.


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

Re: post-commit not firing through mod_dav_svn

Posted by cm...@collab.net.
Scott Sanders <ss...@dotnot.org> writes:

> Running Apache 2.0.47 and svn 0.25 on RedHat 7.3.
> 
> Cannot get the post commit script to fire through mod_dav_svn.  Check
> executable permissions.
> 
> Any other pointers?

Maybe a bit more info from you?  Can you run the script by hand?  Is
it named 'post-commit' (not post-commit.sh or post-commit.py ...)?
Have you checked your Apache logs for errors?

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