Skipping Scrip because it didn't Prepare

Hello everyone,
I am new to this list and am hoping I can find assistance (as well as offer my own assistance to other RT users in the future.)

I am experiencing in issue in which certain scrips have stopped functioning. I have scoured Google as well as the archive for this mailing list, and have not been able to find an answer. Here’s what’s going on:

I have a scrip (#15) with the following settings:
Description: On Correspond Notify Requestors
Condition: On Correspond
Action: Notify Requestors
Template: Global template: Correspondence
Stage: TransactionCreate

            User- Defined fields are left blank.

Up until recently, this has worked fine, and any time a reply was made to a ticket, the web interface would note in the ticket history that an outgoing e-mail was recorded. Now, the web interface says nothing below the reply and no e-mail is sent to the requestors. Other e-mail traffic (such as when a ticket is created) functions perfectly. I have debugging enabled, and for each ticket reply I see this in the log:

            [Mon Oct  7 20:21:15 2013] [debug]: Skipping Scrip #15 because it didn't Prepare (/opt/rt4/sbin/../lib/RT/Scrips.pm:237)

I am unclear exactly what “it didn’t Prepare” is supposed to mean, when I am using a predefined condition and action. The only thing that has changed recently is that I created a separate scrip to notify a ticket owner when a comment is made to a ticket. I have since deleted both scrips and recreated the one described above, to no avail. I have not modified any other pre-existing scrips.

Thank you for any assistance or insight you may provide!

-Jesse Davidson
IT Support Analyst, Senior
College of Medicine ITS
University of Arizona

Putting a ‘Me too’ on this one. Used to work. Stopped at some point. Likely it hasn’t worked in a very long time as looking back over tickets I see no sign of the outgoing email in the logs going back quite a ways. Could have been broke during an upgrade, perhaps during the upgrade of a Perl dependency or something else. Dunno. Do know it isn’t working now and since it’s a system defined type I don’t think it actually requires preparation?From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Jesse Davidson
Sent: Monday, October 07, 2013 6:03 PM
To: ‘rt-users@lists.bestpractical.com’
Subject: [rt-users] Skipping Scrip because it didn’t Prepare

Hello everyone,
I am new to this list and am hoping I can find assistance (as well as offer my own assistance to other RT users in the future.)

I am experiencing in issue in which certain scrips have stopped functioning. I have scoured Google as well as the archive for this mailing list, and have not been able to find an answer. Here’s what’s going on:

I have a scrip (#15) with the following settings:
Description: On Correspond Notify Requestors
Condition: On Correspond
Action: Notify Requestors
Template: Global template: Correspondence
Stage: TransactionCreate

            User- Defined fields are left blank.

Up until recently, this has worked fine, and any time a reply was made to a ticket, the web interface would note in the ticket history that an outgoing e-mail was recorded. Now, the web interface says nothing below the reply and no e-mail is sent to the requestors. Other e-mail traffic (such as when a ticket is created) functions perfectly. I have debugging enabled, and for each ticket reply I see this in the log:

            [Mon Oct  7 20:21:15 2013] [debug]: Skipping Scrip #15 because it didn't Prepare (/opt/rt4/sbin/../lib/RT/Scrips.pm:237)

I am unclear exactly what “it didn’t Prepare” is supposed to mean, when I am using a predefined condition and action. The only thing that has changed recently is that I created a separate scrip to notify a ticket owner when a comment is made to a ticket. I have since deleted both scrips and recreated the one described above, to no avail. I have not modified any other pre-existing scrips.

Thank you for any assistance or insight you may provide!

-Jesse Davidson
IT Support Analyst, Senior
College of Medicine ITS
University of Arizona

Up until recently, this has worked fine, and any time a reply was made
to a ticket, the web interface would note in the ticket history that
an outgoing e-mail was recorded. Now, the web interface says nothing
below the reply and no e-mail is sent to the requestors. Other e-mail
traffic (such as when a ticket is created) functions perfectly. I have
debugging enabled, and for each ticket reply I see this in the log:

            [Mon Oct  7 20:21:15 2013] [debug]: Skipping Scrip #15

because it didn’t Prepare (/opt/rt4/sbin/…/lib/RT/Scrips.pm:237)

This is caused by a failure of a template to compile. Look at the
template on scrip #15, and check that it has no compilation errors
displayed at the top.

We now have a branch that will log this category of error with a more
explicit message.

  • Alex

Alex,
Thanks for your response. I checked out the template in question and sure enough, there was an erratic line that had caused the whole thing to fail. Oddly, the template editor had not reported any errors upon viewing or saving the template, and the display at top would simply confirm that the template was successfully saved despite the error.

In either case, my issue is resolved. Thank you for your quick assistance!

-Jesse Davidson
IT Support Analyst, Senior
College of Medicine ITS
University of Arizona-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Alex Vandiver
Sent: Tuesday, October 8, 2013 11:26 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Skipping Scrip because it didn’t Prepare

On Mon, 2013-10-07 at 22:02 +0000, Jesse Davidson wrote:

Up until recently, this has worked fine, and any time a reply was made
to a ticket, the web interface would note in the ticket history that
an outgoing e-mail was recorded. Now, the web interface says nothing
below the reply and no e-mail is sent to the requestors. Other e-mail
traffic (such as when a ticket is created) functions perfectly. I have
debugging enabled, and for each ticket reply I see this in the log:

            [Mon Oct  7 20:21:15 2013] [debug]: Skipping Scrip #15 

because it didn’t Prepare (/opt/rt4/sbin/…/lib/RT/Scrips.pm:237)

This is caused by a failure of a template to compile. Look at the template on scrip #15, and check that it has no compilation errors displayed at the top.

We now have a branch that will log this category of error with a more explicit message.

  • Alex

RT Training in New York, October 8th and 9th: http://bestpractical.com/training