[rt-users] rt-crontool error

support at pureview.com support at pureview.com
Mon Nov 10 00:39:14 EST 2014


Help Please,

I'm running this crontool line:
rt-crontool --search RT::Search::FromSQL --search-arg "Queue = 'general'
AND Owner != 'Nobody' AND (  Status = 'open' OR Status = 'new' ) AND
Created < '1 day ago'" --action RT::Action::SendEmail --action-arg
Owner,AlwaysNotifyActor --template 'Reminder due soon' --transaction first

Once is ran. rt log is showing this errors:
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)
[19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
call method "TargetObj" on an undefined value at template line 1.
(/opt/rt4/bin/../lib/RT/Template.pm:546)

[19375] [Mon Nov  3 06:01:53 2014] [warning]: Too late to safely run
transaction-batch scrips! This is typically caused by using ticket objects
at the top-level of a script which uses the RT API. Be sure to explicitly
undef such ticket objects, or put them inside of a lexical scope. at
/opt/rt4/bin/../lib/RT/Ticket.pm line 2587 during global destruction.
(/opt/rt4/bin/../lib/RT/Ticket.pm:2587)
[19375] [Mon Nov  3 06:01:53 2014] [warning]: Too late to safely run
transaction-batch scrips! This is typically caused by using ticket objects
at the top-level of a script which uses the RT API. Be sure to explicitly
undef such ticket objects, or put them inside of a lexical scope. at
/opt/rt4/bin/../lib/RT/Ticket.pm line 2587 during global destruction.
(/opt/rt4/bin/../lib/RT/Ticket.pm:2587)
[19375] [Mon Nov  3 06:01:53 2014] [warning]: Too late to safely run
transaction-batch scrips! This is typically caused by using ticket objects
at the top-level of a script which uses the RT API. Be sure to explicitly
undef such ticket objects, or put them inside of a lexical scope. at
/opt/rt4/bin/../lib/RT/Ticket.pm line 2587 during global destruction.
(/opt/rt4/bin/../lib/RT/Ticket.pm:2587)
[19375] [Mon Nov  3 06:01:53 2014] [warning]: Too late to safely run
transaction-batch scrips! This is typically caused by using ticket objects
at the top-level of a script which uses the RT API. Be sure to explicitly
undef such ticket objects, or put them inside of a lexical scope. at
/opt/rt4/bin/../lib/RT/Ticket.pm line 2587 during global destruction.
(/opt/rt4/bin/../lib/RT/Ticket.pm:2587)
[19375] [Mon Nov  3 06:01:53 2014] [warning]: Too late to safely run
transaction-batch scrips! This is typically caused by using ticket objects
at the top-level of a script which uses the RT API. Be sure to explicitly
undef such ticket objects, or put them inside of a lexical scope. at
/opt/rt4/bin/../lib/RT/Ticket.pm line 2587 during global destruction.
(/opt/rt4/bin/../lib/RT/Ticket.pm:2587)

(in cleanup) Can't call method "_should_log" on an undefined value at
/usr/local/share/perl5/Log/Dispatch.pm line 247 during global destruction.
        (in cleanup) Can't call method "_should_log" on an undefined value
at /usr/local/share/perl5/Log/Dispatch.pm line 247 during global
destruction.

I'm running RT 4.2.1 on Centos 6
Any advise on this error .

Thank you,
David





More information about the rt-users mailing list