[rt-users] Scrips dying now and then when sending email
Sternberger, Sven
sven.sternberger at desy.de
Tue May 31 07:55:25 EDT 2016
Hello!
I have an really ugly bug and I can't find the reason.
The bug is: From time to time (once a week). For 5-15sec RT dont send mails created by scrips. This could strike one but also several emails.
I see in the logs lines like:
RT: [14868] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180.
RT: [14868] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180.
RT: [14868] Scrip Prepare 459 died. - Can't locate object method "" via package "MIME::Head" at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180.#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:180]#012 [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]#012 [/opt/rt4/sbin/../lib/RT/ScripAction.pm:223]#012 [/opt/rt4/sbin/../lib/RT/Scrip.pm:637]#012 [/opt/rt4/sbin/../lib/RT/Scrips.pm:342]#012 [/opt/rt4/sbin/../lib/RT/Transaction.pm:189]#012 [/opt/rt4/sbin/../lib/RT/Record.pm:1696]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:1613]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:1456]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:1661]#012 [/opt/rt4/share/html/Ticket/ModifyPeople.html:111]#012 [/opt/rt4/share/html/Ticket/autohandler:66]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]#012 [/opt/rt4/share/html/autohandler:53]
or
RT: [29651] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1027.
RT: [29651] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1027.
RT: [29651] Scrip Prepare 192 died. - Can't locate object method "" via package "RT::Action::Notify" at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1027.#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1027]#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:564]#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:152]#012 [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]#012 [/opt/rt4/sbin/../lib/RT/ScripAction.pm:223]#012 [/opt/rt4/sbin/../lib/RT/Scrip.pm:637]#012 [/opt/rt4/sbin/../lib/RT/Scrips.pm:342]#012 [/opt/rt4/sbin/../lib/RT/Transaction.pm:189]#012 [/opt/rt4/sbin/../lib/RT/Record.pm:1693]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:536]#012 [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1439]#012 [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61]
with 4.2.10 I got
"via package RT::Action::SendEmail" or "via package RT::Action::Notify"
since I updated to 4.2.12 (last week) I get
"via package MIME::Head"
Environment:
virtual vmware machine
Ubuntu 14.04 /
apache 2.4.7 /
mod_perl2.0.8
perl 5.18.2
My assumpotion/next ideas are:
1.) I don't configured the worker in Apache. The default seems to be mpm_event for Ubuntu 14.04 . So may mpm_prefork???
2.) Ubuntu comes with mod_perl2.08 maybe I upgrade to 2.09??
3.) I made some small changes in the code (really small I just removed a check). This produces a lot of
lines like "Subroutine SetRTSpecialHeaders redefined at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:"
Files I modified
/opt/rt4/lib/RT/Action/SendEmail_Local.pm
/opt/rt4/local/html/Elements/Footer
/opt/rt4/local/html/Ticket/Update.html
/opt/rt4/local/html/Ticket/Create.html
Changes I made in SendEmail_Local.pm:
816,823c816,822
< # removed for q2q
< #$self->RecipientFilter(
< # Callback => sub {
< # return unless RT::EmailParser->IsRTAddress( $_[0] );
< # return "$_[0] appears to point to this RT instance. Skipping";
< # },
< # All => 1,
< #);
For really appreciate any help
best regards!
Sven Sternberger
System Engineer
Tel.: 040/8998-4397
DESY IT
More information about the rt-users
mailing list