Re: [rt-users] Onetime CC are giving an internal error

2016-04-08 Thread Joop
On 8-4-2016 21:06, Sean Cwiek wrote:
>
> We are seeing something very similar for every correspondence after
> upgrading to 4.4.  The call to load the Scrips and Recipients box when
> updating a ticket contains the entire content of the message in the
> string, which is often leading to this 414 error.  We never ran into
> this issue in 4.2.
>
>  
>
> > We are running rt-4.4.0 and just noticed that selecting a One-time Cc
>
> > gives an internal error in the Scrips and Recipients block.
>
> > The error is:
>
> >
>
>  > [9625] [Thu Apr  7 12:37:48 2016] [warning]: Use of uninitialized
> value in split at /opt/rt4/share/html/Helpers/PreviewScrips line 81.
> (/opt/rt4/share/html/Helpers/PreviewScrips:81)
>
> > [9625] [Thu Apr  7 12:37:48 2016] [error]: Operation "eq": no method
> found,
>
> > left argument has no overloaded magic,
>
> > right argument in overloaded package Email::Address at
> /opt/rt4/share/html/Helpers/PreviewScrips line 115.
>
> >
>
>  > Stack:
>
> >   [/opt/rt4/share/html/Helpers/PreviewScrips:115]
>
> >   [/opt/rt4/share/html/Helpers/autohandler:51]
>
> >   [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:696]
>
> >   [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:375]
>
> >   [/opt/rt4/share/html/autohandler:53]
> (/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)
>
> >
>
>  > Anyone else seen that?
>
> >
>
>  > We are running rt with a couple of extensions but none of them
> should be
>
> > touching something in that part of the code.
>
> >
>
>  > Something related to this, namely PreviewScrips. If you
> reply/comment to
>
> > a large message body then apache will log a 414 and there will be no
>
> > text in the Scrips and Recipients block.
>
> > Looking at the apache logs shows a very large GET request which looks
>
> > like an URL encoded block of text which is 8000 chars.
>
> > Shouldn't PreviewScrips use POST instead of GET because of the possible
>
> > large amount of text?
>
> >
>
>  > Regards,
>
>

I might have some spare time this weekend and if so will be looking into
it to see what changed between 4.2 and 4.4. Some help from BP is very
welcome too :-)
I might open a bug report just to make it know to more people.

Thanks for letting me know I'm not alone,

Joop

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Onetime CC are giving an internal error

2016-04-08 Thread Sean Cwiek
We are seeing something very similar for every correspondence after upgrading 
to 4.4.  The call to load the Scrips and Recipients box when updating a ticket 
contains the entire content of the message in the string, which is often 
leading to this 414 error.  We never ran into this issue in 4.2.

> We are running rt-4.4.0 and just noticed that selecting a One-time Cc
> gives an internal error in the Scrips and Recipients block.
> The error is:
>
 > [9625] [Thu Apr  7 12:37:48 2016] [warning]: Use of uninitialized value in 
 > split at /opt/rt4/share/html/Helpers/PreviewScrips line 81. 
 > (/opt/rt4/share/html/Helpers/PreviewScrips:81)
> [9625] [Thu Apr  7 12:37:48 2016] [error]: Operation "eq": no method found,
> left argument has no overloaded magic,
> right argument in overloaded package Email::Address at 
> /opt/rt4/share/html/Helpers/PreviewScrips line 115.
>
 > Stack:
>   [/opt/rt4/share/html/Helpers/PreviewScrips:115]
>   [/opt/rt4/share/html/Helpers/autohandler:51]
>   [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:696]
>   [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:375]
>   [/opt/rt4/share/html/autohandler:53] 
> (/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)
>
 > Anyone else seen that?
>
 > We are running rt with a couple of extensions but none of them should be
> touching something in that part of the code.
>
 > Something related to this, namely PreviewScrips. If you reply/comment to
> a large message body then apache will log a 414 and there will be no
> text in the Scrips and Recipients block.
> Looking at the apache logs shows a very large GET request which looks
> like an URL encoded block of text which is 8000 chars.
> Shouldn't PreviewScrips use POST instead of GET because of the possible
> large amount of text?
>
 > Regards,
>
 > Joop


Thanks.

Sean Cwiek
MeL Systems Specialist
Midwest Collaborative for Library Services (MCLS)
Phone: 800-530-9019 ext. 148
Phone: 517-492-3848
cwi...@mcls.org

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] data replication RT server to RT server

2016-04-08 Thread Parish, Brent
If using MySQL you can do circular replication, I was keeping a “live” backup 
of our database for disaster recovery/failover using Tungsten.
But the point Ken made about database differences between versions is a HUGE 
thing to consider!!!

I run all RT upgrades in a test environment before moving to prod.
I got really tired of flattening and rebuilding test by hand so I hacked 
together this:  
http://parishnetworks.blogspot.com/2014/10/a-script-to-flatten-rt-devtest-and.html

It’s pretty ugly so I wouldn’t use it as-is, but it may serve as a starting 
point for you.


-  Brent



From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Boris Epstein
Sent: Friday, April 08, 2016 3:02 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] data replication RT server to RT server

Hello listmates,

Here is what I have in mind.

Let us say I have a production RT instance. Let us call it rt_prod. Let us also 
say I want to run a staging instance on which I would be testing new versions, 
extensions, etc. Let us call is rt_stag.

Is there a way to synchronize the to with regard to actual ticket data - i.e., 
make it so that once any modification is made on the production one (rt_prod), 
for instance, the same is reflected on staging (rt_stag). I may even want to do 
it both ways.

Any way to do something like this - or am I just dreaming?

Thanks.

Boris.
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] data replication RT server to RT server

2016-04-08 Thread k...@rice.edu
On Fri, Apr 08, 2016 at 03:02:19PM -0400, Boris Epstein wrote:
> Hello listmates,
> 
> Here is what I have in mind.
> 
> Let us say I have a production RT instance. Let us call it rt_prod. Let us
> also say I want to run a staging instance on which I would be testing new
> versions, extensions, etc. Let us call is rt_stag.
> 
> Is there a way to synchronize the to with regard to actual ticket data -
> i.e., make it so that once any modification is made on the production one
> (rt_prod), for instance, the same is reflected on staging (rt_stag). I may
> even want to do it both ways.
> 
> Any way to do something like this - or am I just dreaming?
> 
> Thanks.
> 
> Boris.

Hi Boris,

Read through the upgrade documentation and check out the changes introduced
in the schema during the process. Not having done so, if the changes are in
some sense one-to-one, you may be able to have your production data pushed
into your test system with judicious scripting, triggers, views, It may
be more useful to script the upgrade process completely for the DB and then
update it once a day with the latest information. Going both ways would be
EXTREMELY challenging. Let us know if you get something like this working,
I think it would be of interest to others.

Regards,
Ken
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] data replication RT server to RT server

2016-04-08 Thread Boris Epstein
Hello listmates,

Here is what I have in mind.

Let us say I have a production RT instance. Let us call it rt_prod. Let us
also say I want to run a staging instance on which I would be testing new
versions, extensions, etc. Let us call is rt_stag.

Is there a way to synchronize the to with regard to actual ticket data -
i.e., make it so that once any modification is made on the production one
(rt_prod), for instance, the same is reflected on staging (rt_stag). I may
even want to do it both ways.

Any way to do something like this - or am I just dreaming?

Thanks.

Boris.
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Installing RT on Centos7

2016-04-08 Thread Jim Brandt

Are there any useful log messages in:

/root/.cpanm/work/1460108230.29671/build.log

?

On 4/8/16 5:42 AM, Yanni wrote:

Thank you Jim.

Installing the previous version of the Test-TCP module did the trick.

cpan[2]> install TOKUHIROM/Test-TCP-2.14.tar.gz and then "make fixdeps"
sorted "Plack::Handler::Starlet" out. Now the only module that's
reported missing is "File::Which". This is what I get when I try to
install it:
[root@paok rt-4.4.0]# cpanm File::Which

--> Working on File::Which
Fetching
http://www.cpan.org/authors/id/P/PL/PLICEASE/File-Which-1.21.tar.gz ... OK
Configuring File-Which-1.21 ... OK
Building and testing File-Which-1.21 ... FAIL
! Installing File::Which failed. See
/root/.cpanm/work/1460108230.29671/build.log for details. Retry with
--force to force install it.

"make fixdeps" reports that it can not install it without force.

Install module File::Which
Running install for module 'File::Which'
Running make for P/PL/PLICEASE/File-Which-1.21.tar.gz
   Has already been unwrapped into directory
/root/.cpan/build/File-Which-1.21-U29XMR
   Has already been made
Running make test
   Has already been tested within this command
Running make install
   make test had returned bad status, won't install without force

Is it OK if I force it?



-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] Installing RT on Centos7

2016-04-08 Thread Yanni

Thank you Jim.

Installing the previous version of the Test-TCP module did the trick.

cpan[2]> install TOKUHIROM/Test-TCP-2.14.tar.gz

and then "make fixdeps" sorted "Plack::Handler::Starlet" out.

Now the only module that's reported missing is "File::Which". This is what I 
get when I try to install it:

[root@paok rt-4.4.0]# cpanm File::Which

--> Working on File::Which
Fetching 
http://www.cpan.org/authors/id/P/PL/PLICEASE/File-Which-1.21.tar.gz ... OK

Configuring File-Which-1.21 ... OK
Building and testing File-Which-1.21 ... FAIL
! Installing File::Which failed. See 
/root/.cpanm/work/1460108230.29671/build.log for details. Retry with 
--force to force install it.


"make fixdeps" reports that it can not install it without force.

Install module File::Which
Running install for module 'File::Which'
Running make for P/PL/PLICEASE/File-Which-1.21.tar.gz
  Has already been unwrapped into directory 
/root/.cpan/build/File-Which-1.21-U29XMR

  Has already been made
Running make test
  Has already been tested within this command
Running make install
  make test had returned bad status, won't install without force

Is it OK if I force it?

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016