Re: [rt-users] Can't locate object method "host"

2014-08-14 Thread Jeff Blaine


On 8/13/2014 8:33 PM, Alex Peters wrote:
> What's your WebURL config setting as reported by RT's System
> Configuration page?
> 
> It looks like that might be malformed.


WebBaseURL  'https://alms2.foo.com'
core config
WebDefaultStylesheet'rudder'
core config
WebDomain   'alms2.foo.com'
site config
WebFlushDbCacheEveryRequest 1
core config
WebHttpOnlyCookies  1
core config
WebImagesURL'/static/images/'
core config
WebNoAuthRegex  qr/^ (?:\/+NoAuth\/ | \/+REST\/\d+\.\d+\/NoAuth\/) /x
core config
WebPath ''
core config
WebPort '443'
site config
WebRemoteUserContinuous 1
core config
WebSecureCookies0
core config
WebSessionProperties{}
core config
WebURL  'https://alms2.foo.com/'
core config


> On 14/08/2014 10:06 am, "Jeff Blaine"  > wrote:
> 
> On 8/13/2014 9:24 AM, Kevin Falcone wrote:
> > On Tue, Aug 12, 2014 at 12:32:18PM -0400, Jeff Blaine wrote:
> >> I keep getting the following errors when using the web UI. Here's one
> >> case just now where I logged in as root at https://alms2.foo.com/ and
> >> was then immediately thrown an error:
> >>
> >> [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login
> for root
> >> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
> >> [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
> >> method "host" via package "URI::_foreign" at
> >> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
> >>
> >> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
> >>
> >> Previously, Kevin Falcone had said:
> >>
> >> "This is RT trying to issue the redirect after login, what
> URL did
> >> you use to access RT and what was the next parameter."
> >>
> >> I had replied:
> >>
> >> I'm not sure what you mean by "what was the next parameter".
> >
> > Look at the code that calls Redirect (which is where your error comes
> > from).
> >
> >
> 
> https://github.com/bestpractical/rt-authen-externalauth/blob/master/html/Elements/DoAuth#L19
> >
> > What's $next for your user that errors out.
> >
> > You should also always turn on stacktraces when debugging something
> > like this.
> >
> > -kevin
> 
> Thanks for the replies, Kevin and Alex P.
> 
> The installed URI version is 1.61.
> 
> Here's a login and the error it causes with stacktraces on.
> 
> Aug 13 19:58:31 alms2 RT: [27927] Successful login for root from
> xxx.xx.0.231#012Trace begun at /opt/rt4/sbin
> /../lib/RT.pm line
> 298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)',
> 'Successful login for root from xxx.xx.0.231') called at
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 
> 816#012RT::Interface::Web::AttemptPasswordAuthentication('HASH(0x7485080)')
> called at /opt/rt4/share/html/NoAuth/Login.html line
> 49#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
> 'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
> /usr/local/share/perl5/HTML/Mason/Component.pm line
> 
> 138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x759be50)',
> 'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
> 'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1305#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
> 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
> 'root') called at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 600#012RT::Interface::Web::MaybeShowNoAuthPage('HASH(0x75fa250)') called
> at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 315#012RT::Interface::Web::HandleRequest('HASH(0x75fa250)') called at
> /opt/rt4/share/html/autohandler line
> 53#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
> 'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
> /usr/local/share/perl5/HTML/Mason/Component.pm line
> 
> 138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x75d6f68)',
> 'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
> 'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1300#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
> 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
> 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm line
> 484#012eval {...} at /usr/local/share/perl5/HT
> 
> Aug 13 19:58:31 alms2 RT: [27927] Can't locate object method

Re: [rt-users] Can't locate object method "host"

2014-08-13 Thread Alex Peters
What's your WebURL config setting as reported by RT's System Configuration
page?

It looks like that might be malformed.
On 14/08/2014 10:06 am, "Jeff Blaine"  wrote:

> On 8/13/2014 9:24 AM, Kevin Falcone wrote:
> > On Tue, Aug 12, 2014 at 12:32:18PM -0400, Jeff Blaine wrote:
> >> I keep getting the following errors when using the web UI. Here's one
> >> case just now where I logged in as root at https://alms2.foo.com/ and
> >> was then immediately thrown an error:
> >>
> >> [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
> >> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
> >> [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
> >> method "host" via package "URI::_foreign" at
> >> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
> >>
> >> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
> >>
> >> Previously, Kevin Falcone had said:
> >>
> >> "This is RT trying to issue the redirect after login, what URL did
> >> you use to access RT and what was the next parameter."
> >>
> >> I had replied:
> >>
> >> I'm not sure what you mean by "what was the next parameter".
> >
> > Look at the code that calls Redirect (which is where your error comes
> > from).
> >
> >
> https://github.com/bestpractical/rt-authen-externalauth/blob/master/html/Elements/DoAuth#L19
> >
> > What's $next for your user that errors out.
> >
> > You should also always turn on stacktraces when debugging something
> > like this.
> >
> > -kevin
>
> Thanks for the replies, Kevin and Alex P.
>
> The installed URI version is 1.61.
>
> Here's a login and the error it causes with stacktraces on.
>
> Aug 13 19:58:31 alms2 RT: [27927] Successful login for root from
> xxx.xx.0.231#012Trace begun at /opt/rt4/sbin
> /../lib/RT.pm line
> 298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)',
> 'Successful login for root from xxx.xx.0.231') called at
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 816#012RT::Interface::Web::AttemptPasswordAuthentication('HASH(0x7485080)')
> called at /opt/rt4/share/html/NoAuth/Login.html line
> 49#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
> 'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
> /usr/local/share/perl5/HTML/Mason/Component.pm line
>
> 138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x759be50)',
> 'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
> 'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1305#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
> 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
> 'root') called at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 600#012RT::Interface::Web::MaybeShowNoAuthPage('HASH(0x75fa250)') called
> at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 315#012RT::Interface::Web::HandleRequest('HASH(0x75fa250)') called at
> /opt/rt4/share/html/autohandler line
> 53#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
> 'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
> /usr/local/share/perl5/HTML/Mason/Component.pm line
>
> 138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x75d6f68)',
> 'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
> 'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1300#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
> line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
> 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
> 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm line
> 484#012eval {...} at /usr/local/share/perl5/HT
>
> Aug 13 19:58:31 alms2 RT: [27927] Can't locate object method "host" via
> package "URI::_foreign" at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 935.#012#012Stack:#012
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:935]#012
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:830]#012
> [/opt/rt4/share/html/NoAuth/Login.html:49]#012
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:600]#012
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:315]#012
> [/opt/rt4/share/html/autohandler:53]#012Trace begun at
> /opt/rt4/sbin/../lib/RT.pm line
> 298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)', 'Can\'t
> locate object method "host" via package "URI::_foreign" at
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.^J^JStack:^J
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:935]^J
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:830]^J
> [/opt/rt4/share/html/NoAuth/Login.html:49]^J
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:600]^J
> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:315]^J
> [/opt/rt4/share/html/autohandler:53]^J') called at
> /opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm line
>
> 209#012HTML::Mason::Exception::as_rt_error('HTML::Mason::Exceptio

Re: [rt-users] Can't locate object method "host"

2014-08-13 Thread Alex Vandiver
On 08/13/2014 08:06 PM, Jeff Blaine wrote:
> Aug 13 19:58:31 alms2 RT: [27927] Can't locate object method "host" via
> package "URI::_foreign" at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
> 935.

Please show the value of $WebDomain and $WebPort; if you've set them
explicitly, please also show the values for $WebBaseURL / $WebURL.
 - Alex
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


Re: [rt-users] Can't locate object method "host"

2014-08-13 Thread Jeff Blaine
On 8/13/2014 9:24 AM, Kevin Falcone wrote:
> On Tue, Aug 12, 2014 at 12:32:18PM -0400, Jeff Blaine wrote:
>> I keep getting the following errors when using the web UI. Here's one
>> case just now where I logged in as root at https://alms2.foo.com/ and
>> was then immediately thrown an error:
>>
>> [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
>> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
>> [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
>> method "host" via package "URI::_foreign" at
>> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
>>
>> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
>>
>> Previously, Kevin Falcone had said:
>>
>> "This is RT trying to issue the redirect after login, what URL did
>> you use to access RT and what was the next parameter."
>>
>> I had replied:
>>
>> I'm not sure what you mean by "what was the next parameter".
> 
> Look at the code that calls Redirect (which is where your error comes
> from).
> 
> https://github.com/bestpractical/rt-authen-externalauth/blob/master/html/Elements/DoAuth#L19
> 
> What's $next for your user that errors out.
> 
> You should also always turn on stacktraces when debugging something
> like this.
> 
> -kevin

Thanks for the replies, Kevin and Alex P.

The installed URI version is 1.61.

Here's a login and the error it causes with stacktraces on.

Aug 13 19:58:31 alms2 RT: [27927] Successful login for root from
xxx.xx.0.231#012Trace begun at /opt/rt4/sbin
/../lib/RT.pm line
298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)',
'Successful login for root from xxx.xx.0.231') called at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line
816#012RT::Interface::Web::AttemptPasswordAuthentication('HASH(0x7485080)')
called at /opt/rt4/share/html/NoAuth/Login.html line
49#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
/usr/local/share/perl5/HTML/Mason/Component.pm line
138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x759be50)',
'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1305#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
'root') called at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
600#012RT::Interface::Web::MaybeShowNoAuthPage('HASH(0x75fa250)') called
at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
315#012RT::Interface::Web::HandleRequest('HASH(0x75fa250)') called at
/opt/rt4/share/html/autohandler line
53#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
/usr/local/share/perl5/HTML/Mason/Component.pm line
138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x75d6f68)',
'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1300#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm line
484#012eval {...} at /usr/local/share/perl5/HT

Aug 13 19:58:31 alms2 RT: [27927] Can't locate object method "host" via
package "URI::_foreign" at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
935.#012#012Stack:#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:935]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:830]#012
[/opt/rt4/share/html/NoAuth/Login.html:49]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:600]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:315]#012
[/opt/rt4/share/html/autohandler:53]#012Trace begun at
/opt/rt4/sbin/../lib/RT.pm line
298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)', 'Can\'t
locate object method "host" via package "URI::_foreign" at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.^J^JStack:^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:935]^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:830]^J
[/opt/rt4/share/html/NoAuth/Login.html:49]^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:600]^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:315]^J
[/opt/rt4/share/html/autohandler:53]^J') called at
/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm line
209#012HTML::Mason::Exception::as_rt_error('HTML::Mason::Exception=HASH(0x78f6ee8)')
called at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line
282#012HTML::Mason::Exception::as_string('HTML::Mason::Exception=HASH(0x78f6ee8)',
undef, '') called at /usr/local/share/perl5/HTML/Mason/Request.pm line
570#012HTML::Mason::Request::_handle_error('RT::Interface::Web::Request=HASH(0x73a54b8)',
'HTML::Mason::Exception=HASH(0x

Re: [rt-users] Can't locate object method "host"

2014-08-13 Thread Kevin Falcone
On Tue, Aug 12, 2014 at 12:32:18PM -0400, Jeff Blaine wrote:
> I keep getting the following errors when using the web UI. Here's one
> case just now where I logged in as root at https://alms2.foo.com/ and
> was then immediately thrown an error:
> 
> [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
> [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
> method "host" via package "URI::_foreign" at
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
> 
> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
> 
> Previously, Kevin Falcone had said:
> 
> "This is RT trying to issue the redirect after login, what URL did
> you use to access RT and what was the next parameter."
> 
> I had replied:
> 
> I'm not sure what you mean by "what was the next parameter".

Look at the code that calls Redirect (which is where your error comes
from).

https://github.com/bestpractical/rt-authen-externalauth/blob/master/html/Elements/DoAuth#L19

What's $next for your user that errors out.

You should also always turn on stacktraces when debugging something
like this.

-kevin


pgp_hLTwWLJy_.pgp
Description: PGP signature
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

Re: [rt-users] Can't locate object method "host"

2014-08-13 Thread Alex Peters
It looks to me like your URI Perl module might not be properly installed,
or might be extremely old.  What version does this command report?—

$ perl -e1 -M'URI 999'

RT's "make testdeps" should have ensured that the minimum required version
of this module (1.59) was already installed.


On 13 August 2014 02:32, Jeff Blaine  wrote:

> I mentioned this as part of a separate post as I thought it was related
> to my other issues in that post (SSL), but it is not.
>
> I keep getting the following errors when using the web UI. Here's one
> case just now where I logged in as root at https://alms2.foo.com/ and
> was then immediately thrown an error:
>
> [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
> [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
> method "host" via package "URI::_foreign" at
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
>
> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
>
> Previously, Kevin Falcone had said:
>
> "This is RT trying to issue the redirect after login, what URL did
> you use to access RT and what was the next parameter."
>
> I had replied:
>
> I'm not sure what you mean by "what was the next parameter".
>
> The site was accessed (then and just now) directly as
> https://alms2.foo.com/
>
> The browser just reports the generic "An internal RT error
> occurred. Your administrator..." (etc).
>
> And the thread went the direction of the real other problem (SSL).
>
> Thoughts?
>
> 
>
> # Versions
>
> Apache httpd 2.2.15-31 (RHEL 6.5 package)
> RT 4.2.6
> RT-Authen-ExternalAuth 0.21
> mod_fastcgi 2.4.6
>
> 
>
> # The only relevant thing I can see in my RT_SiteConfig.pm
>
> Set($WebDomain, 'alms2.foo.com');
> Set($WebPort, '443');
>
> 
>
> # Apache config
>
> LoadModule fastcgi_module modules/mod_fastcgi.so
> FastCgiIpcDir /tmp
>
> 
>   # Redirect 80 to 443
>   ServerName alms2.foo.com
>   RewriteEngine On
>   RewriteOptions Inherit
>   RewriteCond %{HTTPS} off
>   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
> 
>
> 
>   ServerName alms2.foo.com:443
>   #
>   # Lots of SSL configuration redacted here.
>   #
>   FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300
>   DocumentRoot "/opt/rt4/share/html"
>   Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images
>   
> SetHandler default-handler
>   
>   ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
>   AddDefaultCharset UTF-8
>   
> Order allow,deny
> Allow from all
> Options +ExecCGI
> AddHandler fcgid-script fcgi
>   
> 
>
> 
> --
> RT Training - Boston, September 9-10
> http://bestpractical.com/training
>
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

[rt-users] Can't locate object method "host"

2014-08-12 Thread Jeff Blaine
I mentioned this as part of a separate post as I thought it was related
to my other issues in that post (SSL), but it is not.

I keep getting the following errors when using the web UI. Here's one
case just now where I logged in as root at https://alms2.foo.com/ and
was then immediately thrown an error:

[15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
[15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
method "host" via package "URI::_foreign" at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.

Visiting https://alms2.mitre.org/ shows I *did* login as root though.

Previously, Kevin Falcone had said:

"This is RT trying to issue the redirect after login, what URL did
you use to access RT and what was the next parameter."

I had replied:

I'm not sure what you mean by "what was the next parameter".

The site was accessed (then and just now) directly as
https://alms2.foo.com/

The browser just reports the generic "An internal RT error
occurred. Your administrator..." (etc).

And the thread went the direction of the real other problem (SSL).

Thoughts?



# Versions

Apache httpd 2.2.15-31 (RHEL 6.5 package)
RT 4.2.6
RT-Authen-ExternalAuth 0.21
mod_fastcgi 2.4.6



# The only relevant thing I can see in my RT_SiteConfig.pm

Set($WebDomain, 'alms2.foo.com');
Set($WebPort, '443');



# Apache config

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /tmp


  # Redirect 80 to 443
  ServerName alms2.foo.com
  RewriteEngine On
  RewriteOptions Inherit
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}



  ServerName alms2.foo.com:443
  #
  # Lots of SSL configuration redacted here.
  #
  FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300
  DocumentRoot "/opt/rt4/share/html"
  Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images
  
SetHandler default-handler
  
  ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
  AddDefaultCharset UTF-8
  
Order allow,deny
Allow from all
Options +ExecCGI
AddHandler fcgid-script fcgi
  



-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


Re: [rt-users] Can't locate object method "host" via package"URI::_generic"

2007-07-12 Thread Michael Martin
Found the answer, and posting here for future idiots such as myself.

The problem was simply that I had the wrong values set for $rtname, 
$Organization, and $WebBaseURL.


  - Original Message - 
  From: Michael Martin 
  To: rt-users@lists.bestpractical.com 
  Sent: Thursday, July 12, 2007 9:28 AM
  Subject: [rt-users] Can't locate object method "host" via 
package"URI::_generic"


  Hello all-

  I have a brand new 3.6.4 RT up and running, but I can't seem to create any 
new tickets. Any attempts to do so results in
  "Can't locate object method "host" via package "URI::_generic". I've attached 
the raw error output below.

  I'm reasonably certain that I have all the prerequisites installed - make 
testdeps thinks so, anyway. And, I've searched
  the archives - found one other person that reported this problem back in 
January, but there seems to be no response to
  his question, perhaps he received a personal response that didn't make it 
into the list?

  I won't be surprised if it's something I've misconfigured - I am a raw newbie 
concerning RT, and my perl experience is
  fairly weak at this point (although I expect the RT implementation project 
will rectify that!)

  Thanks,
  Michael Martin


Can't locate object method "host" via package "URI::_generic" at 
/work/rt3/lib/RT/Interface/Web.pm line 196.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "host" 
via package "URI::_generic" at /work/rt3/lib/RT/Interface/Web.pm line 196.^J') 
called at /work/rt3/lib/RT/Interface/Web.pm line 196
RT::Interface::Web::Redirect('hw.dev.local/rt/Ticket/Display.html?id=2') called 
at /work/rt3/share/html/Ticket/Display.html line 173
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new', 
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', '[EMAIL 
PROTECTED]', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', 
'', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 
'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 
'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '', 'Owner', 10, 
'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 
'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x96bf0f8)',
 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 
'AdminCc', '', 'Requestors', '[EMAIL PROTECTED]', 'InitialPriority', 0, 
'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 
'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 'TimeLeft-TimeUnits', 
'minutes', 'RefersTo-new', '', 'Owner', 10, 'DependsOn-new', '', 
'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 
'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, 'TimeEstimated', '', 'Status', 'new', 
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', '[EMAIL 
PROTECTED]', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', 
'', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 
'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 
'TimeLeft-TimeUnits

[rt-users] Can't locate object method "host" via package "URI::_generic"

2007-07-12 Thread Michael Martin
Hello all-

I have a brand new 3.6.4 RT up and running, but I can't seem to create any new 
tickets. Any attempts to do so results in
"Can't locate object method "host" via package "URI::_generic". I've attached 
the raw error output below.

I'm reasonably certain that I have all the prerequisites installed - make 
testdeps thinks so, anyway. And, I've searched
the archives - found one other person that reported this problem back in 
January, but there seems to be no response to
his question, perhaps he received a personal response that didn't make it into 
the list?

I won't be surprised if it's something I've misconfigured - I am a raw newbie 
concerning RT, and my perl experience is
fairly weak at this point (although I expect the RT implementation project will 
rectify that!)

Thanks,
Michael Martin


Can't locate object method "host" via package "URI::_generic" at 
/work/rt3/lib/RT/Interface/Web.pm line 196.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "host" 
via package "URI::_generic" at /work/rt3/lib/RT/Interface/Web.pm line 196.^J') 
called at /work/rt3/lib/RT/Interface/Web.pm line 196
RT::Interface::Web::Redirect('hw.dev.local/rt/Ticket/Display.html?id=2') called 
at /work/rt3/share/html/Ticket/Display.html line 173
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new', 
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', '[EMAIL 
PROTECTED]', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', 
'', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 
'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 
'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '', 'Owner', 10, 
'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 
'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x96bf0f8)',
 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 
'AdminCc', '', 'Requestors', '[EMAIL PROTECTED]', 'InitialPriority', 0, 
'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 
'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 'TimeLeft-TimeUnits', 
'minutes', 'RefersTo-new', '', 'Owner', 10, 'DependsOn-new', '', 
'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 
'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, 'TimeEstimated', '', 'Status', 'new', 
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', '[EMAIL 
PROTECTED]', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', 
'', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 
'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 
'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '', 'Owner', 10, 
'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 
'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at 
/work/rt3/share/html/Ticket/Create.html line 303
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new', 
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', '[EMAIL 
PROTECTED]', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', 
'', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 
'test', 'FinalPriority', 0, 'new-RefersTo', '', 'RefersTo-new', '', 
'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 
10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 
'TimeWorked-TimeUnits', 'minutes') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa059f2c)',
 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 
'AdminCc', '', 'Requestors', '[EMAIL PROTECTED]', 'InitialPriority', 0, 
'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 
'FinalPriority', 0, 'new-RefersTo', '', 'RefersTo-new', '', 
'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 
10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 
'TimeWorked-TimeUnits', 'minutes') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, undef, 'TimeEstimated', '', 'Status', 
'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 
'[EMAIL PROTECTED]', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 
'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', '