You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by yi xia <ma...@gmail.com> on 2008/03/10 04:24:22 UTC
My subversion server suddenly can not send email to me
Hi All
I am using subversion1.4.2, it works all the time.
But recently I found that it can not send email out without any waring/error
pop out.
The script i am using is commit-email.pl
anyone can tell me how to enable it again or how to debug it?
Thanks
Max
Re: My subversion server suddenly can not send email to me
Posted by richard hornsby <ri...@gmail.com>.
I'm basically an svn novice, but I can think of two avenues to explore:
1. Check /var/log/maillog
Mail is a quirky thing. Because subversion and sendmail are not related to
each other, any changes to sendmail could cause a problem -- including, for
example, your smarthost going away or refusing to relay. A junk filter may
also be dropping the messages somewhere? I would check /var/log/maillog to
see what is going on. Maybe get a 'tail -fn0 /var/log/maillog' going in a
console while you try to execute a commit. Sendmail is notoriously
difficult to configure, but I've always appreciated and found logs very
useful.
2. Are you sure the script is actually getting executed? Maybe try moving
it out of the way and replacing it with a really simple shell script such as
#/bin/sh
echo This is a post-commit script test message at `date`
If you're using a client which won't display that message, try redirecting
it to a file
#/bin/sh
echo This is a post-commit script test message at `date` >
/tmp/post-commit-message
HTH,
-rj
On Mon, Mar 10, 2008 at 9:19 AM, yi xia <ma...@gmail.com> wrote:
> Hi Christian
> Thanks for your reply
> Firstly, all the scripts do have execuable permisions
> Secondly, it works before, and it seems that nobody touch it before it can
> not work.
> Thirdly, i restart sendmail service, but it still can not send one email
> out. I don't know how to check out the reason that causes it.
>
> Anybody can help me?
>
> Max
>
> 2008/3/10, Christian Unger <ch...@mac.com>:
>
> >
> > afaik, subversion has no means of sending email 'on it's own'.
> >
> > the means which is used to send email notificications is a hook script
> > wich may act as a trigger for arbitrary applications.
> > the hook script itself is triggered at defined stages of a commit
> > (pre, post).
> > depending on the kind of hook, subversion passes different parameters.
> >
> > to check your hooks, look into the repository's 'hooks' subdirectory:
> > hooks:
> > post-commit
> > post-lock
> > post-revprop-change
> > post-unlock
> > pre-commit
> > pre-lock
> > pre-revprop-change
> > pre-unlock
> > start-commit
> >
> > you may want to check whether your hook script is executable and
> > depending on the error message if it finds all it's dependendcies, or
> > if it is called with sensible options.
> >
> >
> >
> > cu
> > christian unger
> >
> >
> >
> >
> > On Mar 10, 2008, at 5:24 AM, yi xia wrote:
> >
> > > Hi All
> > > I am using subversion1.4.2, it works all the time.
> > > But recently I found that it can not send email out without any
> > > waring/error pop out.
> > >
> > > The script i am using is commit-email.pl
> > >
> > > anyone can tell me how to enable it again or how to debug it?
> > >
> > > Thanks
> > >
> > > Max
> >
> >
>
Re: My subversion server suddenly can not send email to me
Posted by yi xia <ma...@gmail.com>.
Hi Christian
Thanks for your reply
Firstly, all the scripts do have execuable permisions
Secondly, it works before, and it seems that nobody touch it before it can
not work.
Thirdly, i restart sendmail service, but it still can not send one email
out. I don't know how to check out the reason that causes it.
Anybody can help me?
Max
2008/3/10, Christian Unger <ch...@mac.com>:
>
>
> afaik, subversion has no means of sending email 'on it's own'.
>
> the means which is used to send email notificications is a hook script
> wich may act as a trigger for arbitrary applications.
> the hook script itself is triggered at defined stages of a commit
> (pre, post).
> depending on the kind of hook, subversion passes different parameters.
>
> to check your hooks, look into the repository's 'hooks' subdirectory:
> hooks:
> post-commit
> post-lock
> post-revprop-change
> post-unlock
> pre-commit
> pre-lock
> pre-revprop-change
> pre-unlock
> start-commit
>
> you may want to check whether your hook script is executable and
> depending on the error message if it finds all it's dependendcies, or
> if it is called with sensible options.
>
>
>
> cu
> christian unger
>
>
>
>
> On Mar 10, 2008, at 5:24 AM, yi xia wrote:
>
> > Hi All
> > I am using subversion1.4.2, it works all the time.
> > But recently I found that it can not send email out without any
> > waring/error pop out.
> >
> > The script i am using is commit-email.pl
> >
> > anyone can tell me how to enable it again or how to debug it?
> >
> > Thanks
> >
> > Max
>
>
Re: My subversion server suddenly can not send email to me
Posted by Christian Unger <ch...@mac.com>.
afaik, subversion has no means of sending email 'on it's own'.
the means which is used to send email notificications is a hook script
wich may act as a trigger for arbitrary applications.
the hook script itself is triggered at defined stages of a commit
(pre, post).
depending on the kind of hook, subversion passes different parameters.
to check your hooks, look into the repository's 'hooks' subdirectory:
hooks:
post-commit
post-lock
post-revprop-change
post-unlock
pre-commit
pre-lock
pre-revprop-change
pre-unlock
start-commit
you may want to check whether your hook script is executable and
depending on the error message if it finds all it's dependendcies, or
if it is called with sensible options.
cu
christian unger
On Mar 10, 2008, at 5:24 AM, yi xia wrote:
> Hi All
> I am using subversion1.4.2, it works all the time.
> But recently I found that it can not send email out without any
> waring/error pop out.
>
> The script i am using is commit-email.pl
>
> anyone can tell me how to enable it again or how to debug it?
>
> Thanks
>
> Max
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org