Calling bin/rt from apache / getting 2 rt instances talking to each other

Hi;

Have anyone tried using the rt client (rt3/bin/rt) from within the web
interface (apache2/mod_perl2) ?
Or have anyone tried to get 2 RT instances talking to each other (in a
method other than email)?

We have 2 sites each with its own RT and sometimes there will be shared
issues that both sites need to deal with, the process I thought of is :

  • have a ticket in RT.com1 , within the ticket display page a button
    that will create a ticket in RT.com2 (via REST), and another button
    that allow updating a ticket in RT.com2 from the current ticket (in
    RT.com1).

I am trying to use Apache2::RequestUtil->request to spawn sub process to
call the rt client :
my $r = Apache2::RequestUtil->request;
$r->spawn_proc_prog($com, @com_args);

where $com is rt3/bin/rt
and @com_args being (“create”, “-t”, “ticket”, “set”,
“subject=$subject”, “queue=$queue”, "requestor="user.name@email.com"")
to create a ticket
and
(“correspond”, “-m”, “$text”, “$ticket_number”) to update a ticket

Creating seem to work fine , however updating is randomly dying with
Segmentation fault?

Any help or pointers is appreciated, I am not fussed about using
Apache2::RequestUtil any alternative is fine for me ?

Regards;
Roy

Happy new year to all RT Gurus,
starting from Monday 4th of Jan, we found some strange problems inside our RT Installation on Centos 5.2. From time to time the mason_handler.fcgi process uses all the memory our system has installed until oom-killer of apache stops this process.

After reading a lot and searching the logfiles, i found that every time this occures, we get a logentry:

[Wed Jan 06 12:47:17 2010] [warn] mod_fcgid: stderr: Deep recursion on subroutine "Text::Quot

Next i found some useful hints inside the list about replacing and renewing Text::Quoted Module, i’ve done this and yes, the error still occures several times the day.

Btw. I also renewed the Scalar::Util Modul during this process.

Any ideas or suggestions?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne

Hi Torsten,

I think this was fixed in 3.8.2. The relevant ChangeLog part is:
"* rewrite displaying message stanza without recursion to avoid
problems with deep recursion errors and improve performance [ruz]"

BekényOn Wed, Jan 6, 2010 at 1:58 PM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm@kuehne-nagel.com wrote:

Happy new year to all RT Gurus,
starting from Monday 4th of Jan, we found some strange problems inside our
RT Installation on Centos 5.2. From time to time the mason_handler.fcgi
process uses all the memory our system has installed until oom-killer of
apache stops this process.

After reading a lot and searching the logfiles, i found that every time
this occures, we get a logentry:

[Wed Jan 06 12:47:17 2010] [warn] mod_fcgid: stderr: Deep recursion on
subroutine "Text::Quot

Next i found some useful hints inside the list about replacing and renewing
Text::Quoted Module, i’ve done this and yes, the error still occures several
times the day.

Btw. I also renewed the Scalar::Util Modul during this process.

Any ideas or suggestions?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian
Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen,
Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich
haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg
Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

Hi Bekeny,
that sounds good, we are in front of migration to rt 3.8.x…soon.

Thanks2010/1/7 BÁLINT Bekény balint.bekeny@docca.hu

Hi Torsten,

I think this was fixed in 3.8.2. The relevant ChangeLog part is:
"* rewrite displaying message stanza without recursion to avoid
problems with deep recursion errors and improve performance [ruz]"


Bekény

On Wed, Jan 6, 2010 at 1:58 PM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm@kuehne-nagel.com wrote:

Happy new year to all RT Gurus,
starting from Monday 4th of Jan, we found some strange problems inside our
RT Installation on Centos 5.2. From time to time the mason_handler.fcgi
process uses all the memory our system has installed until oom-killer of
apache stops this process.

After reading a lot and searching the logfiles, i found that every time
this occures, we get a logentry:

[Wed Jan 06 12:47:17 2010] [warn] mod_fcgid: stderr: Deep recursion on
subroutine "Text::Quot

Next i found some useful hints inside the list about replacing and
renewing Text::Quoted Module, i’ve done this and yes, the error still
occures several times the day.

Btw. I also renewed the Scalar::Util Modul during this process.

Any ideas or suggestions?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian
Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen,
Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich
haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg
Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

Btw, a good question could be: is this also fixed in later rt 3.6.x
releases?2010/1/7 BÁLINT Bekény balint.bekeny@docca.hu

Hi Torsten,

I think this was fixed in 3.8.2. The relevant ChangeLog part is:
"* rewrite displaying message stanza without recursion to avoid
problems with deep recursion errors and improve performance [ruz]"


Bekény

On Wed, Jan 6, 2010 at 1:58 PM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm@kuehne-nagel.com wrote:

Happy new year to all RT Gurus,
starting from Monday 4th of Jan, we found some strange problems inside our
RT Installation on Centos 5.2. From time to time the mason_handler.fcgi
process uses all the memory our system has installed until oom-killer of
apache stops this process.

After reading a lot and searching the logfiles, i found that every time
this occures, we get a logentry:

[Wed Jan 06 12:47:17 2010] [warn] mod_fcgid: stderr: Deep recursion on
subroutine "Text::Quot

Next i found some useful hints inside the list about replacing and
renewing Text::Quoted Module, i’ve done this and yes, the error still
occures several times the day.

Btw. I also renewed the Scalar::Util Modul during this process.

Any ideas or suggestions?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian
Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen,
Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich
haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg
Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

“Btw, a good question could be: is this also fixed in later rt 3.6.x
releases?”

I don’t think so but this maybe helps you for fix it in 3.6:
http://lists.bestpractical.com/pipermail/rt-commit/2008-November/014444.html

BekényOn Fri, Jan 8, 2010 at 9:57 PM, Torsten Brumm torsten.brumm@googlemail.comwrote:

Btw, a good question could be: is this also fixed in later rt 3.6.x
releases?

2010/1/7 BÁLINT Bekény balint.bekeny@docca.hu

Hi Torsten,

I think this was fixed in 3.8.2. The relevant ChangeLog part is:
"* rewrite displaying message stanza without recursion to avoid
problems with deep recursion errors and improve performance [ruz]"


Bekény

On Wed, Jan 6, 2010 at 1:58 PM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm@kuehne-nagel.com wrote:

Happy new year to all RT Gurus,
starting from Monday 4th of Jan, we found some strange problems inside
our RT Installation on Centos 5.2. From time to time the mason_handler.fcgi
process uses all the memory our system has installed until oom-killer of
apache stops this process.

After reading a lot and searching the logfiles, i found that every time
this occures, we get a logentry:

[Wed Jan 06 12:47:17 2010] [warn] mod_fcgid: stderr: Deep recursion on
subroutine "Text::Quot

Next i found some useful hints inside the list about replacing and
renewing Text::Quoted Module, i’ve done this and yes, the error still
occures several times the day.

Btw. I also renewed the Scalar::Util Modul during this process.

Any ideas or suggestions?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian
Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen,
Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich
haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg
Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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

Coooooool! Thanks, will try it out on monday, could save our RT until update
:-)2010/1/8 BÁLINT Bekény balint.bekeny@docca.hu

“Btw, a good question could be: is this also fixed in later rt 3.6.x
releases?”

I don’t think so but this maybe helps you for fix it in 3.6:

http://lists.bestpractical.com/pipermail/rt-commit/2008-November/014444.html


Bekény

On Fri, Jan 8, 2010 at 9:57 PM, Torsten Brumm < torsten.brumm@googlemail.com> wrote:

Btw, a good question could be: is this also fixed in later rt 3.6.x
releases?

2010/1/7 BÁLINT Bekény balint.bekeny@docca.hu

Hi Torsten,

I think this was fixed in 3.8.2. The relevant ChangeLog part is:
"* rewrite displaying message stanza without recursion to avoid
problems with deep recursion errors and improve performance [ruz]"


Bekény

On Wed, Jan 6, 2010 at 1:58 PM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm@kuehne-nagel.com wrote:

Happy new year to all RT Gurus,
starting from Monday 4th of Jan, we found some strange problems inside
our RT Installation on Centos 5.2. From time to time the mason_handler.fcgi
process uses all the memory our system has installed until oom-killer of
apache stops this process.

After reading a lot and searching the logfiles, i found that every time
this occures, we get a logentry:

[Wed Jan 06 12:47:17 2010] [warn] mod_fcgid: stderr: Deep recursion on
subroutine "Text::Quot

Next i found some useful hints inside the list about replacing and
renewing Text::Quoted Module, i’ve done this and yes, the error still
occures several times the day.

Btw. I also renewed the Scalar::Util Modul during this process.

Any ideas or suggestions?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian
Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen,
Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich
haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg
Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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


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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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