[rt-users] Sending email- script error

Karl Banasky karl at heatcon.com
Wed Sep 5 20:44:41 EDT 2012


Hello everyone. I have been searching for information and a resolution for an error I am having with RT 4.0.7 and can't find anything in regards to it; have had this issue since 4.0.6 upgrade (on new server and new install). 

I believe it is something simple in the PERL code or that I don't have a setting correct in my RT_SiteConfig file but without something to aim me in a direction I am helplessly lost. As you might have guessed I am PERL illiterate. I have searched on terms in the error but since google stopped the use of quotes... sadness in sues my efforts. 

Most issues I can get resolved but this leaves me dumb-founded. 

Any help would be greatly appreciated and hopefully searchable by others that have similar issues.


The error I get is when I go to reply to a ticket. As you can see bellow it looks to crash. No error is given in the RT web interface and we find no log or response in the web interface to show email was created and sent. 

I do not have this issue on my "on create" action as those emails are getting created and sent. It seems to be contained to my "on correspond" action. 


System: Centos 6 - latest updates and all standard packages. 

Description: On Correspond Notify Owner
Condition: ONCorrespond
Action:	NotifyOwner
Template: Global:CorrespondNotifyOwner
Stage: TransactionCreate

Error message ( from /var/log/messages): 

Sep 5 17:02:06 itsys RT: error: unexpected end of header (/opt/rt4/sbin/../lib/RT/Template.pm:387) 
Sep 5 17:02:06 itsys RT: error: unexpected end of header (/opt/rt4/sbin/../lib/RT/Template.pm:387) 
Sep 5 17:02:06 itsys RT: error: unexpected end of header (/opt/rt4/sbin/../lib/RT/Template.pm:387) 
Sep 5 17:02:06 itsys RT: error: unexpected end of header (/opt/rt4/sbin/../lib/RT/Template.pm:387) 
Sep 5 17:02:06 itsys RT: Use of uninitialized value in pattern match (m//) at /opt/rt4/sbin/../lib/RT/ScripAction.pm line 169. (/opt/rt4/sbin/../lib/RT/ScripAction.pm:169) 
Sep 5 17:02:06 itsys RT: Scrip Prepare 1 died. - Require of RT::Action::d failed.#012Can't locate RT/Action/d.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 1809) line 3.#012#012Stack:#012 [(eval 1809):3]#012 [/opt/rt4/sbin/../lib/RT/Scrip.pm:443]#012 [/opt/rt4/sbin/../lib/RT/Scrips.pm:234]#012 [/opt/rt4/sbin/../lib/RT/Transaction.pm:179]#012 [/opt/rt4/sbin/../lib/RT/Record.pm:1461]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2270]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2176]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2313]#012 [/opt/rt4/share/html/Ticket/Elements/PreviewScrips:52]#012 [/opt/rt4/share/html/Ticket/Update.html:192]#012 [/opt/rt4/share/html/Widgets/TitleBox:56]#012 [/opt/rt4/share/html/Ticket/Update.html:193]#012 [/opt/rt4/share/html/Ticket/autohandler:19]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:576]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:326]#012 [/opt/rt4/share/html/autohandler:53]#012#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/ScripAction.pm:173]#012 [/opt/rt4/sbin/../lib/RT/Scrip.pm:443]#012 [/opt/rt4/sbin/../lib/RT/Scrips.pm:234]#012 [/opt/rt4/sbin/../lib/RT/Transaction.pm:179]#012 [/opt/rt4/sbin/../lib/RT/Record.pm:1461]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2270]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2176]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2313]#012 [/opt/rt4/share/html/Ticket/Elements/PreviewScrips:52]#012 [/opt/rt4/share/html/Ticket/Update.html:192]#012 [/opt/rt4/share/html/Widgets/TitleBox:56]#012 [/opt/rt4/share/html/Ticket/Update.html:193]#012 [/opt/rt4/share/html/Ticket/autohandler:19]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:576]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:326]#012 [/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Scrip.pm:451) 

The last part has "#012" which is ASCII code for a "RETURN" so it should read, I think, like this" 
Sep 5 17:02:06 itsys RT: Scrip Prepare 1 died. - Require of RT::Action::d failed. 
Can't locate RT/Action/d.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 1809) line 3. 

Stack: 
[(eval 1809):3] 
[/opt/rt4/sbin/../lib/RT/Scrip.pm:443] 
[/opt/rt4/sbin/../lib/RT/Scrips.pm:234] 
[/opt/rt4/sbin/../lib/RT/Transaction.pm:179] 
[/opt/rt4/sbin/../lib/RT/Record.pm:1461] 
[/opt/rt4/sbin/../lib/RT/Ticket.pm:2270] 
[/opt/rt4/sbin/../lib/RT/Ticket.pm:2176] 
[/opt/rt4/sbin/../lib/RT/Ticket.pm:2313] 
[/opt/rt4/share/html/Ticket/Elements/PreviewScrips:52] 
[/opt/rt4/share/html/Ticket/Update.html:192] 
[/opt/rt4/share/html/Widgets/TitleBox:56] 
[/opt/rt4/share/html/Ticket/Update.html:193] 
[/opt/rt4/share/html/Ticket/autohandler:19] 
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:576] 
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:326] 
[/opt/rt4/share/html/autohandler:53] 


Stack: 
[/opt/rt4/sbin/../lib/RT/ScripAction.pm:173] 
[/opt/rt4/sbin/../lib/RT/Scrip.pm:443] 
[/opt/rt4/sbin/../lib/RT/Scrips.pm:234] 
[/opt/rt4/sbin/../lib/RT/Transaction.pm:179] 
[/opt/rt4/sbin/../lib/RT/Record.pm:1461] 
[/opt/rt4/sbin/../lib/RT/Ticket.pm:2270] 
[/opt/rt4/sbin/../lib/RT/Ticket.pm:2176] 
[/opt/rt4/sbin/../lib/RT/Ticket.pm:2313] 
[/opt/rt4/share/html/Ticket/Elements/PreviewScrips:52] 
[/opt/rt4/share/html/Ticket/Update.html:192] 
[/opt/rt4/share/html/Widgets/TitleBox:56] 
[/opt/rt4/share/html/Ticket/Update.html:193] 
[/opt/rt4/share/html/Ticket/autohandler:19] 
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:576] 
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:326] 
[/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Scrip.pm:451) 


Template used - with Perl option checked:

RT-Attach-Message: yes
 
 You receive this email because you are owner of this ticket.
 
 {$Transaction->Description}
 
 =====================================================================
     Ticket: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
      Queue: {$Ticket->QueueObj->Name}
 Requestors: {$Ticket->RequestorAddresses}
      Owner: {$Ticket->OwnerObj->Name}
     Status: {$Ticket->Status}
    Subject: "{$Transaction->Subject || $Ticket->Subject || "(No subject given)"}"
 
 {$Transaction->Content()}
 =====================================================================


Thanks. 
Karl Banasky



More information about the rt-users mailing list