[rt-users] (no subject)

Martin Drasar drasar at ics.muni.cz
Thu Sep 2 05:08:45 EDT 2010


Hi,
this is an attepmt to bump one old thread. In case it does not work as
it should, here is the orginal post:

> This seems to be a rare occurrence, but our RT install sometimes stops
> sending email.  I have to restart Apache or kill the fastcgi processes
> and let them restart before it will resume.  RT 3.8.7, Apache 2,
> fastcgi, and I've changed it to use sendmail instead of the default
> sendmailpipe (happened more frequently with sendmailpipe, but still
> happens with sendmail)
> Set($MailCommand , 'sendmail');
> Set($SendmailArguments , "-oi");
> 
> I see this in the logs when RT attempts to send an email:
> Jan 13 13:18:28 rt mog_rt: Scrip Commit 10 died. - Can't fork at
> /usr/share/perl5/Mail/Mailer.pm line 137. Stack:
> [/usr/share/perl5/Mail/Mailer.pm:137]
> [/usr/share/perl5/Mail/Internet.pm:451]
> [/home/rt/mog_rt/bin/../lib/RT/Interface/Email.pm:503]
> [/home/rt/mog_rt/bin/../lib/RT/Action/SendEmail.pm:307]
> [/home/rt/mog_rt/bin/../lib/RT/Action/SendEmail.pm:129]
> [/home/rt/mog_rt/bin/../lib/RT/ScripAction_Overlay.pm:238]
> [/home/rt/mog_rt/bin/../lib/RT/Scrip_Overlay.pm:464]
> [/home/rt/mog_rt/bin/../lib/RT/Scrips_Overlay.pm:196]
> [/home/rt/mog_rt/bin/../local/lib/RT/Transaction_Overlay.pm:188]
> [/home/rt/mog_rt/bin/../lib/RT/Record.pm:1457]
> [/home/rt/mog_rt/bin/../lib/RT/Ticket_Overlay.pm:3323]
> [/home/rt/mog_rt/bin/../lib/RT/Ticket_Overlay.pm:2996]
> [/home/rt/mog_rt/bin/../lib/RT/Record.pm:898]
> [/home/rt/mog_rt/bin/../lib/RT/Interface/Web.pm:1340]
> [/home/rt/mog_rt/bin/../lib/RT/Interface/Web.pm:1450]
> [/home/rt/mog_rt/share/html/Ticket/Display.html:155]
> [/home/rt/mog_rt/share/html/Tick
> 
> (the line appears to be truncated in the logs)
> 
> Has anyone else seen this?

I am more or less in the same situation here. We are using cron scripts
that send to the RT once in a while some mails and these mails are then
sent from the RT to other recipients (via the Autoreply scrip).

Problem is that these cron scripts usually produce more than 10 mails at
a time and the RT obviously struggles with delivering that many mails in
such a small time frame.

Looking inside the Mailer.pm file, one can see that there is this call:
my $child = open $self, '|-';
which tries to fork a subprocess to do the mailing job. So what happens
is that the RT in fact attempts to create more than 10 subprocesses.

I thought that that might be a problem, but looking in the limits.conf I
have found that I have no limits set at all.

Do you think this might be a problem? And if so, do you have idea how to
fix it?

My system:
> Linux version 2.6.26-2-686 (Debian 2.6.26-24lenny1) (dannf at debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Aug 19 03:44:10 UTC 2010
> perl, v5.10.0 built for i486-linux-gnu-thread-multi
> Server version: Apache/2.2.9 (Debian)
> Server built:   Apr 19 2010 19:57:58
> RT 3.8.7

Thank you very much for your help

Regards,
Martin

-- 
Mgr. Martin Drasar                                   drasar at ics.muni.cz
CSIRT-MU, Network Security Department          http://www.muni.cz/csirt
Institute of Computer Science, Masaryk University, Brno, Czech Republic
                       PGP Key ID: 0x944BC925



More information about the rt-users mailing list