Problem with rt-crontool and SendEmail(Re-posted because I did not register before posting it originally)

Hello all,
Please I am having problems setting up rt-crontool and using
the SendEmail action. I have created a user called rtcrontool, and in this
user’s home directory, I have set-up a shell script called rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I haven’t yet set it up as a cron job but when I run the script from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

I have tried googling a solution to no avail. Please any pointers as to how
to resolve this issue will be greatly appreciated.
Thanks
View this message in context: http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted-because-I-did-not-register-before-posting-it-originally)-tp30366714p30366714.html

I had a problem with this as well you have to create a template with :

RT-Send-Bcc: {$Ticket->Owner}

And use the action record comment

–action RT::Action::RecordComment --template ‘your template name here’-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of imonike
Sent: Monday, December 06, 2010 8:06 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Problem with rt-crontool and SendEmail(Re-posted
because I did not register before posting it originally)

Hello all,
Please I am having problems setting up rt-crontool and
using
the SendEmail action. I have created a user called rtcrontool, and in
this
user’s home directory, I have set-up a shell script called rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian
colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I haven’t yet set it up as a cron job but when I run the script from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

I have tried googling a solution to no avail. Please any pointers as to
how
to resolve this issue will be greatly appreciated.
Thanks
View this message in context:
http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted
-because-I-did-not-register-before-posting-it-originally%29-tp30366714p3
0366714.html

Hello all,
Please I am having problems setting up rt-crontool and using
the SendEmail action. I have created a user called rtcrontool, and in this
user’s home directory, I have set-up a shell script called rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I’m curious where you found this syntax, since the argument to
SendEmail is not an email address, it is a string that can be passed
into your Template for parsing. If it was found on the wiki, it
should be corrected.

I haven’t yet set it up as a cron job but when I run the script from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

You haven’t provided a template, and SendEmail needs a template to
know what to send.

What you want to do is define a template with the To: address either
passed in as the $Argument or hardcoded along with the content and
then try again.

-kevin

I had a problem with this as well you have to create a template with :

RT-Send-Bcc: {$Ticket->Owner}

And use the action record comment
–action RT::Action::RecordComment --template ‘your template name here’

While this is preferred, it is possible to avoid the RecordComment if
you don’t want it cluttering up history.

Hi Bernard,
Thank you so much for your suggestion!!! I tried it and
worked. Now I have to set it up as a cron job. I will let you know how that
goes.

Many thanks again!!!

Bernard McCormack wrote:

I had a problem with this as well you have to create a template with :

RT-Send-Bcc: {$Ticket->Owner}

And use the action record comment

–action RT::Action::RecordComment --template ‘your template name here’

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of imonike
Sent: Monday, December 06, 2010 8:06 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Problem with rt-crontool and SendEmail(Re-posted
because I did not register before posting it originally)

Hello all,
Please I am having problems setting up rt-crontool and
using
the SendEmail action. I have created a user called rtcrontool, and in
this
user’s home directory, I have set-up a shell script called rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian
colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I haven’t yet set it up as a cron job but when I run the script from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

I have tried googling a solution to no avail. Please any pointers as to
how
to resolve this issue will be greatly appreciated.
Thanks

View this message in context:
http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted
-because-I-did-not-register-before-posting-it-originally%29-tp30366714p3
0366714.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

View this message in context: http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted-because-I-did-not-register-before-posting-it-originally)-tp30366714p30397423.html

Hello Kevin,
Thanks for your reply. Please how would I do it if I
wanted to avoid cluttering up history?

Regards

Imonike

Kevin Falcone-2 wrote:

I had a problem with this as well you have to create a template with :

RT-Send-Bcc: {$Ticket->Owner}

And use the action record comment
–action RT::Action::RecordComment --template ‘your template name here’

While this is preferred, it is possible to avoid the RecordComment if
you don’t want it cluttering up history.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of imonike
Sent: Monday, December 06, 2010 8:06 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Problem with rt-crontool and SendEmail(Re-posted
because I did not register before posting it originally)

Hello all,
Please I am having problems setting up rt-crontool and
using
the SendEmail action. I have created a user called rtcrontool, and in
this
user’s home directory, I have set-up a shell script called rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian
colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I haven’t yet set it up as a cron job but when I run the script from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

I have tried googling a solution to no avail. Please any pointers as to
how
to resolve this issue will be greatly appreciated.
Thanks

View this message in context:
http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted
-because-I-did-not-register-before-posting-it-originally%29-tp30366714p3
0366714.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

View this message in context: http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted-because-I-did-not-register-before-posting-it-originally)-tp30366714p30397780.html

I’ve used the following to make it transparent, also not updating last
update.

-action-arg “RecordTransaction: 0” --action-arg "UpdateLastUpdated: 0"On 10-12-07 11:08 AM, imonike wrote:

Hello Kevin,
Thanks for your reply. Please how would I do it if I
wanted to avoid cluttering up history?

Regards

Imonike

Kevin Falcone-2 wrote:

On Mon, Dec 06, 2010 at 05:51:30PM -0500, Bernard McCormack wrote:

I had a problem with this as well you have to create a template with :

RT-Send-Bcc: {$Ticket->Owner}

And use the action record comment
–action RT::Action::RecordComment --template ‘your template name here’

While this is preferred, it is possible to avoid the RecordComment if
you don’t want it cluttering up history.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of imonike
Sent: Monday, December 06, 2010 8:06 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Problem with rt-crontool and SendEmail(Re-posted
because I did not register before posting it originally)

Hello all,
Please I am having problems setting up rt-crontool and
using
the SendEmail action. I have created a user called rtcrontool, and in
this
user’s home directory, I have set-up a shell script called rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian
colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I haven’t yet set it up as a cron job but when I run the script from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

I have tried googling a solution to no avail. Please any pointers as to
how
to resolve this issue will be greatly appreciated.
Thanks

View this message in context:
http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted
-because-I-did-not-register-before-posting-it-originally%29-tp30366714p3
0366714.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

It would appear the action-arg is dependent on the action. I’m not sure
if they support the same features. You may need to check out the source
for them. Mine was for LinearEscalate.On 10-12-07 11:17 AM, Curtis Bruneau wrote:

I’ve used the following to make it transparent, also not updating last
update.

-action-arg “RecordTransaction: 0” --action-arg “UpdateLastUpdated: 0”

On 10-12-07 11:08 AM, imonike wrote:

Hello Kevin,
Thanks for your reply. Please how would I do it if I
wanted to avoid cluttering up history?

Regards

Imonike

Kevin Falcone-2 wrote:

On Mon, Dec 06, 2010 at 05:51:30PM -0500, Bernard McCormack wrote:

I had a problem with this as well you have to create a template
with :

RT-Send-Bcc: {$Ticket->Owner}

And use the action record comment
–action RT::Action::RecordComment --template ‘your template name
here’
While this is preferred, it is possible to avoid the RecordComment if
you don’t want it cluttering up history.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of imonike
Sent: Monday, December 06, 2010 8:06 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Problem with rt-crontool and SendEmail(Re-posted
because I did not register before posting it originally)

Hello all,
Please I am having problems setting up rt-crontool and
using
the SendEmail action. I have created a user called rtcrontool, and in
this
user’s home directory, I have set-up a shell script called
rtcrontool.sh
with the following command in it:

/opt/rt3/bin/rt-crontool
–search RT::Search::ActiveTicketsInQueue --search-arg ‘nigerian
colleges’

–condition RT::Condition::Overdue
–action RT::Action::SendEmail --action-arg amohammed@swglobal.com \

I haven’t yet set it up as a cron job but when I run the script
from the
command line this is what I get:

[crit]: Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.
(/opt/rt3/bin/…/lib/RT.pm:377)
Can’t call method “Parse” on an undefined value at
/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm line 155.

I have tried googling a solution to no avail. Please any pointers
as to
how
to resolve this issue will be greatly appreciated.
Thanks

View this message in context:
http://old.nabble.com/Problem-with-rt-crontool-and-SendEmail(Re-posted

-because-I-did-not-register-before-posting-it-originally%29-tp30366714p3

0366714.html
Sent from the Request Tracker - User mailing list archive at
Nabble.com.

Hi,

Hopefully a quick pointer is what I need.

We’ve been running RT 3.6.1 for years no probs.

We’ve now set up a new (replacement server) and installed RT 3.6.7.

The database under the 3.6.1 install was copied over and put on to the
3.6.7 server - the the RT instance was connected to this DB.

All seems to be working OK on the web interface. Only issue is that
emails are not being sent.

I.e. when I create a test ticket I set up my gmail email address as the
requestor. When I type up a reply via the web interface it says it’s
going to send a reply to the requestor email address.

But according to the email server logs it doesn’t even try to send
anything - and the ticket has no entry for the email being sent.

As the DB has been copied then all settings etc are the same as before -
and the RT_SiteConfig.pm file looks sane.

Is there something I need to set up RE the mail server (Postfix).

Any pointers gratefully received.

Regards,

Kevin Bailey
Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

Hi,

Hopefully a quick pointer is what I need.

We’ve been running RT 3.6.1 for years no probs.

We’ve now set up a new (replacement server) and installed RT 3.6.7.

The database under the 3.6.1 install was copied over and put on to
the 3.6.7 server - the the RT instance was connected to this DB.

All seems to be working OK on the web interface. Only issue is that
emails are not being sent.

I.e. when I create a test ticket I set up my gmail email address as
the requestor. When I type up a reply via the web interface it says
it’s going to send a reply to the requestor email address.

But according to the email server logs it doesn’t even try to send
anything - and the ticket has no entry for the email being sent.

You don’t say what the RT logs say

I’ve been asked about the output from the logs.

Currently there is no log file at all - so I’ll have a look at setting
the debug level for the logs.

Cheers,

bailey86On 09/12/10 12:40, Kevin Bailey wrote:

Hi,

Hopefully a quick pointer is what I need.

We’ve been running RT 3.6.1 for years no probs.

We’ve now set up a new (replacement server) and installed RT 3.6.7.

The database under the 3.6.1 install was copied over and put on to the
3.6.7 server - the the RT instance was connected to this DB.

All seems to be working OK on the web interface. Only issue is that
emails are not being sent.

I.e. when I create a test ticket I set up my gmail email address as
the requestor. When I type up a reply via the web interface it says
it’s going to send a reply to the requestor email address.

But according to the email server logs it doesn’t even try to send
anything - and the ticket has no entry for the email being sent.

As the DB has been copied then all settings etc are the same as before

  • and the RT_SiteConfig.pm file looks sane.

Is there something I need to set up RE the mail server (Postfix).

Any pointers gratefully received.

Regards,

Kevin Bailey

Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

I’ll look at upping the debug level. Not sure how - but I’ll get the
book out and look through the config file.

Thanks,

KevinOn 09/12/10 13:57, Kevin Falcone wrote:

On Thu, Dec 09, 2010 at 12:40:18PM +0000, Kevin Bailey wrote:

Hi,

Hopefully a quick pointer is what I need.

We’ve been running RT 3.6.1 for years no probs.

We’ve now set up a new (replacement server) and installed RT 3.6.7.

The database under the 3.6.1 install was copied over and put on to
the 3.6.7 server - the the RT instance was connected to this DB.

All seems to be working OK on the web interface. Only issue is that
emails are not being sent.

I.e. when I create a test ticket I set up my gmail email address as
the requestor. When I type up a reply via the web interface it says
it’s going to send a reply to the requestor email address.

But according to the email server logs it doesn’t even try to send
anything - and the ticket has no entry for the email being sent.

You don’t say what the RT logs say

As the DB has been copied then all settings etc are the same as
before - and the RT_SiteConfig.pm file looks sane.

Is there something I need to set up RE the mail server (Postfix).

Any pointers gratefully received.

Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

Here’s the log messages I found in syslog - I’m just looking through
them now:

Dec 9 16:34:22 cyclone2 RT: Guessed encoding: utf8#012
Dec 9 16:34:22 cyclone2 RT: Guessed encoding: ascii#012
Dec 9 16:34:22 cyclone2 RT: Guessed encoding: utf8#012
Dec 9 16:34:22 cyclone2 RT: Guessed encoding: ascii#012
Dec 9 16:34:22 cyclone2 RT: About to think about scrips for transaction
#21542#012
Dec 9 16:34:22 cyclone2 RT: About to prepare scrips for transaction
#21542#012
Dec 9 16:34:22 cyclone2 RT: Found 5 scrips#012
Dec 9 16:34:23 cyclone2 RT: About to commit scrips for transaction
#21542#012
Dec 9 16:34:23 cyclone2 RT:
rt-3.6.7-17319-1291912462-219.1147-5-0@cyclone2.freewayprojects.com
#1147/21542 - Scrip 5
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:266)#012
Dec 9 16:34:23 cyclone2 RT:
rt-3.6.7-17319-1291912462-219.1147-5-0@cyclone2.freewayprojects.com No
recipients found. Not sending.
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:278)#012
Dec 9 16:34:23 cyclone2 RT:
rt-3.6.7-17319-1291912462-219.1147-6-0@cyclone2.freewayprojects.com
#1147/21542 - Scrip 6
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:266)#012
Dec 9 16:34:23 cyclone2 RT:
rt-3.6.7-17319-1291912462-219.1147-6-0@cyclone2.freewayprojects.comCould
not send mail: Insecure $ENV{PATH} while running with -T switch at
/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm line
333.#012#012Stack:#012
[/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:333]#012
[/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:288]#012
[/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:107]#012
[/usr/share/request-tracker3.6/lib/RT/ScripAction_Overlay.pm:242]#012
[/usr/share/request-tracker3.6/lib/RT/Scrip_Overlay.pm:507]#012
[/usr/share/request-tracker3.6/lib/RT/Scrips_Overlay.pm:195]#012
[/usr/share/request-tracker3.6/lib/RT/Transaction_Overlay.pm:181]#012
[/usr/share/request-tracker3.6/lib/RT/Record.pm:1466]#012
[/usr/share/request-tracker3.6/lib/RT/Ticket_Overlay.pm:2435]#012
[/usr/share/request-tracker3.6/lib/RT/Ticket_Overlay.pm:2348]#012
[/usr/share/request-tracker3.6/lib/RT/Interface/Web.pm:597]#012
[/usr/share/request-tracker3.6/html/Ticket/Display.html:144]#012
[/usr/share/request-tracker3.6/html/Ticket/Update.html:218]#012
[/usr/share/request-tracker3.6/html/autohandler:291]
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:349)#012
Dec 9 16:34:23 cyclone2 RT:
rt-3.6.7-17319-1291912462-219.1147-7-0@cyclone2.freewayprojects.com
#1147/21542 - Scrip 7
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:266)#012
Dec 9 16:34:23 cyclone2 RT:
rt-3.6.7-17319-1291912462-219.1147-7-0@cyclone2.freewayprojects.com No
recipients found. Not sending.
(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:278)#012
Dec 9 16:34:23 cyclone2 RT: Use of uninitialized value in pattern match
(m//) at /usr/share/request-tracker3.6/lib/RT/Interface/Web.pm line
1423. (/usr/share/request-tracker3.6/lib/RT/Interface/Web.pm:1423)#012
Dec 9 16:34:23 cyclone2 RT: Use of uninitialized value in pattern match
(m//) at /usr/share/request-tracker3.6/lib/RT/Interface/Web.pm line
1423. (/usr/share/request-tracker3.6/lib/RT/Interface/Web.pm:1423)#012On 09/12/10 16:32, Kevin Bailey wrote:

I’ll look at upping the debug level. Not sure how - but I’ll get the
book out and look through the config file.

Thanks,

Kevin

On 09/12/10 13:57, Kevin Falcone wrote:

On Thu, Dec 09, 2010 at 12:40:18PM +0000, Kevin Bailey wrote:

Hi,

Hopefully a quick pointer is what I need.

We’ve been running RT 3.6.1 for years no probs.

We’ve now set up a new (replacement server) and installed RT 3.6.7.

The database under the 3.6.1 install was copied over and put on to
the 3.6.7 server - the the RT instance was connected to this DB.

All seems to be working OK on the web interface. Only issue is that
emails are not being sent.

I.e. when I create a test ticket I set up my gmail email address as
the requestor. When I type up a reply via the web interface it says
it’s going to send a reply to the requestor email address.

But according to the email server logs it doesn’t even try to send
anything - and the ticket has no entry for the email being sent.

You don’t say what the RT logs say

As the DB has been copied then all settings etc are the same as
before - and the RT_SiteConfig.pm file looks sane.

Is there something I need to set up RE the mail server (Postfix).

Any pointers gratefully received.


Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

Here’s the log messages I found in syslog - I’m just looking through
them now:

(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:266)#012
Dec 9 16:34:23 cyclone2 RT: rt-3.6.7-17319-1291912462-219.1147-6-0@cyclone2.freewayprojects.comCould
not send mail: Insecure $ENV{PATH} while running with -T switch at
/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm line
333.#012#012Stack:#012

You appear to be running RT in taint mode. Why?

-kevin

Not sure - it was installed by one of our guys. I don’t even know what
taint mode is.

Currently the Apache2 web server won’t start up due to RT. I’m getting

[Thu Dec 09 16:53:06 2010] [error] Insecure dependency in chdir while
running with -T switch at /usr/share/perl/5.10/File/Path.pm line
222.\nCompilation failed in require at (eval 2) line 1.\n
[Thu Dec 09 16:53:06 2010] [error] Can’t load Perl file:
/usr/share/request-tracker3.6/libexec/webmux.pl for server
cyclone2.freewayprojects.com:80, exiting

I’ve got a feeling that I’m going to have to start again from scratch.
I’ll ask for pointers RE migration on the list.

Thanks,

Kevin BaileyOn 09/12/10 16:38, Kevin Falcone wrote:

On Thu, Dec 09, 2010 at 04:35:45PM +0000, Kevin Bailey wrote:

Here’s the log messages I found in syslog - I’m just looking through
them now:

(/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm:266)#012
Dec 9 16:34:23 cyclone2 RT:rt-3.6.7-17319-1291912462-219.1147-6-0@cyclone2.freewayprojects.comCould
not send mail: Insecure $ENV{PATH} while running with -T switch at
/usr/share/request-tracker3.6/lib/RT/Action/SendEmail.pm line
333.#012#012Stack:#012

You appear to be running RT in taint mode. Why?

-kevin

Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

Not sure - it was installed by one of our guys. I don’t even know
what taint mode is.

Currently the Apache2 web server won’t start up due to RT. I’m getting

That is the same problem. I suggest you ask the person doing the
install why they set it up in an undocumented manner.

-kevin

Hi,

Currently we have RT running at version

ii request-tracker3.6 3.6.1-4+etch1
Extensible trouble-ticket tracking system

on a Debian etch server.

We have a nice new Debian server set up running Debian lenny. And we’ve
installed RT on that server from the repository - currently version

ii request-tracker3.6 3.6.7-5+lenny4

Any pointers on how we move the data from the old server to the new one.

I was told that it was just a question of copying the database over to
the new server and connecting to it using the conf file. Then the
database would automatically get updated when it was first accessed -
but we’ve run into a problem whereby the web server fails to start

[Thu Dec 09 16:53:06 2010] [error] Insecure dependency in chdir while
running with -T switch at /usr/share/perl/5.10/File/Path.pm line
222.\nCompilation failed in require at (eval 2) line 1.\n
[Thu Dec 09 16:53:06 2010] [error] Can’t load Perl file:
/usr/share/request-tracker3.6/libexec/webmux.pl for server
cyclone2.freewayprojects.com:80, exiting…

I will start looking through the docs etc but thought I’d ask for some
pointers first.

Thanks,
Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

The database doesn’t get automatically upgraded, but old databases will
usually work just fine, so your problem is likely not database related.
You need to run manually upgrade the database schema.On 12/9/10 11:17 AM, Kevin Bailey wrote:

Hi,

Currently we have RT running at version

ii request-tracker3.6 3.6.1-4+etch1
Extensible trouble-ticket tracking system

on a Debian etch server.

We have a nice new Debian server set up running Debian lenny. And
we’ve installed RT on that server from the repository - currently version

ii request-tracker3.6 3.6.7-5+lenny4

Any pointers on how we move the data from the old server to the new one.

I was told that it was just a question of copying the database over to
the new server and connecting to it using the conf file. Then the
database would automatically get updated when it was first accessed -
but we’ve run into a problem whereby the web server fails to start

[Thu Dec 09 16:53:06 2010] [error] Insecure dependency in chdir while
running with -T switch at /usr/share/perl/5.10/File/Path.pm line
222.\nCompilation failed in require at (eval 2) line 1.\n
[Thu Dec 09 16:53:06 2010] [error] Can’t load Perl file:
/usr/share/request-tracker3.6/libexec/webmux.pl for server
cyclone2.freewayprojects.com:80, exiting…

I will start looking through the docs etc but thought I’d ask for some
pointers first.

Thanks,

Kevin Bailey
Director/Programmer - Freeway Projects Limited
Web: www.freewayprojects.com http://www.freewayprojects.com/
Email: kbailey@freewayprojects.com mailto:kbailey@freewayprojects.com
Phone: +44 (0)1752 267090

Recycle for Amnesty http://www.amnesty.org.uk/recycle

John Arends
jarends@illinois.edu
Network Analyst
College of ACES ITCS
University of Illinois at Urbana-Champaign

Should we upgrade or start from scratch?

We’ve been using RT for years and are very happy - but our system is
full of hundreds of old tickets and I set up loads of queues which
weren’t needed.

We now will be upgrading our Debian server and the version of RT used
will go from 3.6.1 to 3.8.8.

How feasible is the upgrade from 3.6.1 to 3.8.8? What would need to be
done?

If it’s a bit of a hassle then I’d rather just start with a clean RT
3.8.8 install and manually create the few dozen tickets which are still
current on the old system.

Someone has mentioned updates to the DB being needed - I’d appreciate
any pointers to the SQL which would be needed.

Thanks,

Kevin Bailey

We now will be upgrading our Debian server and the version of RT
used will go from 3.6.1 to 3.8.8.

How feasible is the upgrade from 3.6.1 to 3.8.8? What would need to
be done?

Someone has mentioned updates to the DB being needed - I’d
appreciate any pointers to the SQL which would be needed.

Have you read through UPGRADING and the README that are included with
every download of RT?

It covers all of this.

The error that you were quoting still implies that someone has taken
the stock debian configs and added extra things to it to break them
(turning on taint mode).

-kevin