Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

2012-03-15 Thread Jourdan Perla
Using 3.8 since there are no RT4 packages for Ubuntu 10.4 LTS. Attempts to 
manually install RT4 on Lucid would result in a whole 'nother ticket. Plan was 
to run 3.8 for now, then migrate to 4 on 12 this winter once things had settled 
down here.

No https redirects going on. I am using CAS Authentication (via mod_auth_cas) 
for the main site.


Apache httpd.conf
LoadFile /usr/lib/libcurl.so
LoadModule auth_cas_module /usr/lib/apache2/modules/mod_auth_cas.so
IfModule mod_auth_cas.c
CASLoginURL https://cas.myserver.com/cas/login
CASValidateURL https://cas.myserver.com/cas/serviceValidate
CASCertificatePath /etc/ssl/certs/my_cas_bundle.pem
CASCookiePath /var/cache/apache2/mod_auth_cas/
CASSSOEnabled On
CASValidateServer On
CASDebug Off
/IfModule

Directory /usr/share/request-tracker3.8/html/
 IfModule mod_auth_cas.c
   AuthType CAS
   AuthName  CAS
 /IfModule
   Require valid-user
/Directory
Directory /usr/share/request-tracker3.8/html/NoAuth/*
   AllowOverRide None
   Satisfy Any
/Directory
Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*
   AllowOverRide None
   Allow from all
   Satisfy Any
/Directory
Location /NoAuth/*
   Order allow,deny
   Allow from all
   Satisfy Any
/Location
Location /REST/1.0/NoAuth/*
   Order allow,deny
   Allow from all
   Satisfy Any
/Location
LocationMatch /NoAuth
Satisfy Any
Allow from all
/LocationMatch

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Wednesday, March 14, 2012 4:49 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

On Wed, Mar 14, 2012 at 09:43:47PM +, Jourdan Perla wrote:
 
 An Error Occurred
 =
 
 302 Found
 
 /usr/bin/rt-mailgate: undefined server error

This is Apache issuing a 302 before it gets to RT

 Grep all my logs for what happens at the same time and
 apache2/access.log:
 rt.myserver.com - - [14/Mar/2012:14:05:33 -0700] POST 
 /rt/REST/1.0/NoAuth/mail-gateway HTTP/1.1 302 715 - libwww-perl/6.04
 
 I've got the following in my httpd.conf
 
 Directory /usr/share/request-tracker3.8/html/NoAuth/*
AllowOverRide None
Satisfy Any
 /Directory
 Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*
AllowOverRide None
Allow from all
Satisfy Any
 /Directory
 Location /rt/NoAuth/
Order allow,deny
Allow from all
Satisfy Any
 /Location
 Location /rt/REST/1.0/NoAuth/
Order allow,deny
Allow from all
Satisfy Any
 /Location

What else do you have in apache.  Are you redirecting from http to https?  
Since you're using the debian packages, what else is going on there.  Also, 
this is where I feel compelled to ask why you're using
3.8 rather than 4.0 for a new install.

-kevin


Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

2012-03-15 Thread Tim Cutts

On 15 Mar 2012, at 17:44, Jourdan Perla wrote:

 Using 3.8 since there are no RT4 packages for Ubuntu 10.4 LTS. Attempts to 
 manually install RT4 on Lucid would result in a whole 'nother ticket.

I'm running 4.0.5 on Lucid.  Wasn't really a problem; I just don't use the 
packaged version and let 'make fixdeps' do its thing.  As you say though, 
waiting for 12.04 to come out is probably sensible, since Dominic *has* 
packaged rt4 more recently.

At one point I went to the effort of using dh-make-perl to update perl module 
packages to versions that RT needed, but for my 4.0.5 deployment I just thought 
sod it and took the fixdeps route.

The really hard bit actually was getting SphinxSE to work with the 
lucid-supplied MySQL server. *that* was painful, and I think if I were doing it 
again, I wouldn't use the packaged MySQL server either.  Actually, if I were 
really starting again I wouldn't use MySQL at all.

It's the Siren of databases, seducing you in with its lovely songs and apparent 
ease of use, and then smashing you to pieces on the rocks. :-/

Tim

--
 The Wellcome Trust Sanger Institute is operated by Genome Research
 Limited, a charity registered in England with number 1021457 and a
 company registered in England with number 2742969, whose registered
 office is 215 Euston Road, London, NW1 2BE.


Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

2012-03-14 Thread Jourdan Perla

 Please - keep list replies on the list.

Sorry, will do.

Thought I had this licked, but now as I build a *clean* production image, I'm 
running into the same error again..

$ cat mbox | /usr/bin/rt-mailgate --queue general --action correspond --url 
http://rt.myserver.com /rt -debug
/usr/bin/rt-mailgate: temp file is '/tmp/Dm_pceG62x'
/usr/bin/rt-mailgate: connecting to 
http://rt.myserver.com/rt/REST/1.0/NoAuth/mail-gateway
An Error Occurred
=

302 Found

/usr/bin/rt-mailgate: undefined server error

Grep all my logs for what happens at the same time and
apache2/access.log:
rt.myserver.com - - [14/Mar/2012:14:05:33 -0700] POST 
/rt/REST/1.0/NoAuth/mail-gateway HTTP/1.1 302 715 - libwww-perl/6.04
mail.info:
Mar 14 14:05:33 RT-PROD-SVR postfix/qmgr[4393]: 17286120B94: 
from=mym...@mycompany.com, size=7604, nrcpt=1 (queue active)
mail.info:
Mar 14 14:05:33 RT-PROD-SVR postfix/local[29538]: 88DCB1207CF: 
to=qu...@rt.myserver.com, relay=local, delay=81689, delays=81689/0.01/0/0.31, 
dsn=4.3.0, status=deferred (temporary failure. Command output: 
/usr/bin/rt-mailgate: temp file is '/tmp/3JQL31W2oY' /usr/bin/rt-mailgate: 
connecting to http://rt.myserver.com/REST/1.0/NoAuth/mail-gateway An Error 
Occurred =  302 Found  /usr/bin/rt-mailgate: undefined server 
error )

rt3.log shows nothing but:
[Wed Mar 14 15:56:08 2012] [error]: gpg: error reading key: secret key not 
available (/usr/share/request-tracker3.8/lib/RT/Crypt/GnuPG.pm:2078)
Which is from earlier.

/etc/aliases:
# See man 5 aliases for format
postmaster:myroot
help:  |/usr/bin/rt-mailgate --queue general --action correspond --url 
http://rt.myserver.com/rt -debug
comment: |/usr/bin/rt-mailgate --queue general --action comment --url 
http://rt.myserver.com/rt -debug


I've got the following in my httpd.conf

Directory /usr/share/request-tracker3.8/html/NoAuth/*
   AllowOverRide None
   Satisfy Any
/Directory
Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*
   AllowOverRide None
   Allow from all
   Satisfy Any
/Directory
Location /rt/NoAuth/
   Order allow,deny
   Allow from all
   Satisfy Any
/Location
Location /rt/REST/1.0/NoAuth/
   Order allow,deny
   Allow from all
   Satisfy Any
/Location

Logging options in RT_SiteConfig.d
## Logging Options
# From lowest to highest priority, the levels are:
#  debug info notice warning error critical alert emergency
Set($LogToSyslog, 'info');
Set($LogToScreen, 'warning');
# log to /var/log/rt3.log
Set($LogToFile, 'debug');
Set($LogDir, '/var/log');
Set($LogToFileNamed , rt3.log);


On Fri, Feb 24, 2012 at 10:24:52PM +, Jourdan Perla wrote:
 Fixed it. I was missing an Auth exclusion for the /REST/1.0/NoAuth 
 directory
 
 As for the RT logs, can't find them. And can't find out where they're 
 configured.

Search in RT_Config.pm for the various Log config options and check their 
documentation.  Then see what you have in your RT_SiteConfig.pm

-kevin

 
 On 2/24/12 2:15 PM, Kevin Falcone falc...@bestpractical.com wrote:
 
 On Fri, Feb 24, 2012 at 08:54:00PM +, Jourdan Perla wrote:
 Install of RT3.8 on Ubuntu 10.4 LTS.
 I'm getting that pesky 302 Found error as I'm trying to push 
 mail into my queues using
 rt-mailqueue.
 I've done the usual Googling and wiki hunts, and I've run out of 
 options.
 - Aliases are working fine, it's a rt-mailgate error.
 - Plack is up to date (0.9985).
 - There's no extra '/'. It's finding rt-mailgate fine.
 - Not configured for SSL. That's on my to-do list, and if I need 
 to bump that up, I will.
 Command : /usr/bin/rt-mailgate --queue myqueue --action 
 correspond --url
 http://myserver.com/rt -debug  test.msg
 Output:
 /usr/bin/rt-mailgate: temp file is '/tmp/TykSIIvN17'
 /usr/bin/rt-mailgate: connecting to 
 http://myserver.com/rt/REST/1.0/NoAuth/mail-gateway
 An Error Occurred
 =
 302 Found
 /usr/bin/rt-mailgate: undefined server error
 Thoughts?
 
 What's in the RT logs.
 
 What's your test.msg.
 
 Also, Plack is only used in RT4
 
 -kevin
 
 RT Training Sessions 
 (http://bestpractical.com/services/training.html)
 * Boston — March 5  6, 2012
 


Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

2012-03-14 Thread Kevin Falcone
On Wed, Mar 14, 2012 at 09:43:47PM +, Jourdan Perla wrote:
 
 An Error Occurred
 =
 
 302 Found
 
 /usr/bin/rt-mailgate: undefined server error

This is Apache issuing a 302 before it gets to RT

 Grep all my logs for what happens at the same time and
 apache2/access.log:
 rt.myserver.com - - [14/Mar/2012:14:05:33 -0700] POST 
 /rt/REST/1.0/NoAuth/mail-gateway HTTP/1.1 302 715 - libwww-perl/6.04
 
 I've got the following in my httpd.conf
 
 Directory /usr/share/request-tracker3.8/html/NoAuth/*
AllowOverRide None
Satisfy Any
 /Directory
 Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*
AllowOverRide None
Allow from all
Satisfy Any
 /Directory
 Location /rt/NoAuth/
Order allow,deny
Allow from all
Satisfy Any
 /Location
 Location /rt/REST/1.0/NoAuth/
Order allow,deny
Allow from all
Satisfy Any
 /Location

What else do you have in apache.  Are you redirecting from http to
https?  Since you're using the debian packages, what else is going on
there.  Also, this is where I feel compelled to ask why you're using
3.8 rather than 4.0 for a new install.

-kevin


pgp3svR3MHFCf.pgp
Description: PGP signature


Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

2012-03-02 Thread Kevin Falcone
Please - keep list replies on the list.

On Fri, Feb 24, 2012 at 10:24:52PM +, Jourdan Perla wrote:
 Fixed it. I was missing an Auth exclusion for the /REST/1.0/NoAuth
 directory 
 
 As for the RT logs, can't find them. And can't find out where they're
 configured.

Search in RT_Config.pm for the various Log config options and check
their documentation.  Then see what you have in your RT_SiteConfig.pm

-kevin

 
 On 2/24/12 2:15 PM, Kevin Falcone falc...@bestpractical.com wrote:
 
 On Fri, Feb 24, 2012 at 08:54:00PM +, Jourdan Perla wrote:
 Install of RT3.8 on Ubuntu 10.4 LTS.
 I'm getting that pesky 302 Found error as I'm trying to push mail
 into my queues using
 rt-mailqueue.
 I've done the usual Googling and wiki hunts, and I've run out of
 options.
 - Aliases are working fine, it's a rt-mailgate error.
 - Plack is up to date (0.9985).
 - There's no extra '/'. It's finding rt-mailgate fine.
 - Not configured for SSL. That's on my to-do list, and if I need to
 bump that up, I will.
 Command : /usr/bin/rt-mailgate --queue myqueue --action correspond
 --url
 http://myserver.com/rt -debug  test.msg
 Output:
 /usr/bin/rt-mailgate: temp file is '/tmp/TykSIIvN17'
 /usr/bin/rt-mailgate: connecting to
 http://myserver.com/rt/REST/1.0/NoAuth/mail-gateway
 An Error Occurred
 =
 302 Found
 /usr/bin/rt-mailgate: undefined server error
 Thoughts?
 
 What's in the RT logs.
 
 What's your test.msg.
 
 Also, Plack is only used in RT4
 
 -kevin
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston — March 5  6, 2012
 


pgp6lmZa2VEc3.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

[rt-users] rt-mailgate 302 Error. No, not Plack.

2012-02-24 Thread Jourdan Perla
Install of RT3.8 on Ubuntu 10.4 LTS.

I'm getting that pesky 302 Found error as I'm trying to push mail into my 
queues using rt-mailqueue.

I've done the usual Googling and wiki hunts, and I've run out of options.
- Aliases are working fine, it's a rt-mailgate error.
- Plack is up to date (0.9985).
- There's no extra '/'. It's finding rt-mailgate fine.
- Not configured for SSL. That's on my to-do list, and if I need to bump that 
up, I will.

Command : /usr/bin/rt-mailgate --queue myqueue --action correspond --url 
http://myserver.com/rt -debug  test.msg
Output:
/usr/bin/rt-mailgate: temp file is '/tmp/TykSIIvN17'
/usr/bin/rt-mailgate: connecting to 
http://myserver.com/rt/REST/1.0/NoAuth/mail-gateway
An Error Occurred
=

302 Found

/usr/bin/rt-mailgate: undefined server error

Thoughts?

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

2012-02-24 Thread Kevin Falcone
On Fri, Feb 24, 2012 at 08:54:00PM +, Jourdan Perla wrote:
Install of RT3.8 on Ubuntu 10.4 LTS.
I'm getting that pesky 302 Found error as I'm trying to push mail into 
 my queues using
rt-mailqueue.
I've done the usual Googling and wiki hunts, and I've run out of options.
- Aliases are working fine, it's a rt-mailgate error.
- Plack is up to date (0.9985).
- There's no extra '/'. It's finding rt-mailgate fine.
- Not configured for SSL. That's on my to-do list, and if I need to bump 
 that up, I will.
Command : /usr/bin/rt-mailgate --queue myqueue --action correspond --url
http://myserver.com/rt -debug  test.msg
Output:
/usr/bin/rt-mailgate: temp file is '/tmp/TykSIIvN17'
/usr/bin/rt-mailgate: connecting to 
 http://myserver.com/rt/REST/1.0/NoAuth/mail-gateway
An Error Occurred
=
302 Found
/usr/bin/rt-mailgate: undefined server error
Thoughts?

What's in the RT logs.

What's your test.msg.

Also, Plack is only used in RT4

-kevin


pgpSqpmOCG7a2.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012