Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

rt-crontool error

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


tonyjohn at hcl

Nov 24, 2009, 12:49 AM

Post #1 of 7 (494 views)
Permalink
rt-crontool error

Hi,
I am trying to run rt-crontool but fails to set the priority value.
The coomand promt error is given below:

[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
[root [at] localhos sbin]#

Any help?

Regards,
Tony john


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------


torsten.brumm at googlemail

Nov 24, 2009, 1:56 AM

Post #2 of 7 (479 views)
Permalink
Re: rt-crontool error [In reply to]

Have you installed GraphViz from CPAN`?

2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl>

> Hi,
>
> I am trying to run rt-crontool but fails to set the priority value.
>
> The coomand promt error is given below:
>
>
>
> [root [at] localhos sbin]# rt-crontool --search
> RT::Search::ActiveTicketsInQueue --search-arg CI new --condition
> RT::Condition::UntouchedInHours --condition-arg 4 --action
> RT::Action::SetPriority --action-arg 5 --verbose
>
> [Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we
> couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains:
> /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
>
> [Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in
> concatenation (.) or string at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
>
> [root [at] localhos sbin]#
>
>
>
> Any help?
>
>
>
> Regards,
>
> Tony john
>
>
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales [at] bestpractical
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de


tonyjohn at hcl

Nov 24, 2009, 2:01 AM

Post #3 of 7 (476 views)
Permalink
Re: rt-crontool error [In reply to]

Hi ,

Now I'm getting a different error:
[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 09:59:59 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 09:59:59 2009] [crit]: Failed to load module RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
) at /usr/sbin/rt-crontool line 256. (/usr/lib/perl5/vendor_perl/5.10.0/RT.pm:377)
Failed to load module RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
) at /usr/sbin/rt-crontool line 256.
[root [at] localhos sbin]#

Regards,
Tony
________________________________
From: Torsten Brumm [mailto:torsten.brumm [at] googlemail]
Sent: Tuesday, November 24, 2009 3:26 PM
To: TONY JOHN - ERS, HCL Tech
Cc: rt-users [at] lists
Subject: Re: [rt-users] rt-crontool error

Have you installed GraphViz from CPAN`?
2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl<mailto:tonyjohn [at] hcl>>
Hi,
I am trying to run rt-crontool but fails to set the priority value.
The coomand promt error is given below:

[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
[root [at] localhos sbin]#

Any help?

Regards,
Tony john


DISCLAIMER:

-----------------------------------------------------------------------------------------------------------------------



The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.

It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in

this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.

Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of

this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have

received this email in error please delete it and notify the sender immediately. Before opening any mail and

attachments please check them for viruses and defect.



-----------------------------------------------------------------------------------------------------------------------


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical<mailto:sales [at] bestpractical>


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de


tonyjohn at hcl

Nov 24, 2009, 2:07 AM

Post #4 of 7 (572 views)
Permalink
Re: rt-crontool error [In reply to]

Hi,

PFA UntouchedInHours.pm

Regards,
Tony
________________________________
From: TONY JOHN - ERS, HCL Tech
Sent: Tuesday, November 24, 2009 3:31 PM
To: 'Torsten Brumm'
Cc: rt-users [at] lists
Subject: RE: [rt-users] rt-crontool error

Hi ,

Now I'm getting a different error:
[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 09:59:59 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 09:59:59 2009] [crit]: Failed to load module RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
) at /usr/sbin/rt-crontool line 256. (/usr/lib/perl5/vendor_perl/5.10.0/RT.pm:377)
Failed to load module RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
) at /usr/sbin/rt-crontool line 256.
[root [at] localhos sbin]#

Regards,
Tony
________________________________
From: Torsten Brumm [mailto:torsten.brumm [at] googlemail]
Sent: Tuesday, November 24, 2009 3:26 PM
To: TONY JOHN - ERS, HCL Tech
Cc: rt-users [at] lists
Subject: Re: [rt-users] rt-crontool error

Have you installed GraphViz from CPAN`?
2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl<mailto:tonyjohn [at] hcl>>
Hi,
I am trying to run rt-crontool but fails to set the priority value.
The coomand promt error is given below:

[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
[root [at] localhos sbin]#

Any help?

Regards,
Tony john


DISCLAIMER:

-----------------------------------------------------------------------------------------------------------------------



The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.

It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in

this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.

Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of

this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have

received this email in error please delete it and notify the sender immediately. Before opening any mail and

attachments please check them for viruses and defect.



-----------------------------------------------------------------------------------------------------------------------


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical<mailto:sales [at] bestpractical>


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de
Attachments: UntouchedInHours.pm (0.43 KB)


torsten.brumm at googlemail

Nov 24, 2009, 2:24 AM

Post #5 of 7 (489 views)
Permalink
Re: rt-crontool error [In reply to]

Looks like you copied not all needed information from wiki into the
UntouchedInHours.pm:

Yours:

package RT::Condition::UntouchedInHours;
require RT::Condition::Generic;

use RT::Date;


@ISA = qw(RT::Condition::Generic);


use strict;
use vars qw/@ISA/;

sub IsApplicable {
my $self = shift;
if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >=
$self->Argument and $self->TicketObj->Owner==6) {
return 1
}
else {
return 0;
}
}

1;

Wiki (you used the alternate version)

package RT::Condition::UntouchedInHours;
require RT::Condition::Generic;

use RT::Date;


@ISA = qw(RT::Condition::Generic);


use strict;
use vars qw/@ISA/;

sub IsApplicable {
my $self = shift;
if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >=
$self->Argument) {
return 1
}
else {
return 0;
}
}

# The following could be omitted. They're there to allow overrides
from Vendor and Local
# but as this isn't a core module, they're just there for completeness :)
eval "require RT::Condition::UntouchedInHours_Vendor";
die $@ if ($@ && $@ !~ qr{^Can't locate
RT/Condition/UntouchedInHours_Vendor.pm});
eval "require RT::Condition::UntouchedInHours_Local";
die $@ if ($@ && $@ !~ qr{^Can't locate
RT/Condition/UntouchedInHours_Local.pm});

1;



2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl>

>
>
> Hi,
>
>
>
> PFA UntouchedInHours.pm
>
>
>
> Regards,
>
> Tony
> ------------------------------
>
> *From:* TONY JOHN - ERS, HCL Tech
> *Sent:* Tuesday, November 24, 2009 3:31 PM
> *To:* 'Torsten Brumm'
>
> *Cc:* rt-users [at] lists
> *Subject:* RE: [rt-users] rt-crontool error
>
>
>
> Hi ,
>
>
>
> Now I’m getting a different error:
>
> [root [at] localhos sbin]# rt-crontool --search
> RT::Search::ActiveTicketsInQueue --search-arg CI new --condition
> RT::Condition::UntouchedInHours --condition-arg 4 --action
> RT::Action::SetPriority --action-arg 5 --verbose
>
> [Tue Nov 24 09:59:59 2009] [debug]: You've enabled GraphViz, but we
> couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains:
> /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
>
> [Tue Nov 24 09:59:59 2009] [crit]: Failed to load module
> RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm in @INC
> (@INC contains: /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
>
> ) at /usr/sbin/rt-crontool line 256.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT.pm:377)
>
> Failed to load module RT::Condition::UntouchedInHours. (Can't locate
> RT/I18N/en_us.pm in @INC (@INC contains: /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
>
> ) at /usr/sbin/rt-crontool line 256.
>
> [root [at] localhos sbin]#
>
>
>
> Regards,
>
> Tony
> ------------------------------
>
> *From:* Torsten Brumm [mailto:torsten.brumm [at] googlemail]
> *Sent:* Tuesday, November 24, 2009 3:26 PM
> *To:* TONY JOHN - ERS, HCL Tech
> *Cc:* rt-users [at] lists
> *Subject:* Re: [rt-users] rt-crontool error
>
>
>
> Have you installed GraphViz from CPAN`?
>
> 2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl>
>
> Hi,
>
> I am trying to run rt-crontool but fails to set the priority value.
>
> The coomand promt error is given below:
>
>
>
> [root [at] localhos sbin]# rt-crontool --search
> RT::Search::ActiveTicketsInQueue --search-arg CI new --condition
> RT::Condition::UntouchedInHours --condition-arg 4 --action
> RT::Action::SetPriority --action-arg 5 --verbose
>
> [Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we
> couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains:
> /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
>
> [Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in
> concatenation (.) or string at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
>
> [root [at] localhos sbin]#
>
>
>
> Any help?
>
>
>
> Regards,
>
> Tony john
>
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
>
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
>
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
>
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
>
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
>
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
>
> attachments please check them for viruses and defect.
>
>
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales [at] bestpractical
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
>
>
> --
> MFG
>
> Torsten Brumm
>
> http://www.brumm.me
> http://www.elektrofeld.de
>



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de


tonyjohn at hcl

Nov 24, 2009, 2:43 AM

Post #6 of 7 (521 views)
Permalink
Re: rt-crontool error [In reply to]

Hi,
I changed the UntouchedInHours.pm to the exact code as from rt wiki.But I got this error:

[Tue Nov 24 10:42:18 2009] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
[root [at] localhos sbin]#

Regards,
Tony
________________________________
From: Torsten Brumm [mailto:torsten.brumm [at] googlemail]
Sent: Tuesday, November 24, 2009 3:54 PM
To: TONY JOHN - ERS, HCL Tech
Cc: rt-users [at] lists
Subject: Re: [rt-users] rt-crontool error

Looks like you copied not all needed information from wiki into the UntouchedInHours.pm:

Yours:

package RT::Condition::UntouchedInHours;
require RT::Condition::Generic;

use RT::Date;


@ISA = qw(RT::Condition::Generic);


use strict;
use vars qw/@ISA/;

sub IsApplicable {
my $self = shift;
if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >= $self->Argument and $self->TicketObj->Owner==6) {
return 1
}
else {
return 0;
}
}

1;

Wiki (you used the alternate version)

package RT::Condition::UntouchedInHours;





require RT::Condition::Generic;



use RT::Date;





@ISA = qw(RT::Condition::Generic);





use strict;

use vars qw/@ISA/;



sub IsApplicable {

my $self = shift;

if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >= $self->Argument) {





return 1

}

else {

return 0;

}

}



# The following could be omitted. They're there to allow overrides from Vendor and Local

# but as this isn't a core module, they're just there for completeness :)





eval "require RT::Condition::UntouchedInHours_Vendor";

die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Vendor.pm});

eval "require RT::Condition::UntouchedInHours_Local";





die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Local.pm});



1;

2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl<mailto:tonyjohn [at] hcl>>

Hi,

PFA UntouchedInHours.pm

Regards,
Tony
________________________________
From: TONY JOHN - ERS, HCL Tech
Sent: Tuesday, November 24, 2009 3:31 PM
To: 'Torsten Brumm'

Cc: rt-users [at] lists<mailto:rt-users [at] lists>
Subject: RE: [rt-users] rt-crontool error

Hi ,

Now I'm getting a different error:
[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 09:59:59 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 09:59:59 2009] [crit]: Failed to load module RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm<http://en_us.pm> in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
) at /usr/sbin/rt-crontool line 256. (/usr/lib/perl5/vendor_perl/5.10.0/RT.pm:377)
Failed to load module RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm<http://en_us.pm> in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
) at /usr/sbin/rt-crontool line 256.
[root [at] localhos sbin]#

Regards,
Tony
________________________________
From: Torsten Brumm [mailto:torsten.brumm [at] googlemail<mailto:torsten.brumm [at] googlemail>]
Sent: Tuesday, November 24, 2009 3:26 PM
To: TONY JOHN - ERS, HCL Tech
Cc: rt-users [at] lists<mailto:rt-users [at] lists>
Subject: Re: [rt-users] rt-crontool error

Have you installed GraphViz from CPAN`?
2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl<mailto:tonyjohn [at] hcl>>
Hi,
I am trying to run rt-crontool but fails to set the priority value.
The coomand promt error is given below:

[root [at] localhos sbin]# rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg CI new --condition RT::Condition::UntouchedInHours --condition-arg 4 --action RT::Action::SetPriority --action-arg 5 --verbose
[Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains: /usr/local/lib/rt3/lib /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
[Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261. (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
[root [at] localhos sbin]#

Any help?

Regards,
Tony john


DISCLAIMER:

-----------------------------------------------------------------------------------------------------------------------



The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.

It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in

this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.

Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of

this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have

received this email in error please delete it and notify the sender immediately. Before opening any mail and

attachments please check them for viruses and defect.



-----------------------------------------------------------------------------------------------------------------------


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical<mailto:sales [at] bestpractical>


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de


torsten.brumm at googlemail

Nov 24, 2009, 2:47 AM

Post #7 of 7 (485 views)
Permalink
Re: rt-crontool error [In reply to]

What is in Line 261 of
/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm
and why is a RT Module installed in Vendor Perl tree?

Tob

2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl>

> Hi,
>
> I changed the UntouchedInHours.pm to the exact code as from rt wiki.But I
> got this error:
>
>
>
> [Tue Nov 24 10:42:18 2009] [warning]: Use of uninitialized value in
> concatenation (.) or string at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
>
> [root [at] localhos sbin]#
>
>
>
> Regards,
>
> Tony
> ------------------------------
>
> *From:* Torsten Brumm [mailto:torsten.brumm [at] googlemail]
> *Sent:* Tuesday, November 24, 2009 3:54 PM
>
> *To:* TONY JOHN - ERS, HCL Tech
> *Cc:* rt-users [at] lists
> *Subject:* Re: [rt-users] rt-crontool error
>
>
>
> Looks like you copied not all needed information from wiki into the
> UntouchedInHours.pm:
>
> Yours:
>
> package RT::Condition::UntouchedInHours;
> require RT::Condition::Generic;
>
> use RT::Date;
>
>
> @ISA = qw(RT::Condition::Generic);
>
>
> use strict;
> use vars qw/@ISA/;
>
> sub IsApplicable {
> my $self = shift;
> if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >=
> $self->Argument and $self->TicketObj->Owner==6) {
> return 1
> }
> else {
> return 0;
> }
> }
>
> 1;
>
> Wiki (you used the alternate version)
>
> package RT::Condition::UntouchedInHours;
>
> require RT::Condition::Generic;
>
>
> use RT::Date;
>
>
>
> @ISA = qw(RT::Condition::Generic);
>
>
>
> use strict;
>
> use vars qw/@ISA/;
>
>
> sub IsApplicable {
>
> my $self = shift;
>
> if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >= $self->Argument) {
>
> return 1
>
> }
>
> else {
>
> return 0;
>
> }
>
> }
>
>
> # The following could be omitted. They're there to allow overrides from Vendor and Local
>
> # but as this isn't a core module, they're just there for completeness :)
>
> eval "require RT::Condition::UntouchedInHours_Vendor";
>
> die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Vendor.pm});
>
> eval "require RT::Condition::UntouchedInHours_Local";
>
> die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Local.pm});
>
>
> 1;
>
>
>
> 2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl>
>
>
>
> Hi,
>
>
>
> PFA UntouchedInHours.pm
>
>
>
> Regards,
>
> Tony
> ------------------------------
>
> *From:* TONY JOHN - ERS, HCL Tech
> *Sent:* Tuesday, November 24, 2009 3:31 PM
> *To:* 'Torsten Brumm'
>
>
> *Cc:* rt-users [at] lists
>
> *Subject:* RE: [rt-users] rt-crontool error
>
>
>
> Hi ,
>
>
>
> Now I’m getting a different error:
>
> [root [at] localhos sbin]# rt-crontool --search
> RT::Search::ActiveTicketsInQueue --search-arg CI new --condition
> RT::Condition::UntouchedInHours --condition-arg 4 --action
> RT::Action::SetPriority --action-arg 5 --verbose
>
> [Tue Nov 24 09:59:59 2009] [debug]: You've enabled GraphViz, but we
> couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains:
> /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
>
> [Tue Nov 24 09:59:59 2009] [crit]: Failed to load module
> RT::Condition::UntouchedInHours. (Can't locate RT/I18N/en_us.pm in @INC
> (@INC contains: /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
>
> ) at /usr/sbin/rt-crontool line 256.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT.pm:377)
>
> Failed to load module RT::Condition::UntouchedInHours. (Can't locate
> RT/I18N/en_us.pm in @INC (@INC contains: /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at (eval 319) line 3.
>
> ) at /usr/sbin/rt-crontool line 256.
>
> [root [at] localhos sbin]#
>
>
>
> Regards,
>
> Tony
> ------------------------------
>
> *From:* Torsten Brumm [mailto:torsten.brumm [at] googlemail]
> *Sent:* Tuesday, November 24, 2009 3:26 PM
> *To:* TONY JOHN - ERS, HCL Tech
> *Cc:* rt-users [at] lists
> *Subject:* Re: [rt-users] rt-crontool error
>
>
>
> Have you installed GraphViz from CPAN`?
>
> 2009/11/24 TONY JOHN - ERS, HCL Tech <tonyjohn [at] hcl>
>
> Hi,
>
> I am trying to run rt-crontool but fails to set the priority value.
>
> The coomand promt error is given below:
>
>
>
> [root [at] localhos sbin]# rt-crontool --search
> RT::Search::ActiveTicketsInQueue --search-arg CI new --condition
> RT::Condition::UntouchedInHours --condition-arg 4 --action
> RT::Action::SetPriority --action-arg 5 --verbose
>
> [Tue Nov 24 08:47:50 2009] [debug]: You've enabled GraphViz, but we
> couldn't load the module: Can't locate GraphViz.pm in @INC (@INC contains:
> /usr/local/lib/rt3/lib
> /usr/local/lib/rt3/plugins/RT-Extension-CustomField-Checkbox/lib
> /usr/lib/perl5/vendor_perl/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm line 311.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Config.pm:312)
>
> [Tue Nov 24 08:47:50 2009] [warning]: Use of uninitialized value in
> concatenation (.) or string at
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm line 261.
> (/usr/lib/perl5/vendor_perl/5.10.0/RT/Tickets_Overlay_SQL.pm:261)
>
> [root [at] localhos sbin]#
>
>
>
> Any help?
>
>
>
> Regards,
>
> Tony john
>
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
>
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
>
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
>
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
>
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
>
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
>
> attachments please check them for viruses and defect.
>
>
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales [at] bestpractical
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
>
>
> --
> MFG
>
> Torsten Brumm
>
> http://www.brumm.me
> http://www.elektrofeld.de
>
>
>
>
> --
> MFG
>
> Torsten Brumm
>
> http://www.brumm.me
> http://www.elektrofeld.de
>



--
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.