Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Guadagnino Cristiano
Hi Wardrop!

Wardrop ha scritto:
 Hi,

 I'm wondering how I would go about adding a stalled tickets column to the
 Quick Search display on the dashboard. I've done a Google, but a lot of the
 information seems to pertain to older versions of RT. I'm on RT 4.2.2.

 I've looked at ./share/html/Elements/Quicksearch expecting to find some
 clues, but alas, nothing. Can anyone point me in the right direction or just
 tell me how to it?

 Cheers,
 Tom

Why do you want to add it to the quick search display?

I simply created a new saved search that I called MineStalled, then I 
added it to the RT at a glance right above the Quick search portlet 
by clicking on Edit in the upper right corner of the RT at a glance 
page and adding the saved search.

Hope this helps.

Bye
Cris


Re: [rt-users] Server closed connection without sending any data back (500)

2014-01-15 Thread Jeff Blaine
If anyone has any ideas how I might go about making RT
more informative about what is going on in this failure,
I would love to hear them.

On 1/9/2014 4:01 PM, Jeff Blaine wrote:
 I cannot seem to get the RT CLI to work. We are using 4.0.18. Any ideas
 as to what is going on?
 
 The Apache httpd logs show nothing of any use. If I use the web UI
 (which works fine, and we've been using it for 10+ years now), I can
 logout + login with the following username and password fine. The user
 has full create privs for the foo-help queue (it is our day-to-day queue
 we use all the time).
 
 ==
 [rt-tickets:~]$ cat .rtrc
 server https://rt-tickets.our.org/
 user jbla...@our.org
 passwd mypassword
 queue foo-help
 debug 3
 [rt-tickets:~]$
 ==
 
 
 ==
 [rt-tickets:~]$ /rt/bin/rt create -o -t ticket set subject=foo
 POST https://rt-tickets.our.org//REST/1.0/show
 Content-Length: 281
 Content-Type: multipart/form-data; boundary=xYzZY
 
 --xYzZY
 Content-Disposition: form-data; name=format
 
 l
 --xYzZY
 Content-Disposition: form-data; name=id
 
 ticket/new
 --xYzZY
 Content-Disposition: form-data; name=user
 
 jbla...@our.org
 --xYzZY
 Content-Disposition: form-data; name=pass
 
 mypassword
 --xYzZY--
 500 Server closed connection without sending any data back
 Content-Type: text/plain
 Client-Date: Thu, 09 Jan 2014 20:54:30 GMT
 Client-Warning: Internal response
 
 500 Server closed connection without sending any data back
 rt: Server error: Server closed connection without sending any data back
 (500)
 ==
 
 


[rt-users] New Ticket in

2014-01-15 Thread Bryon Baker
Hello All

Is there a way to limit the queues listed in the New ticket in selection?

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bba...@copesan.commailto:cstep...@copesan.com
www.copesan.comhttp://www.copesan.com/
Servicing North America with Local Care



Re: [rt-users] New Ticket in

2014-01-15 Thread Emmanuel Lacour
On Wed, Jan 15, 2014 at 03:41:25PM +, Bryon Baker wrote:
Hello All
 

Hello,

Is there a way to limit the queues listed in the “New ticket in”
selection?
 


It's linked to the CreateTicket right the current users hav on queues.

You can also define using the configuration option $DefaultQueue (global
or per-user) the first queue listed in this select box.

Else, you can mangle this with the callback in
share/html/Elements/SelectNewTicketQueue.

-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


Re: [rt-users] Postfix: No host option provided

2014-01-15 Thread Emmanuel Lacour
On Tue, Jan 14, 2014 at 01:03:37PM -1000, Mathew Snyder wrote:
I'm trying to test postfix locally by sending email via local telnet to
RT. At the moment I have no relay host configured since I'm attempting to
use local user accounts as the source address.
I'm getting the following from /var/log/mailllog: 
...status=deferred (temporary failure. Command output: HTTP request
failed: 500 No Host option provided. Your webserver logs may have more
information or there may be a network problem. )


as said: Your webserver logs may have more information

what your RT aliases looks like?
what your http vhost configuration looks like?

-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Emmanuel Lacour
On Tue, Jan 14, 2014 at 03:36:09PM -0800, Wardrop wrote:
 Hi,
 
 I'm wondering how I would go about adding a stalled tickets column to the
 Quick Search display on the dashboard. I've done a Google, but a lot of the
 information seems to pertain to older versions of RT. I'm on RT 4.2.2.
 
 I've looked at ./share/html/Elements/Quicksearch expecting to find some
 clues, but alas, nothing. Can anyone point me in the right direction or just
 tell me how to it?
 

here:

share/html/Elements/QueueSummaryByStatus

(@statuses)

-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


Re: [rt-users] Using Fetchmail to pipe mail into RT.

2014-01-15 Thread Emmanuel Lacour
On Mon, Jan 13, 2014 at 12:34:15PM -0800, Joshua Riden wrote:
Hi,
 
I am installing Request Tracker 4.2 on CentOS 6.5 with Perl, Apache, and
MySQL.
I am using Fetchmail as the MDA, and Postfix as the MTA.
Google apps is being used as our main email system.
So far I have resolved all dependencies and initialized the database and
got the website going.
I can log on as root and navigate the RT site just fine from another
workstation.
I had to follow the official documentation and do some wiki reading and
intensive googling to get me where I am at now.
I need some clear cut instructions on how to successfully pipe emails into
RT.
Is the /etc/aliases list required? Or can I just use ./fetchmailrc� by
itself? /etc/default/fetchmail is not created by default.
How can I manually pipe emails into my RT instance? What syntax would I
use for that? I googled around and could not find anything about that.
 
Here is what my fetchmailrc configuration file looks like..
set daemon 30;
 
poll [1]pop.gmail.com proto pop3
username [2]jri...@cmhshare.org password mypassword
mda /usr/bin/perl /opt/rt4/bin/rt-mailgate --url [3]https://localhost/ \
--queue general --action correspond
 


you have examples here:

http://requesttracker.wikia.com/wiki/Fetchmail

thought, I prefer to have fetchmail give the mail to postfix and then
postfix to RT. If something goes wrong in RT the mail will be stuck in
postfix queue which I better manage than an upstream one.

-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


Re: [rt-users] Question arround scrip and custom condition on comment

2014-01-15 Thread Emmanuel Lacour
On Mon, Jan 13, 2014 at 06:24:31PM +0100, Alexandre LEPREVOST wrote:
Hello everyone
 
I'm wondering how to do something simple. I would like to call a script
not on comment but after the comment insert in the database.
 
Actually this is my condition :
return 0 unless $self-TransactionObj-Type eq Comment;
return 1;
 
But the script is called when I click on comment, how about after the
comment insert in the database ? (with all the transaction done).
 


well, when you create a scrip with On comment as condition, it is not
called when you click comment, but when you submit the comment (or
when a comment is received on the comment queue email address). And
there you have access to all the data provided in this transaction.

Also have a look here:

http://requesttracker.wikia.com/wiki/TransactionBatchStage

What do you wan't to achieve, why do you want to execute after DB
insertion?



-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


[rt-users] Automatically search in articles on new ticket

2014-01-15 Thread Guadagnino Cristiano
We have a lot of articles in RT.
However, since articles are written by different people, and some 
articles could be quite old, when a new ticket comes in that nobody 
knows (or remembers) how to solve, we seldomly look into the articles.

There are times when one of us fights against a problems for hours only 
to find - hours later- that it was already documented in an RT article.

While this may be mitigated by educating ourselves to look into RT 
articles as soon as we are confronted with an unknown problem, I am 
wondering if anybody has thought about implementing a smarter solution.

What I am thinking is some kind of automatic keyword search, like those 
you see on many support sites: when a ticket is taken, keyword from the 
ticket subject (or body) are searched for in the articles, and all the 
matching articles are presented next to the ticket itself.

Did anybody implement such a thing?
If not, how would you go about implementing it (I am interested in doing 
some coding, but I'm not sure about how to proceed).

Bye
Cris


Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Guadagnino Cristiano

Guadagnino Cristiano ha scritto:
 Hi Wardrop!

 Wardrop ha scritto:
 Hi,

 I'm wondering how I would go about adding a stalled tickets column to the
 Quick Search display on the dashboard. I've done a Google, but a lot of the
 information seems to pertain to older versions of RT. I'm on RT 4.2.2.

 I've looked at ./share/html/Elements/Quicksearch expecting to find some
 clues, but alas, nothing. Can anyone point me in the right direction or just
 tell me how to it?

 Cheers,
 Tom
 Why do you want to add it to the quick search display?

 I simply created a new saved search that I called MineStalled, then I
 added it to the RT at a glance right above the Quick search portlet
 by clicking on Edit in the upper right corner of the RT at a glance
 page and adding the saved search.

 Hope this helps.

 Bye
 Cris

Wardrop, I guess I misunderstood your request.
However, I already have a stalled column in the Quick Search portlet.
What am I missing now?

Bye
Cris


Re: [rt-users] RT4.2.1 + Fetchmail + Office365 - MDA returned nonzero status 75

2014-01-15 Thread Kevin Falcone
On Fri, Jan 10, 2014 at 07:53:57PM +, Diego Andrade wrote:
I recently changed of company and was asked to set a request system. Off 
 course I'm setting up
RT4. Problem is that in this new job they use Office365 as the Mail 
 Server. So I tryied
something new to me that is the use of the Fetchmail to retrieve from the 
 server and then
deliver to RT using the mail Gateway.
 
The problem is the MDA is returning code 75. I was looking in the history 
 of the mailing list
and other doccuments and this code is refered for several problems. None 
 of them seems to
relate with my config. May you please give a look at mail fetchmail config 
 and LOG to tell me
any ideia of what could be wrong? Thank you in advance!

You've shown fetchmail logs, but this message:

Jan 10 17:11:39 SRV-RT fetchmail[29469]: MDA returned nonzero status 75

Is coming back from RT.  Go read the RT logs, most likely your apache
logs.  On a 4.2 install, RT will tell you what logs you have enabled
on the System Configuration page.

-kevin


pgpmEvx8hCVb2.pgp
Description: PGP signature


Re: [rt-users] Resolve without Stealing

2014-01-15 Thread Kevin Falcone
On Fri, Jan 10, 2014 at 06:33:58PM +, Tom Leslein wrote:
I am trying to find a way to allow my Tier 1 team to resolve tickets 
 without stealing tickets.
 
At this point if someone works on a ticket for two days, or 1 hour, and 
 completes the ticket,
the client usually replies back with a thank you or Yup, everything is 
 good to go.
 
I do not want another Tier 1 person to have to Steal the ticket to resolve 
 it.
 
One caveat about this request is that I know there is a permission out 
 there, Edit Ticket,
but that gives them a lot more features which I do not want them to have.  
 Specifically, being
able to reply to any ticket even if they are not the owner.

Define a Resolve Ticket right using Lifecycles and protect the
transitions with it.  You can then grant just Resolve Ticket to users,
not Modify Ticket.  Also make a quick action in the Actions dropdown
using lifecycles so your users can do it quickly.

http://bestpractical.com/docs/rt/latest/customizing/lifecycles.html#Rights-and-Access-Control
http://bestpractical.com/docs/rt/latest/RT_Config.html#Lifecycles

-kevin


pgpeZdxwdDOPG.pgp
Description: PGP signature


Re: [rt-users] RT4 - Howto customize the width of the queue selection box in the top-right corner - rudder theme

2014-01-15 Thread Emmanuel Lacour
On Mon, Jan 13, 2014 at 08:45:06AM +, Carl van Litsenborgh wrote:
Hi,
 
 
 
Can anyone give me some tips on how to make the queue selection box at the
top-right corner slightly wider (using rudder theme) in RT 4.2.1
 


create a file named:

local/static/css/my.css

with content:

#topactions .select-queue {
width: FIXME;
}
div#header h1 {
left: FIXME;
}


then edit etc/RT_SiteConfig.pm and add:

Set(@CSSFiles, qw/my.css/);


Adjusting left on div#header h1 is needed as the ticket subject is
truncated based on this.

-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


Re: [rt-users] Autoreply to new requestors

2014-01-15 Thread Kevin Falcone
On Fri, Jan 10, 2014 at 06:32:50PM +, Abraham Liebsch wrote:
 It appears to be running afterwards.  I've renamed the scripts, prepending
 100 to the reassignment scrip and 110 to the autoreply scrip, so that they
 are listed in the proper order, and confirmed in the apache log that the
 requestors are changed before the autoreply scrip is run.  Unless there is
 an order-of-execution nuance that escapes me, it appears that the requestor
 is replaced first.  I could be missing something, though, as there is
 another scrip that, according to the log, is executing between those two,
 despite not being listed between them.

The Autoreply scrip is most likely executing on a cached copy of the
ticket (it doesn't reload the ticket between scrip executions).

Probably the simplest thing to do is to make the Autoreply scrip
execute in the Transaction Batch stage.  Since it's an On Create
action, any problems should be minimal.

-kevin

 -Original Message-
 From: rt-users-boun...@lists.bestpractical.com
 [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Glenn Sieb
 Sent: Friday, January 10, 2014 11:42 AM
 To: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] Autoreply to new requestors
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 1/10/14, 12:17 PM, Abraham Liebsch wrote:
  I have a scrip that, when a ticket is created by email by under 
  certain conditions, will delete the email sender as the requestor and 
  replace it with a different requestor (in order to permit creating 
  tickets on behalf of others).  I have confirmed this scrip works 
  properly, and that this scrip executes prior to the default scrip 
  which autoreplies to ticket creators. Yet, the autoreply is being sent 
  to the email sender and not to the new requestor.  Does anyone have a 
  suggestion to ensure the autoreply is sent to the newly-set requestor 
  and not the email sender?
 
 Is the Autoreply scrip before or after the replace-the-requestor scrip?


pgp_UzxqgyzzC.pgp
Description: PGP signature


Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Emmanuel Lacour
On Wed, Jan 15, 2014 at 04:54:38PM +0100, Emmanuel Lacour wrote:
 On Tue, Jan 14, 2014 at 03:36:09PM -0800, Wardrop wrote:
  Hi,
  
  I'm wondering how I would go about adding a stalled tickets column to the
  Quick Search display on the dashboard. I've done a Google, but a lot of the
  information seems to pertain to older versions of RT. I'm on RT 4.2.2.
  
  I've looked at ./share/html/Elements/Quicksearch expecting to find some
  clues, but alas, nothing. Can anyone point me in the right direction or just
  tell me how to it?
  
 
 here:
 
 share/html/Elements/QueueSummaryByStatus
 
 (@statuses)
 


AW, stalled is here in standard RT. Did you played with Lifecycles?

-- 
Easter-eggs  Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37-   Fax: +33 (0) 1 43 35 00 76
mailto:elac...@easter-eggs.com  -   http://www.easter-eggs.com


Re: [rt-users] RT4 - Howto customize the width of the queue selection box in the top-right corner - rudder theme

2014-01-15 Thread Kevin Falcone
On Mon, Jan 13, 2014 at 08:45:06AM +, Carl van Litsenborgh wrote:
Can anyone give me some tips on how to make the queue selection box at the 
 top-right corner
slightly wider (using rudder theme) in RT 4.2.1
 
Tried playing around with the topactions class in the CSS files, but no 
 luck.

You didn't show what you tried, you should always do that.
If you right click on the select in almost any modern browser, there
will be an 'Inspect Element' option which will tell you the class name
to use, you can then grep in share/static/css to see what we're
already doing.

It's easy to test in the Theme Editor using Try until you get it
right.  You need to set a width on .queue-select but likely also need
a !important.

-kevin


pgpYFexRjzHcf.pgp
Description: PGP signature


Re: [rt-users] REST mail-gateway using 100% cpu

2014-01-15 Thread Kevin Falcone
On Mon, Jan 13, 2014 at 05:55:26AM -0800, andriuss wrote:
 Hello,
 I got this process im my apache
 POST //REST/1.0/NoAuth/mail-gateway HTTP/1.1
 
 It hangs there until I kill it manualy, because it takes 100% of server cpu.
 Is the any way to fix it, cause I don't understand the reason why it behaves
 so.

You need to sync up your mail logs with these problems and capture the
email that is causing the issue.  It will be re-queued and tried again
when it fails to submit to RT, so it'll be somewhere in your queues
and your mail logs will allow you to find and inspect it to see what
is happening.

-kevin


pgpT4Syv4ChGi.pgp
Description: PGP signature


Re: [rt-users] Apache Threads hanging not gracefully exiting

2014-01-15 Thread Kevin Falcone
On Tue, Jan 14, 2014 at 01:43:59PM -0500, Nathan Baker wrote:
(gracefully finishing). Those threads will never exit unless I kill the 
 processes manually. My
guess would be that one of my customizations are causing this, but does 
 anyone have any tips
for how to find out what the problem is?

strace/dtruss?

- custom Scrip that uses Filesys::SmbClient to copy attachments to the 
 user's computer when
they Take the ticket

That sounds like the biggest suspect.

-kevin


pgpOldqFkB8r0.pgp
Description: PGP signature


Re: [rt-users] Server closed connection without sending any data back (500)

2014-01-15 Thread Kevin Falcone
On Wed, Jan 15, 2014 at 09:23:41AM -0500, Jeff Blaine wrote:
 If anyone has any ideas how I might go about making RT
 more informative about what is going on in this failure,
 I would love to hear them.

You showed an Internal Server Error

  500 Server closed connection without sending any data back

But didn't show the logs created by the server for this error.  Nobody
can help without logs of what happened on the server.

-kevin


pgpHI7O55yW6q.pgp
Description: PGP signature


Re: [rt-users] Question arround scrip and custom condition on comment

2014-01-15 Thread Kevin Falcone
On Mon, Jan 13, 2014 at 06:24:31PM +0100, Alexandre LEPREVOST wrote:
I'm wondering how to do something simple. I would like to call a script 
 not on comment but
after the comment insert in the database.

This is how Scrips work.  They happen after the transaction is created
(hence the Transaction Create stage).

But the script is called when I click on comment, how about after the 
 comment insert in the
database ? (with all the transaction done).

We check for applicable Scrips (by running the Conditions and the
Prepare of the Action) during display of Update.html because of the
boxes that tell you who will get email.  Your scrip action will not
actually be executed on display, but only after submission when the
transaction is created.

-kevin


pgpNcYs7EcQYd.pgp
Description: PGP signature


[rt-users] RES: RT4.2.1 + Fetchmail + Office365 - MDA returned nonzero status 75

2014-01-15 Thread Diego Andrade
Thank you. I have found that I was setting https:// address to the MDA I switch 
to http:// and it worked well! 

-Mensagem original-
De: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] Em nome de Kevin Falcone
Enviada em: quarta-feira, 15 de janeiro de 2014 14:05
Para: rt-users@lists.bestpractical.com
Assunto: Re: [rt-users] RT4.2.1 + Fetchmail + Office365 - MDA returned nonzero 
status 75

On Fri, Jan 10, 2014 at 07:53:57PM +, Diego Andrade wrote:
I recently changed of company and was asked to set a request system. Off 
 course I'm setting up
RT4. Problem is that in this new job they use Office365 as the Mail 
 Server. So I tryied
something new to me that is the use of the Fetchmail to retrieve from the 
 server and then
deliver to RT using the mail Gateway.
 
The problem is the MDA is returning code 75. I was looking in the history 
 of the mailing list
and other doccuments and this code is refered for several problems. None 
 of them seems to
relate with my config. May you please give a look at mail fetchmail config 
 and LOG to tell me
any ideia of what could be wrong? Thank you in advance!

You've shown fetchmail logs, but this message:

Jan 10 17:11:39 SRV-RT fetchmail[29469]: MDA returned nonzero 
 status 75

Is coming back from RT.  Go read the RT logs, most likely your apache logs.  On 
a 4.2 install, RT will tell you what logs you have enabled on the System 
Configuration page.

-kevin



Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Kevin Falcone
On Tue, Jan 14, 2014 at 03:36:09PM -0800, Wardrop wrote:
 I'm wondering how I would go about adding a stalled tickets column to the
 Quick Search display on the dashboard. I've done a Google, but a lot of the
 information seems to pertain to older versions of RT. I'm on RT 4.2.2.
 
 I've looked at ./share/html/Elements/Quicksearch expecting to find some
 clues, but alas, nothing. Can anyone point me in the right direction or just
 tell me how to it?

Quick Search displays all active and initial statuses as defined by
Lifecycles.  Stalled is an active status by default in RT and so
stalled shows up by default.  What modifications have you made?

-kevin


pgpeJw94pqgyl.pgp
Description: PGP signature


Re: [rt-users] Server closed connection without sending any data back (500)

2014-01-15 Thread Jeff Blaine
On 1/15/2014 11:22 AM, Kevin Falcone wrote:
 On Wed, Jan 15, 2014 at 09:23:41AM -0500, Jeff Blaine wrote:
 If anyone has any ideas how I might go about making RT
 more informative about what is going on in this failure,
 I would love to hear them.
 
 You showed an Internal Server Error
 
 500 Server closed connection without sending any data back
 
 But didn't show the logs created by the server for this error.  Nobody
 can help without logs of what happened on the server.

That's because there is no 500 error information logged to
/var/log/httpd/*log by Apache when I make this request
via the RT CLI tool using the settings previously shown
in .rtrc.

Honest. In fact, there is zero trace of the IP address
in all of the Apache logs, even using 'LogLevel debug'
for Apache.

I can request /sdfkdaslfdskldsfkla and see a 404 just fine
and all other normal info is in those logs. It's standard
Apache 2.x on RHEL 6.

Does the RT CLI tool *support* SSL/TLS 'server' settings?


Re: [rt-users] Server closed connection without sending any data back (500)

2014-01-15 Thread Jeff Blaine
Solved:

unset http_proxy
unset https_proxy

*sigh*

On 1/15/2014 3:08 PM, Jeff Blaine wrote:
 On 1/15/2014 11:22 AM, Kevin Falcone wrote:
 On Wed, Jan 15, 2014 at 09:23:41AM -0500, Jeff Blaine wrote:
 If anyone has any ideas how I might go about making RT
 more informative about what is going on in this failure,
 I would love to hear them.

 You showed an Internal Server Error

 500 Server closed connection without sending any data back

 But didn't show the logs created by the server for this error.  Nobody
 can help without logs of what happened on the server.
 
 That's because there is no 500 error information logged to
 /var/log/httpd/*log by Apache when I make this request
 via the RT CLI tool using the settings previously shown
 in .rtrc.
 
 Honest. In fact, there is zero trace of the IP address
 in all of the Apache logs, even using 'LogLevel debug'
 for Apache.
 
 I can request /sdfkdaslfdskldsfkla and see a 404 just fine
 and all other normal info is in those logs. It's standard
 Apache 2.x on RHEL 6.
 
 Does the RT CLI tool *support* SSL/TLS 'server' settings?
 
 


Re: [rt-users] Apache Threads hanging not gracefully exiting

2014-01-15 Thread Nathan Baker
I switched from mod_perl to mod_fcgid and along with the memory usage
decreasing by about 75%, the problem seems to have disappeared.  I'm not
sure if there is a problem with the code and mod_fcgid is just handling it
better, or what the deal is, but everything is working fine now.

Judging by the user reviews of mod_perl (
http://cpanratings.perl.org/dist/mod_perl) it seems like mod_perl should be
the less preferred option, and mod_fastcgi or mod_fcgid should be used if
possible.  Is this the general consensus?  If so, it might be helpful to
add that recommendation on
http://bestpractical.com/docs/rt/latest/web_deployment.html.

Thanks for your suggestions though Kevin, if I do see any further issues
I'll try using strace.

For anyone else that comes across this, here are some apache mod_perl
documents about debugging mod_perl applications, using strace and other
methods:
http://perl.apache.org/docs/1.0/guide/debug.html
http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html

-Nate



On Wed, Jan 15, 2014 at 11:21 AM, Kevin Falcone
falc...@bestpractical.comwrote:

 On Tue, Jan 14, 2014 at 01:43:59PM -0500, Nathan Baker wrote:
 (gracefully finishing). Those threads will never exit unless I kill
 the processes manually. My
 guess would be that one of my customizations are causing this, but
 does anyone have any tips
 for how to find out what the problem is?

 strace/dtruss?

 - custom Scrip that uses Filesys::SmbClient to copy attachments to
 the user's computer when
 they Take the ticket

 That sounds like the biggest suspect.

 -kevin



Re: [rt-users] REST mail-gateway using 100% cpu

2014-01-15 Thread andriuss
From:
=?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
 =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?=

This line, in the mail was the problem, RT somehow hang when parsing this in
I18N.pm. Any solution for this?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/REST-mail-gateway-using-100-cpu-tp56255p56305.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


Re: [rt-users] REST mail-gateway using 100% cpu

2014-01-15 Thread Kevin Falcone
On Wed, Jan 15, 2014 at 12:26:28PM -0800, andriuss wrote:
 From:
 =?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
  =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?=
 
 This line, in the mail was the problem, RT somehow hang when parsing this in
 I18N.pm. Any solution for this?

RT Version?

Also, send along your perl module version list from System
Configuration.

-kevin


pgpivGeQlS5mu.pgp
Description: PGP signature


Re: [rt-users] REST mail-gateway using 100% cpu

2014-01-15 Thread andriuss
RT 4.2.2

Apache2::CmdParms2.04/usr/lib/perl5/Apache2/CmdParms.pm
Apache2::Const   2.04/usr/lib/perl5/Apache2/Const.pm
Apache2::Directive   2.04/usr/lib/perl5/Apache2/Directive.pm
Apache2::Log 2.04/usr/lib/perl5/Apache2/Log.pm
Apache2::PerlSections2.00/usr/lib/perl5/Apache2/PerlSections.pm
Apache2::RequestIO   2.04/usr/lib/perl5/Apache2/RequestIO.pm
Apache2::RequestRec  2.04/usr/lib/perl5/Apache2/RequestRec.pm
Apache2::RequestUtil 2.04/usr/lib/perl5/Apache2/RequestUtil.pm
Apache2::Response2.04/usr/lib/perl5/Apache2/Response.pm
Apache2::ServerRec   2.04/usr/lib/perl5/Apache2/ServerRec.pm
Apache2::ServerUtil  2.04/usr/lib/perl5/Apache2/ServerUtil.pm
Apache::Session  1.91/usr/local/share/perl/5.10.1/Apache/Session.pm
Apache::Session::Generate::MD5   2.12   
/usr/local/share/perl/5.10.1/Apache/Session/Generate/MD5.pm
Apache::Session::Lock::MySQL 1.01   
/usr/local/share/perl/5.10.1/Apache/Session/Lock/MySQL.pm
Apache::Session::MySQL   1.01   
/usr/local/share/perl/5.10.1/Apache/Session/MySQL.pm
Apache::Session::Serialize::Storable 1.01   
/usr/local/share/perl/5.10.1/Apache/Session/Serialize/Storable.pm
Apache::Session::Store::DBI  1.02   
/usr/local/share/perl/5.10.1/Apache/Session/Store/DBI.pm
Apache::Session::Store::MySQL1.04   
/usr/local/share/perl/5.10.1/Apache/Session/Store/MySQL.pm
APR  0.009000/usr/lib/perl5/APR.pm
APR::Table   0.009000/usr/lib/perl5/APR/Table.pm
attributes   0.09/usr/share/perl/5.10/attributes.pm
AutoLoader   5.68/usr/share/perl/5.10/AutoLoader.pm
B1.22/usr/lib/perl/5.10/B.pm
base 2.14/usr/share/perl/5.10/base.pm
bytes1.03/usr/share/perl/5.10/bytes.pm
Cache::Simple::TimedExpiry   0.27   
/usr/local/share/perl/5.10.0/Cache/Simple/TimedExpiry.pm
capitalization   0.03/usr/local/share/perl/5.10.1/capitalization.pm
Carp 1.11/usr/share/perl/5.10/Carp.pm
CGI  3.43/usr/share/perl/5.10/CGI.pm
CGI::Cookie  1.29/usr/share/perl/5.10/CGI/Cookie.pm
CGI::Emulate::PSGI   0.15
/usr/local/share/perl/5.10.1/CGI/Emulate/PSGI.pm
CGI::PSGI0.15/usr/local/share/perl/5.10.1/CGI/PSGI.pm
CGI::Util1.5_01  /usr/share/perl/5.10/CGI/Util.pm
Class::Accessor  0.34/usr/local/share/perl/5.10.0/Class/Accessor.pm
Class::Accessor::Fast0.34   
/usr/local/share/perl/5.10.0/Class/Accessor/Fast.pm
Class::Container 0.12/usr/local/share/perl/5.10.0/Class/Container.pm
Class::Data::Inheritable 0.08   
/usr/local/share/perl/5.10.0/Class/Data/Inheritable.pm
Class::Inspector 1.25/usr/local/share/perl/5.10.0/Class/Inspector.pm
Class::Load  0.06/usr/local/share/perl/5.10.0/Class/Load.pm
Class::ReturnValue   0.55
/usr/local/share/perl/5.10.0/Class/ReturnValue.pm
Clone0.31/usr/local/lib/perl/5.10.0/Clone.pm
common::sense3.6 /usr/local/share/perl/5.10.1/common/sense.pm
constant 1.17/usr/share/perl/5.10/constant.pm
Convert::ASN10.22/usr/local/share/perl/5.10.0/Convert/ASN1.pm
Crypt::Eksblowfish   0.009   /usr/local/lib/perl/5.10.1/Crypt/Eksblowfish.pm
Crypt::Eksblowfish::Bcrypt   0.009  
/usr/local/lib/perl/5.10.1/Crypt/Eksblowfish/Bcrypt.pm
Crypt::Eksblowfish::Subkeyed 0.009  
/usr/local/lib/perl/5.10.1/Crypt/Eksblowfish/Subkeyed.pm
CSS::Squish  0.10/usr/local/share/perl/5.10.0/CSS/Squish.pm
Cwd  3.3 /usr/lib/perl/5.10/Cwd.pm
Data::Dumper 2.124   /usr/lib/perl/5.10/Data/Dumper.pm
Data::GUID   0.047   /usr/local/share/perl/5.10.1/Data/GUID.pm
Data::OptList0.108   /usr/local/share/perl/5.10.1/Data/OptList.pm
Data::UUID   1.219   /usr/local/lib/perl/5.10.1/Data/UUID.pm
Date::Format 2.24/usr/share/perl5/Date/Format.pm
Date::Parse  2.30/usr/share/perl5/Date/Parse.pm
DateTime 0.66/usr/local/lib/perl/5.10.0/DateTime.pm
DateTime::_Thawed0.66   
DateTime::Duration   0.66/usr/local/lib/perl/5.10.0/DateTime/Duration.pm
DateTime::Helpers0.66/usr/local/lib/perl/5.10.0/DateTime/Helpers.pm
DateTime::Infinite   0.66/usr/local/lib/perl/5.10.0/DateTime/Infinite.pm
DateTime::Infinite::Future   0.66   
DateTime::Infinite::Past 0.66   
DateTime::Locale 0.45/usr/local/share/perl/5.10.0/DateTime/Locale.pm
DateTime::TimeZone   1.28
/usr/local/share/perl/5.10.0/DateTime/TimeZone.pm
DateTime::TimeZone::Catalog  1.28   
/usr/local/share/perl/5.10.0/DateTime/TimeZone/Catalog.pm
DateTime::TimeZone::Floating 1.28   
/usr/local/share/perl/5.10.0/DateTime/TimeZone/Floating.pm
DateTime::TimeZone::Local1.28   
/usr/local/share/perl/5.10.0/DateTime/TimeZone/Local.pm
DateTime::TimeZone::OffsetOnly   1.28   
/usr/local/share/perl/5.10.0/DateTime/TimeZone/OffsetOnly.pm
DateTime::TimeZone::UTC  1.28   

[rt-users] Question

2014-01-15 Thread Bryon Baker
Hello All

I have a question.

What happen to the NDR message that come from a forwarded or replied to with an 
invalid email address?

I cannot find the NDR anywhere.  We are reling through an exchange server. On 
the Suse server I am using postfix to send the message off the Suse server.

Please keep in mind I am not a Linux guru when trying to explain this.

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bba...@copesan.commailto:cstep...@copesan.com
www.copesan.comhttp://www.copesan.com/
Servicing North America with Local Care



[rt-users] Postfix error: 500 No Host option provided

2014-01-15 Thread Mathew Snyder
I am currently testing a new RT installation. Currently I am able to send,
via telnet, email from the RT address r...@host.example.com to an internal
address (u...@example.com).

# telnet host.example.com 25
Trying 192.168.231.42...
Connected to host.example.com.
Escape character is '^]'.
220 host.example.com ESMTP Postfix
EHLO host.example.com
250-host.example.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: r...@host.example.com
250 2.1.0 Ok
RCPT TO: u...@example.com
250 2.1.5 Ok
DATA
354 End data with CRLF.CRLF
SUBJECT: Testing from r...@zen-rt.zeiders.com to pwi...@zeiders.com
Telnet session
.
250 2.0.0 Ok: queued as 95E3F80900
quit
221 2.0.0 Bye

Mail log generated:
Jan 15 17:06:26 zen-rt postfix/qmgr[6294]: 95E3F80900: from=
r...@host.example.com, size=449, nrcpt=1 (queue active)
Jan 15 17:06:26 zen-rt postfix/smtp[6388]: 95E3F80900: to=
pwi...@example.com, relay=mail1.example.com[192.168.231.10]:25, delay=44,
delays=44/0/0.01/0.26, dsn=2.6.0, status=sent (250 2.6.0 
20140115220553.95e3f80...@host.example.com Queued mail for delivery)
Jan 15 17:06:26 zen-rt postfix/qmgr[6294]: 95E3F80900: removed


Sending from u...@example.com into the RT server, though results in the
following:

# telnet host.example.com 25
Trying 192.168.231.42...
Connected to host.example.com.
Escape character is '^]'.
220 host.example.com ESMTP Postfix
EHLO host.example.com
250-host.example.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: u...@example.com
250 2.1.0 Ok
RCPT TO: r...@host.example.com
250 2.1.5 Ok
DATA
354 End data with CRLF.CRLF
SUBJECT: Testing from u...@example.com to r...@host.example.com
Telnet session
.
250 2.0.0 Ok: queued as 314F2808AD
quit
221 2.0.0 Bye

Mail log generated:
Jan 15 17:09:14 zen-rt postfix/qmgr[6294]: 314F2808AD: from=
u...@example.com, size=447, nrcpt=1 (queue active)
Jan 15 17:09:15 zen-rt postfix/local[6409]: 314F2808AD: to=
r...@host.example.com, relay=local, delay=54, delays=53/0.01/0/0.11,
dsn=4.3.0, status=deferred (temporary failure. Command output: HTTP request
failed: 500 No Host option provided. Your webserver logs may have more
information or there may be a network problem. )
Jan 15 17:09:16 zen-rt postfix/smtpd[6375]: disconnect from host.example.com
[192.168.231.42]

I have searched around online and have not seen anything that even
references this problem. If anyone can provide any insight I will be very
appreciative.

-Mathew

When you do things right, people won't be sure you've done anything at
all. - God; Futurama

We'll get along much better once you accept that you're wrong and neither
am I. - Me


Re: [rt-users] Question

2014-01-15 Thread Bryon Baker
Thanks for the information

but where can I download the program rtbouncehandler from?

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bba...@copesan.commailto:cstep...@copesan.com
www.copesan.comhttp://www.copesan.com/
Servicing North America with Local Care

From: Landon Stewart [mailto:lstew...@iweb.com]
Sent: Wednesday, January 15, 2014 3:34 PM
To: Bryon Baker
Subject: Re: [rt-users] Question

On 15 January 2014 13:13, Bryon Baker 
bba...@copesan.commailto:bba...@copesan.com wrote:
Hello All

I have a question.

What happen to the NDR message that come from a forwarded or replied to with an 
invalid email address?

I cannot find the NDR anywhere.  We are reling through an exchange server. On 
the Suse server I am using postfix to send the message off the Suse server.

Please keep in mind I am not a Linux guru when trying to explain this.

This thread might answer your question if you are talking about emails bouncing 
that were sent from RT

http://www.gossamer-threads.com/lists/rt/users/91551

On a side note - We have SendmailArguments in RT's configuration to include 
'-fbounce@ourdomainname.comhttp://ourdomainname.com' and then we have a 
queue for bounces.  I wrote a module that looks at the bounces and attributes 
them to the original by ticket # and posts a comment on the original alerting 
the owner that the email bounced and then marks the bounce email ticket 
resolved.

--
Landon Stewart :: lstew...@iweb.commailto:lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932




[rt-users] RT farming management?

2014-01-15 Thread Marc Chantreux
hello everyone, 

first, and as it is my first post, let me introduce myself:

I'm working as computer engineer at Strasbourg University (fr) where i'm
in charge of RT, sympa and Sogo. I'm a old perl monger (since '97) and
the author of few cpan modules (https://metacpan.org/author/MARCC), i
also am a former Koha ILS contributor and patched occasionally other oss
softwares as well as CPAN modules and tools (like dh-make-perl). 

Strasbourg university needs to provide more than one RTs to its large
community so we plan to use (and maybe write) a farm manager to ease the
process of deploying and updating lot of RT instances.

an instance would be a rt fcgid server (one per instance) started with fine
environment variables (CONFIG, local::lib, ...) behind nginx as a
dispatcher.

this tool must be capable to

* be installed and setup easlisy from CPAN
* install multiple versions and patches of RT codebase (running cpanm)
* easily setup, start, stop, and show the status rt instances
* easily archive an instance
* easily share extension to many instances

this tool must be capable to

the configuration of every instance could be tested (can access to DB,
local::lib is fully populated, ...) and easily backuped.

everything must be done via cli (optionnally, a little web app to
control the whole thing).

I don't see another simple solution (please don't tell me about the
configuration management systems) but maybe i'm wrong so any feedback
(or existing code, experiments,...) is welcomed.

If there is none, i'll start my project by next week.

regards
-- 
Marc Chantreux
Université de Strasbourg, Direction Informatique
14 Rue René Descartes,
67084  STRASBOURG CEDEX
☎: 03.68.85.57.40
http://unistra.fr
Don't believe everything you read on the Internet
-- Abraham Lincoln


Re: [rt-users] Question

2014-01-15 Thread Landon Stewart
I don’t know if that’s even still valid.  I did see this:
http://requesttracker.wikia.com/wiki/RtBounceHandler

We aren’t using that though.  We just handle the straight bounce messages
in their own queue and then process the message content itself to find the
original ticket #.  Unless you have a very high volume of tickets it might
not be worth it to do that but instead set the “-f” for sendmail to
something someone actually receives so they can intervene if a bounce comes
back.


On 15 January 2014 14:35, Bryon Baker bba...@copesan.com wrote:

  Thanks for the information



 but where can I download the program rtbouncehandler from?



 Bryon Baker

 Network Operations Manager

 *Copesan** - Specialists in Pest Solutions*

 800-267-3726  •  262-783-6261 ext. 2296

 bba...@copesan.com cstep...@copesan.com

 www.copesan.com

 *Servicing North America with Local Care*



 *From:* Landon Stewart [mailto:lstew...@iweb.com]
 *Sent:* Wednesday, January 15, 2014 3:34 PM
 *To:* Bryon Baker
 *Subject:* Re: [rt-users] Question



 On 15 January 2014 13:13, Bryon Baker bba...@copesan.com wrote:

  Hello All



 I have a question.



 What happen to the NDR message that come from a forwarded or replied to
 with an invalid email address?



 I cannot find the NDR anywhere.  We are reling through an exchange server.
 On the Suse server I am using postfix to send the message off the Suse
 server.



 Please keep in mind I am not a Linux guru when trying to explain this.



 This thread might answer your question if you are talking about emails
 bouncing that were sent from RT



 http://www.gossamer-threads.com/lists/rt/users/91551



 On a side note - We have “SendmailArguments” in RT’s configuration to
 include ‘-fbounce@ourdomainname.com’ and then we have a queue for
 bounces.  I wrote a module that looks at the bounces and attributes them to
 the original by ticket # and posts a comment on the original alerting the
 owner that the email bounced and then marks the bounce email ticket
 resolved.



 --

 Landon Stewart :: lstew...@iweb.com

 Lead Specialist, Abuse and Security Management
 Spécialiste principal, gestion des abus et sécurité
 http://iweb.com :: +1 (888) 909-4932








-- 
Landon Stewart :: lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932


Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Wardrop
Ok,

Within share/html/Elements/Quicksearch there's a toggle for switching
between QueueSummaryByLifecycle and QueueSummaryByStatus. I changed
$SplitByLifecycle to 0  and indeed, stalled now displays in Quick Search on
the dashboard, but I still want to see Resolved tickets. So I want 4
columns: new, open, stalled and resolved. I assume I need to change the
QueueSummaryByStatus view to show these 4 columns, but it's not
immediately obvious how this view chooses which statuses to display.

Cheers,
Tom



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Show-Stalled-Tickets-in-Quick-Search-tp56276p56313.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


Re: [rt-users] Show Stalled Tickets in Quick Search

2014-01-15 Thread Wardrop
I found a `@statuses` argument at the bottom of QueueSummaryByStatus. I
copied QueueSummaryByStatus into RT's local directory and populated the
@statuses variable/argument with `('new', 'open', 'stalled', 'resolved')`
which works... but only every second page load. If I remove the logic that
checks whether the `@statuses` argument is set, it works on every page load.
Clearly there's something weird with RT templates. I've noticed this
weirdness before.

Anyone have any clues as to what's happening here?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Show-Stalled-Tickets-in-Quick-Search-tp56276p56314.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.