[rt-users] Odd Errors in RT Log from scrip

Kenneth Crocker kfcrocker at lbl.gov
Fri Aug 27 19:17:45 EDT 2010


To List,

I have a scrip that checks to see if the requestor is also the AdminCc so
that duplicate emails are not sent, The condition is:

# Check for Ticket Status changed to "QA approvd"
# and cancel if Admin and Requestor is same user

my $trans = $self->TransactionObj;
my $ticket = $self->TicketObj;
my $requestor = $ticket->Requestors->UserMembersObj->First->EmailAddress;

if  ($ticket->IsWatcher(Type => 'AdminCc', EmailAddress => $requestor)
    {
     return 0;
    }

return ($trans->Type eq "Status" &&
        $trans->NewValue eq "QA approvd");

The action is Notify AdminCc's

The erro I'm getting on the log is:

[Fri Aug 27 22:48:58 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1510) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:49:04 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1574) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:49:37 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1829) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1756) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1758) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1760) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:50:07 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1762) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:56:28 2010] [warning]: Couldn't enable user 226
(/opt/rt3/bin/../lib/RT/User_Overlay.pm:1143)
[Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2318) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2320) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2322) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2324) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:58:28 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2326) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 22:59:45 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1703) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 23:00:47 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2108) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 23:02:32 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1661) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 23:03:17 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 2472) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 23:05:04 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1913) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 23:05:04 2010] [error]: Scrip 50899 IsApplicable failed: syntax
error at (eval 1915) line 9, near ")
    {" (/opt/rt3/bin/../lib/RT/Condition/UserDefined.pm:65)
[Fri Aug 27 23:05:58 2010] [error]: Group::HasMember was called with an
argument that isn't an RT::Principal or id. It's (undefined)
(/opt/rt3/bin/../lib/RT/Group_Overlay.pm:1046)
[Fri Aug 27 23:05:58 2010] [error]: Group::HasMember was called with an
argument that isn't an RT::Principal or id. It's (undefined)
(/opt/rt3/bin/../lib/RT/Group_Overlay.pm:1046)


Scrip 50899 is the scrip I'm talking about.

Now, my first real BIG question is "Why does it write out so many error
messages for the same scrip"? I mean, that's a lot of I/O for just one
error.

I am the AdminCc of the Queue AND the Requestor for the ticket being
evaluated.

The scrip worked. No email went out because I'm in both roles. Normally,
just the requestor would get that email.

So, why doesn't it just write out one error line?

This is just so I can understand what RT is doing in the background here.

Thanks.

Kenn
LBNL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100827/c9a43be0/attachment.htm>


More information about the rt-users mailing list