Re: [rt-users] Lost emails!
Just for the records, the problem was that I copied SendEmail.pm to SendEmail_Local.pm. In the "Local" copy I made my customization. This is not a good idea because at the end of SendEmail.pm you find "RT::Base->_ImportOverlays();" so I gues this triggered an endless loop which most of the time works nevertheless but occasionally fails with "copy freed scalar panic" or "Scrip Prepare died" Now I just have the modified method in "Local" and it seems to work. cheers!
Re: [rt-users] Lost emails!
forgot the attachment - Ursprüngliche Mail - > Von: "Sternberger, Sven" > An: "rt-users" > Gesendet: Montag, 5. Dezember 2016 09:40:25 > Betreff: Re: [rt-users] Lost emails! > Hello! > > it would be very helpful if somebody could look at my overlay if it is > syntactical correct overlay file. > > I found maybe my problem. I've just copied the original file > to SendEmail_Local.pm and make my changes. But when I looked at the end of > the copied file I found "RT::Base->_ImportOverlays();" > which is maybe not a good idea to have it in SendEmail_Local.pm file? > > Now I have only the header and the method I've changed in SendEmail_Local.pm. > > best regards! > > Sven > > - Ursprüngliche Mail - >> Von: "Sternberger, Sven" >> An: "rt-users" >> Gesendet: Donnerstag, 1. Dezember 2016 14:42:11 >> Betreff: Re: [rt-users] Lost emails! > >> Hello! >> >> I now changed some things. I switched to perl 5.24 (perlbrew) and I updated >> to >> 4.2.13 >> but the problem is still the same >> >> Dec 1 12:27:40 rt- RT: [5776] Ticket 699881 created in queue 'it-' >> by >> it-x...@desy.de >> Dec 1 12:27:40 rt- RT: [5776] Redundant argument in sprintf at >> /opt/rt4/sbin/../lib/RT/Action/Notify.pm line 130. >> Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with >> known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. >> Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with >> known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. >> Dec 1 12:27:40 rt- RT: [5776] Scrip Prepare 238 died. - Can't locate >> object >> method "" via package "RT::Action::Notify" at >> /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line >> 1043.#012#012Stack:#012 >> [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1043]#012 >> [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:580]#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/Scrips.pm:275]#012 >> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2607]#012 >> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2578]#012 >> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2648] >> >> I don't have an idea how to track down the problem. My next try would be to >> replace SendEmail.pm with my SendEmail_Local.pm maybe the >> customization mechanism is broken? >> >> Best regards, >> >> Sven >> >> PS the actual diff /opt/rt4/lib/RT/Action/SendEmail.pm >> /opt/rt4/lib/RT/Action/SendEmail_Local.pm >> >> 832,838c832,839 >> < $self->RecipientFilter( >> < Callback => sub { >> < return unless RT::EmailParser->IsRTAddress( $_[0] ); >> < return "$_[0] appears to point to this RT instance. Skipping"; >> < }, >> < All => 1, >> < ); >> --- >>> # 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, >>> #); >> - >> RT 4.4 and RTIR training sessions, and a new workshop day! >> https://bestpractical.com/training >> * Los Angeles - January 9-11 2017 > - > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - January 9-11 2017 SendEmail_Local.pm Description: Perl program - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
Hello! it would be very helpful if somebody could look at my overlay if it is syntactical correct overlay file. I found maybe my problem. I've just copied the original file to SendEmail_Local.pm and make my changes. But when I looked at the end of the copied file I found "RT::Base->_ImportOverlays();" which is maybe not a good idea to have it in SendEmail_Local.pm file? Now I have only the header and the method I've changed in SendEmail_Local.pm. best regards! Sven - Ursprüngliche Mail ----- > Von: "Sternberger, Sven" > An: "rt-users" > Gesendet: Donnerstag, 1. Dezember 2016 14:42:11 > Betreff: Re: [rt-users] Lost emails! > Hello! > > I now changed some things. I switched to perl 5.24 (perlbrew) and I updated to > 4.2.13 > but the problem is still the same > > Dec 1 12:27:40 rt- RT: [5776] Ticket 699881 created in queue 'it-' by > it-x...@desy.de > Dec 1 12:27:40 rt- RT: [5776] Redundant argument in sprintf at > /opt/rt4/sbin/../lib/RT/Action/Notify.pm line 130. > Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with > known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. > Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with > known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. > Dec 1 12:27:40 rt- RT: [5776] Scrip Prepare 238 died. - Can't locate > object > method "" via package "RT::Action::Notify" at > /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043.#012#012Stack:#012 > [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1043]#012 > [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:580]#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/Scrips.pm:275]#012 > [/opt/rt4/sbin/../lib/RT/Ticket.pm:2607]#012 > [/opt/rt4/sbin/../lib/RT/Ticket.pm:2578]#012 > [/opt/rt4/sbin/../lib/RT/Ticket.pm:2648] > > I don't have an idea how to track down the problem. My next try would be to > replace SendEmail.pm with my SendEmail_Local.pm maybe the > customization mechanism is broken? > > Best regards, > > Sven > > PS the actual diff /opt/rt4/lib/RT/Action/SendEmail.pm > /opt/rt4/lib/RT/Action/SendEmail_Local.pm > > 832,838c832,839 > < $self->RecipientFilter( > < Callback => sub { > < return unless RT::EmailParser->IsRTAddress( $_[0] ); > < return "$_[0] appears to point to this RT instance. Skipping"; > < }, > < All => 1, > < ); > --- >> # 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, >> #); > - > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - January 9-11 2017 - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
Hello! I now changed some things. I switched to perl 5.24 (perlbrew) and I updated to 4.2.13 but the problem is still the same Dec 1 12:27:40 rt- RT: [5776] Ticket 699881 created in queue 'it-' by it-x...@desy.de Dec 1 12:27:40 rt- RT: [5776] Redundant argument in sprintf at /opt/rt4/sbin/../lib/RT/Action/Notify.pm line 130. Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. Dec 1 12:27:40 rt- RT: [5776] Scrip Prepare 238 died. - Can't locate object method "" via package "RT::Action::Notify" at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043.#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1043]#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:580]#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/Scrips.pm:275]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2607]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2578]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2648] I don't have an idea how to track down the problem. My next try would be to replace SendEmail.pm with my SendEmail_Local.pm maybe the customization mechanism is broken? Best regards, Sven PS the actual diff /opt/rt4/lib/RT/Action/SendEmail.pm /opt/rt4/lib/RT/Action/SendEmail_Local.pm 832,838c832,839 < $self->RecipientFilter( < Callback => sub { < return unless RT::EmailParser->IsRTAddress( $_[0] ); < return "$_[0] appears to point to this RT instance. Skipping"; < }, < All => 1, < ); --- > # 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, > #); - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
Hello! there are no "secrets" in our customization I disabled the check which prevents to send an email to a queue adress (we process income mails with procmail and automatically send emails which were adressed to an other queue to the staff member of this queue directly) best regards! Sven - Ursprüngliche Mail - > Von: "Shawn M Moore" > An: "Sternberger, Sven" > CC: "rt-users" > Gesendet: Montag, 21. November 2016 17:10:01 > Betreff: Re: [rt-users] Lost emails! >> On Nov 21, 2016, at 06:12, Sternberger, Sven >> wrote: >> Hello! > > Hi Sven, > >> Nov 17 16:20:48 myrtsys RT: [9992] Scrip Prepare 88 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 > > The "_Local" in the stack trace indicates a local customization your > organization has made as being the source of the error. Would you be able to > provide your copy of /opt/rt4/lib/RT/Action/SendEmail_Local.pm? > >> best regards! >> >> Sven Sternberger >> System Engineer >> Tel.: 040/8998-4397 >> DESY IT > > Best, > Shawn SendEmail_Local.pm Description: Perl program - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
[rt-users] Lost emails!
Hello! I wrote now several time to the list but it seems that our problem ist to "special" So sometimes RT don't send emails. If I look in the logs I see lines like: Nov 17 16:20:48 myrtsys RT: [9992] Scrip Prepare 88 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/Interface/Email.pm:1508]#012 [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61] Nov 17 16:20:48 myrtsys RT: [9992] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180. Nov 17 16:20:48 myrtsys RT: [9992] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180. Nov 17 16:20:48 myrtsys RT: [9992] Scrip Prepare 89 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/Interface/Email.pm:1508]#012 [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61] Nov 17 16:21:47 myrtsys RT: [9992] Ticket 697024 created in queue 'xyz' by someone So the ticket is in the database but the mails were not sended. We have ~150 Tickets per Day and the problem occurs about 1-3 time per month I use: VMware (2 vcpus) RT 4.2.12 Ubuntu 14.04 perl5 (revision 5 version 18 subversion 2) (normal Ubuntu package) mysql 5.5.53 apache 2.4.7-1ubuntu4.13 Any idea what I can do? I would try now to built a my own perl 5.24 (http://www.allgoodbits.org/articles/view/45) best regards! Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
[rt-users] Scrips dying now and then when sending email
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 - RT 4.4 and RTIR Training Sessions https://bestpractical.com/training * Los Angeles - September, 2016
[rt-users] Bizarre errors with shredder
Hello! >From time to time I purge unused accounts in the RT database with shredder. Suddenly it starts to throw "bizarre" exceptions. Now I can't purge any accounts. root@rt:~# /opt/rt4/sbin/rt-shredder --force --plugin "Users=no_tickets,1;status,any;replace_relations,Nobody;limit,3;member_of,unprivileged" SQL dump file is '/root/20160411T134517-0001.sql' [2329] [Mon Apr 11 13:45:50 2016] [critical]: Couldn't wipeout object: Bizarre copy of CODE in list assignment at /usr/local/share/perl/5.18.2/Devel/StackTrace.pm line 61. (/opt/rt4/sbin/../lib/RT.pm:388) Trace begun at /opt/rt4/sbin/../lib/RT.pm line 302 Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x5c24310)', 'Couldn\'t wipeout object: Bizarre copy of CODE in list assignment at /usr/local/share/perl/5.18.2/Devel/StackTrace.pm line 61.^J') called at /opt/rt4/sbin/../lib/RT.pm line 388 RT::__ANON__('Couldn\'t wipeout object: Bizarre copy of CODE in list assignment at /usr/local/share/perl/5.18.2/Devel/StackTrace.pm line 61.^J') called at /opt/rt4/sbin/rt-shredder line 175 Couldn't wipeout object: Bizarre copy of CODE in list assignment at /usr/local/share/perl/5.18.2/Devel/StackTrace.pm line 61. Environment: Ubuntu 14.04 RT 4.2.10 apache/mod_perl2 I've updated some modules in the last week because of an other problem Devel::StackTrace 2.01 Log::Dispatch 2.54 Any ideas? best regards! Sven Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT - RT 4.4 and RTIR Training Sessions https://bestpractical.com/training * Washington DC - May 23 & 24, 2016
[rt-users] Mails not sended
Hello! I have again the problem that RT from time to time has problems to send mails. But in the logs I have a new error message Scrip Prepare 158 died. - panic: attempt to copy freed scalar 7f89fe68dc08 to 7f8a641ca550 at /usr/local/share/perl/5.18.2/Devel/StackTrace.pm line 59 any ideas? METADATA: rt 4.2.11 Ubuntu 14.04 apache/mod_perl2 Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT
[rt-users] RT stops occasionally sending mail
Hello! I use RT4.2.11 on Ubuntu14.04 since a week I notice that mail occasionally is not sended by notify scrips. They are also not in the history and in the log I see Sep 28 13:40:40 rthost RT: [16910] Scrip Prepare 483 died. - Can't locate object method "" via package "RT::Action::Notify" at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 594.#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:594]#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:1613]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:1506]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:2349]#012 [/opt/rt4/share/html/Ticket/Display.html:165]#012 [/opt/rt4/local/html/Ticket/Update.html:304]#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 Sep 24 15:16:31 rthost RT: [26426] Scrip Prepare 481 died. - Can't locate object method "" via package "MIME::Entity" 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:1693]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:1613]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:1506]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:2349]#012 [/opt/rt4/share/html/Ticket/Display.html:165]#012 [/opt/rt4/local/html/Ticket/Update.html:304]#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] In the webserver log I can't see anything special. Any idea what could be the problem regards Sven Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT
Re: [rt-users] RT customize SendEmail.pm
Ah ok I finally found it, I have to create the ticket first, and then I can add the group as requestor in the people tab. So our user set the requestor when they create the ticket (to send them the initial ticket description). So is there a way to put the requestor group field into the create page? regards! Sven > Von: "Sternberger, Sven" > An: rt-users@lists.bestpractical.com > CC: "Alex Peters" > Gesendet: Montag, 2. März 2015 10:37:59 > Betreff: Re: [rt-users] RT customize SendEmail.pm > Hi! > this sounds good but I can't find it in the UI. Your are probably not > referring > the "rt-email-group-admin" command and a static configuration. > regards! > Sven >> Von: "Alex Peters" >> For posterity, RT v4.2.10 introduces the ability to add groups as >> requestors. If >> I understand this thread correctly ("a group of people belonging to another >> queue are requesting work in this queue"), RT v4.2.10 should allow the >> desired >> behaviour without code modifications.
Re: [rt-users] RT customize SendEmail.pm
Hi! this sounds good but I can't find it in the UI. Your are probably not referring the "rt-email-group-admin" command and a static configuration. regards! Sven > Von: "Alex Peters" > For posterity, RT v4.2.10 introduces the ability to add groups as requestors. > If > I understand this thread correctly ("a group of people belonging to another > queue are requesting work in this queue"), RT v4.2.10 should allow the desired > behaviour without code modifications.
Re: [rt-users] RT customize SendEmail.pm
Hello! just for the records. To disable the check for outgoing emails if they contain Adresses RT thinks they will create a loop you have to create /opt/rt4/lib/RT/Action/SendEmail_Local.pm and disable there the check. To be able to enter a RT adress without error messages in the WebUI you have to create /opt/rt4/local/html/Ticket/Update.html /opt/rt4/local/html/Ticket/Create.html /opt/rt4/local/html/m/ticket/create /opt/rt4/local/html/m/ticket/reply and disable there the check. I also found the check here: /opt/rt4/lib/RT/Record/Role/Roles.pm no idea when this wil be used. result: * In incomming emails, the queue email adress is removed. * I can create a ticket in the WebUI set the requestor/cc/admincc to a "RT" mail address. * My procmail recipes prevents RT loops but send the mail to the queue staff regards! Sven - Ursprüngliche Mail - > Von: "Sternberger, Sven" > An: rt-users@lists.bestpractical.com > Gesendet: Mittwoch, 28. Januar 2015 10:40:32 > Betreff: RT customize SendEmail.pm > Hello! > > > I want to modify the SendEmail.pm module, to disable the > check for RTAdresses, so we want to send emails > even if RT thinks they are RT email adresses. > > I would copy the file SendEmail.pm to "SendEmail_Local.pm" and remove > these lines > >$self->RecipientFilter( >Callback => sub { >return unless RT::EmailParser->IsRTAddress( $_[0] ); >return "$_[0] appears to point to this RT instance. Skipping"; >}, >All => 1, >); > > would this work? > > regards! > > Sven > > Sven Sternberger > System Engineer > Tel.: 040/8998-4397 > DESY IT
[rt-users] [Solved] rt-shredder problems
The problem is a entry in "Links" with the "Target" NULL so "delete from Links where Target is NULL;" helped - Ursprüngliche Mail - > Von: "Sternberger, Sven" > An: "rt-users" > Gesendet: Montag, 9. Februar 2015 15:16:46 > Betreff: [rt-users] rt-shredder problems > Hello! > > i have a cron job which purges deleted tickets if they are older than 6 month. > this worked for quite a long time but for a week I get an error message > Tickets will be deleted nevertheless. I also ran rt-validator. > > Message: > Couldn't wipeout object: Can't call method "IsLocal" on an undefined value at > /opt/rt4/sbin/../lib/RT/URI.pm line 262. > > This is my cmd line: > /opt/rt4/sbin/rt-shredder --force --sqldump /tmp/backup.ticket6 --plugin > "Tickets=query,Status ='deleted' AND LastUpdated < '-6 Month';limit,100" > > Any idea what is going wrong > > regards > > Sven Sternberger > System Engineer > Tel.: 040/8998-4397 > DESY IT
[rt-users] rt-shredder problems
Hello! i have a cron job which purges deleted tickets if they are older than 6 month. this worked for quite a long time but for a week I get an error message Tickets will be deleted nevertheless. I also ran rt-validator. Message: Couldn't wipeout object: Can't call method "IsLocal" on an undefined value at /opt/rt4/sbin/../lib/RT/URI.pm line 262. This is my cmd line: /opt/rt4/sbin/rt-shredder --force --sqldump /tmp/backup.ticket6 --plugin "Tickets=query,Status ='deleted' AND LastUpdated < '-6 Month';limit,100" Any idea what is going wrong regards Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT
Re: [rt-users] RT customize SendEmail.pm
Hi! - Ursprüngliche Mail - > Von: k...@rice.edu > on message details. I do not understand what you mean by: > >> if the mail is originated >> by the RT, we will reroute the mail to the mailadresses of the queue members. >> This gives you simple way to send mail from queue_a to all members of queue_b > > What are "members of queue_b"? Would you please explain this a little bit > further. We have several queues (about 20) and each queue has a set of people which work in this queue. (which means they have the right to resolve tickets) What I do is I create for each queue a list of persons and their email adresses which work in the queue. A typical workflow is that in one queue a ticket is created and the requestor is not a single person but a different queue. If there is a reply to the ticket a mail is send to the queue. The procmail filter now don't start the rt-mailgate but sends the mail to list which I created before. regards! Sven
Re: [rt-users] Retrieving information from RT-database
Hi! a simple way is to use the commandline interface /opt/rt4/bin/rt ls -t user - gives you a list of all user /opt/rt4/bin/rt show user/123456 - gives you all information about user with the id 123456 the interface utilize the rest interface, which is much easier to use than the perl api (IMHO) regards sven - Ursprüngliche Mail - > Von: "Luca Mazzaferro" > An: rt-users@lists.bestpractical.com > Gesendet: Donnerstag, 29. Januar 2015 10:14:08 > Betreff: [rt-users] Retrieving information from RT-database > Dear Users, > I'm writing a pieces of code in Perl to retrieve information directly > from the RT internal database. > I would like to know if there are some API provided by RT to interact > with the database, > for example retrieve the list of users and so on. > I need this informations out of the web interface. > Thank you. > Cheers, > > Luca M.
Re: [rt-users] RT customize SendEmail.pm
Hello! - Ursprüngliche Mail - > Von: k...@rice.edu > That sounds like a really, really bad idea. This is a great way to start > a mail loop, having a program Email itself. Why are you trying to do this? all emails to RT will be filtered with procmail, if the mail is originated by the RT, we will reroute the mail to the mailadresses of the queue members. This gives you simple way to send mail from queue_a to all members of queue_b regards! Sven
[rt-users] RT customize SendEmail.pm
Hello! I want to modify the SendEmail.pm module, to disable the check for RTAdresses, so we want to send emails even if RT thinks they are RT email adresses. I would copy the file SendEmail.pm to "SendEmail_Local.pm" and remove these lines $self->RecipientFilter( Callback => sub { return unless RT::EmailParser->IsRTAddress( $_[0] ); return "$_[0] appears to point to this RT instance. Skipping"; }, All => 1, ); would this work? regards! Sven Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT
[rt-users] RT filter for outgoing mail
Hello! we migrated from 3.8.7 to 4.2.9 and see that the way RT handles email adresses from queues changed. In 3.8.7 a a mail address was removed when there was match with the RTAddressRegexp or the the address was configured in the queue. This still happen in 4.2.9 but now the outgoing mail is also filtered. But we configured our mail system especially to handle mails from one queue to another, so we don't want this filter So is it okay to create a file SendEmail_Local.pm and remove these lines $self->RecipientFilter( Callback => sub { return unless RT::EmailParser->IsRTAddress( $_[0] ); return "$_[0] appears to point to this RT instance. Skipping"; }, All => 1, ); regards! Sven Sven Sternberger System Engineer Tel.: 040/8998-4397 DESY IT
Re: [rt-users] Memory issue
Hello! first look at http://www.linuxatemyram.com/ then look at the configuration of your DB Server, the webserver don't need so much memory. For mysql the parameter is innodb_buffer_pool_size And size equal speed and 1GB is is not a lot of memory today regards! Sven - Ursprüngliche Mail - > Von: "Atif Mehboob" > An: rt-users@lists.bestpractical.com > Gesendet: Donnerstag, 18. Dezember 2014 15:15:45 > Betreff: [rt-users] Memory issue > Hi All, > All of sudden we are having memory issue on our RT host. I already added 1G > of memory on the host but still can see it is using all the memory on host. > Any suggestions please? > Cheers, > Atif > -- > Atif Mehboob > Linux Administrator > Eckoh UK Limited > Telford House, Corner Hall > Hemel Hempstead, Hertfordshire HP3 9HN > T 01442 458336 > M n/a > W www.eckoh.com > US Headquarters: > Eckoh, Inc. > 11811 N. Tatum Blvd., Suite 3031 > Phoenix, AZ 85028 > This communication contains information, which is confidential and may also > be privileged. It is for the exclusive use of the intended recipient(s) > only. If you are not the intended recipient(s) please note that any form of > distribution, copying or use of this communication or the information in it > is strictly prohibited and may be unlawful. If you have received this > communication in error please return it to the sender and then delete it. > Opinions expressed in this message are those of the author, and are not > binding on the company. > Registered in England and Wales, No. 2796531 > Registered office: Telford House, Corner Hall, Hemel Hempstead, Hertfordshire > HP3 9HN > A member of the Eckoh Plc group of companies.
Re: [rt-users] Howto overwrite user preferences
This is a good link. I hacked a small script based on rt-attributes-editor. Which allows you to modify or delete the content field in attributes. useful to change for all user the default stylesheet thanks sven - Ursprüngliche Mail - > Von: "Christian Loos" > An: "Alex Peters" , "Sven Sternberger" > > CC: rt-users@lists.bestpractical.com > Gesendet: Freitag, 12. Dezember 2014 13:15:33 > Betreff: Re: Howto overwrite user preferences > > devel/tools/rt-attributes-editor > > http://www.bestpractical.com/docs/rt/4.2/rt-attributes-editor.html > > Am 12.12.2014 um 13:10 schrieb Alex Peters: > > The sbin/rt-preferences-viewer script will at least let you view > > non-default user preferences, but not let you change them. I personally > > don't know of any way to programmatically alter them though. > > > > On 4 December 2014 at 02:58, Sternberger, Sven > <mailto:sven.sternber...@desy.de>> wrote: > > > > Hello! > > > > we will upgrade soon our RT from 3.8.7 to 4.2.9, and > > I would like to initially set the preference > > for Theme on System default (in our case now rudder) > > > > I found that the Preferences are stored in the DB in the table > > Attributes with the Name Pref-RT::System-1, but is there a way > > to override/alter them? > > > > In the content I only see something like > > > > BQkDARcDMTIwHFNlYXJjaFJlc3VsdHNSZWZyZXNoSW50ZXJ2YWw= > > > > regards! > > > > Sven > > > > rt-attributes-modify Description: Perl program
Re: [rt-users] rt-validator questions!
Hi! I've continued testing - Ursprüngliche Mail - > My second question I started on my RT4.2.9 test instance (filled with > my 30GB production db) the rt-validator and first It proceed quickly > but now it slows down (in progress, runtime now 20h) .. > - Could I speedup the process (make an index on Creator?) I created an index on Creator which tooks under 10 min, after that I restarted the run I cancelled before after 40h runtime. The run was finisished in 10 min. Now I see that I have a lot of references to users which have been wiped. I would now like to update all these references to for example nobody. I think I have to this by SQL directly? best regards!
[rt-users] rt-validator questions!
hello! I'm in the process to migrate from 3.8.7. to 4.2.9 and I change the Server at the same time. Till now the tests worked like a charm Now I want to test if we could clean up the data in this procedure. We want to use - shrink_cgm_table.pl - shrink_transactions_table.pl - rt-validator My first question is could I start these tools on my old 3.8.7 instance, before I migrate or should I run them on the new host. My second question I started on my RT4.2.9 test instance (filled with my 30GB production db) the rt-validator and first It proceed quickly but now it slows down (in progress, runtime now 20h) In mysql-slow.log I see .. # Time: 141204 11:52:51 # User@Host: rt_user[rt_user] @ localhost [] # Query_time: 642.958995 Lock_time: 0.79 Rows_sent: 0 Rows_examined: 2573918 SET timestamp=1417690371; UPDATE Attachments SET Creator = '9976' WHERE Creator = '9977'; # Time: 141204 12:02:17 # User@Host: rt_user[rt_user] @ localhost [] # Query_time: 565.100590 Lock_time: 0.74 Rows_sent: 0 Rows_examined: 2573918 SET timestamp=1417690937; UPDATE Attachments SET Creator = '6214' WHERE Creator = '6215'; .. My VM has only has 16GB and innodb_buffer_pool_size is only 3GB. - Is it harmful to run rt-validator while we are in production? - Could I speedup the process (make an index on Creator?) best regards! Sven
[rt-users] Howto overwrite user preferences
Hello! we will upgrade soon our RT from 3.8.7 to 4.2.9, and I would like to initially set the preference for Theme on System default (in our case now rudder) I found that the Preferences are stored in the DB in the table Attributes with the Name Pref-RT::System-1, but is there a way to override/alter them? In the content I only see something like BQkDARcDMTIwHFNlYXJjaFJlc3VsdHNSZWZyZXNoSW50ZXJ2YWw= regards! Sven
[rt-users] Upgrade RT and migrate to postgresql
Hi! we want to upgrade our RT from 3.8.7 to 4.2.6 and we want to migrate from mysql to postgresql. Is it possible to combine these 2 steps, or is it better to first upgrade the RT and in a second step migrate to postgresql? best regards! Sven -- RT Training - Boston, September 9-10 http://bestpractical.com/training