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

Mailing List Archive: Request Tracker: Users

Plugin LinearEscalate

 

 

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


gerald.radix at gmail

Apr 24, 2012, 12:08 AM

Post #1 of 9 (1331 views)
Permalink
Plugin LinearEscalate

I have installed LinearEscalate.pm

When i run this command :

rt-crontool--search RT::Search::FromSQL--search-arg\
"(Status='new' OR Status='open' OR Status = 'stalled')" \
--action RT::Action::LinearEscalate

I have :

User RT not found, please contact RT administrator.


falcone at bestpractical

Apr 24, 2012, 8:04 AM

Post #2 of 9 (1255 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

On Tue, Apr 24, 2012 at 09:08:58AM +0200, Gerald wrote:
> I have installed LinearEscalate.pm
>
> When i run this command :
>
> rt-crontool--search RT::Search::FromSQL--search-arg\
> "(Status='new' OR Status='open' OR Status = 'stalled')" \
> --action RT::Action::LinearEscalate
>
> I have :
>
> User RT not found, please contact RT administrator.

You need to have a user in RT whose Gecos field matches your unix
username. This is how it knows what RT user to load up and run as.

This often "just works" when you're logged in as root, but if you're
trying to set up an rtcrontool unix user to separate privileges,
you'll need to do some rights granting in RT.

-kevin


gerald.radix at gmail

Apr 24, 2012, 8:23 AM

Post #3 of 9 (1255 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

But I have create an unix user : rtcrontool and i have add this user in
www-data group

And i have create in RT an user rtcrontool and set the unix user
parameter to rtcrontool

But i have ever :

Failed to load module RT::Action::LinearEscalate...


On 24/04/2012 17:04, Kevin Falcone wrote:
> On Tue, Apr 24, 2012 at 09:08:58AM +0200, Gerald wrote:
>
>> I have installed LinearEscalate.pm
>>
>> When i run this command :
>>
>> rt-crontool--search RT::Search::FromSQL--search-arg\
>> "(Status='new' OR Status='open' OR Status = 'stalled')" \
>> --action RT::Action::LinearEscalate
>>
>> I have :
>>
>> User RT not found, please contact RT administrator.
>>
> You need to have a user in RT whose Gecos field matches your unix
> username. This is how it knows what RT user to load up and run as.
>
> This often "just works" when you're logged in as root, but if you're
> trying to set up an rtcrontool unix user to separate privileges,
> you'll need to do some rights granting in RT.
>
> -kevin
>


falcone at bestpractical

Apr 24, 2012, 10:50 AM

Post #4 of 9 (1251 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

On Tue, Apr 24, 2012 at 05:23:15PM +0200, Gerald wrote:
> But I have create an unix user : rtcrontool and i have add this user
> in www-data group
>
> And i have create in RT an user rtcrontool and set the unix user
> parameter to rtcrontool
>
> But i have ever :
>
> Failed to load module RT::Action::LinearEscalate...

As I mentioned earlier, in your other thread on the mailing list, this
is often a permissions issue (and separate from "User RT not found").

Try loading the file explicitly
perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1

-kevin


> On 24/04/2012 17:04, Kevin Falcone wrote:
> >On Tue, Apr 24, 2012 at 09:08:58AM +0200, Gerald wrote:
> >>I have installed LinearEscalate.pm
> >>
> >>When i run this command :
> >>
> >>rt-crontool--search RT::Search::FromSQL--search-arg\
> >> "(Status='new' OR Status='open' OR Status = 'stalled')" \
> >> --action RT::Action::LinearEscalate
> >>
> >>I have :
> >>
> >>User RT not found, please contact RT administrator.
> >You need to have a user in RT whose Gecos field matches your unix
> >username. This is how it knows what RT user to load up and run as.
> >
> >This often "just works" when you're logged in as root, but if you're
> >trying to set up an rtcrontool unix user to separate privileges,
> >you'll need to do some rights granting in RT.


gerald.radix at gmail

Apr 25, 2012, 2:56 AM

Post #5 of 9 (1228 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

On 24/04/2012 19:50, Kevin Falcone wrote:
> perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1

Give :

root [at] RT-TES:/# perl -I/opt/rt4/local/lib/LinearEscalate.pm
-MRT::Action::LinearEscalate -e1

Can't locate RT/Action/LinearEscalate.pm in @INC (@INC contains:
/opt/rt4/local/lib/LinearEscalate.pm /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .).
BEGIN failed--compilation aborted.


falcone at bestpractical

Apr 25, 2012, 5:49 AM

Post #6 of 9 (1233 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

On Wed, Apr 25, 2012 at 11:56:43AM +0200, Gerald wrote:
> On 24/04/2012 19:50, Kevin Falcone wrote:
> >perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1
>
> Give :
>
> root [at] RT-TES:/# perl -I/opt/rt4/local/lib/LinearEscalate.pm
> -MRT::Action::LinearEscalate -e1

You copied and pasted wrong.
perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1

-kevin

> Can't locate RT/Action/LinearEscalate.pm in @INC (@INC contains:
> /opt/rt4/local/lib/LinearEscalate.pm /etc/perl
> /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10
> /usr/share/perl/5.10 /usr/local/lib/site_perl .).
> BEGIN failed--compilation aborted.
>


gerald.radix at gmail

Apr 25, 2012, 6:01 AM

Post #7 of 9 (1238 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

On 25/04/2012 14:49, Kevin Falcone wrote:
> perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1
>
But install script copy plugin LinearEscalate.pm in
/opt/rt4/local/lib/RT/Action/


falcone at bestpractical

Apr 25, 2012, 7:28 AM

Post #8 of 9 (1232 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

On Wed, Apr 25, 2012 at 03:01:39PM +0200, Gerald wrote:
> On 25/04/2012 14:49, Kevin Falcone wrote:
> >perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1
> But install script copy plugin LinearEscalate.pm in
> /opt/rt4/local/lib/RT/Action/

As I mentioned earlier in the thread, LinearEscalate.pm is shipped
with RT 4.0.5, there was no need to install a much older version of a
plugin that is incompatible with RT4.

rt/4.0 (4.0-trunk *)$ ls lib/RT/Action/LinearEscalate.pm
lib/RT/Action/LinearEscalate.pm

You should remove the copy of the plugin in local/lib and try again.

-kevin


gerald.radix at gmail

Apr 25, 2012, 7:55 AM

Post #9 of 9 (1234 views)
Permalink
Re: Plugin LinearEscalate [In reply to]

I have deleted the file in local/lib

and the plugin works !

Very thanks for you.

On 25/04/2012 16:28, Kevin Falcone wrote:
> On Wed, Apr 25, 2012 at 03:01:39PM +0200, Gerald wrote:
>
>> On 25/04/2012 14:49, Kevin Falcone wrote:
>>
>>> perl -I/opt/rt4/lib -MRT::Action::LinearEscalate -e1
>>>
>> But install script copy plugin LinearEscalate.pm in
>> /opt/rt4/local/lib/RT/Action/
>>
> As I mentioned earlier in the thread, LinearEscalate.pm is shipped
> with RT 4.0.5, there was no need to install a much older version of a
> plugin that is incompatible with RT4.
>
> rt/4.0 (4.0-trunk *)$ ls lib/RT/Action/LinearEscalate.pm
> lib/RT/Action/LinearEscalate.pm
>
> You should remove the copy of the plugin in local/lib and try again.
>
> -kevin
>

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.