Re: [rt-users] Can't locate object method host
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 jbla...@kickflop.net mailto:jbla...@kickflop.net 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
Re: [rt-users] Can't locate object method host
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 jbla...@kickflop.net 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 VirtualHost alms2.foo.com:80 # Redirect 80 to 443 ServerName alms2.foo.com RewriteEngine On RewriteOptions Inherit RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} /VirtualHost VirtualHost alms2.foo.com:443 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 Location /NoAuth/images SetHandler default-handler /Location ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/ AddDefaultCharset UTF-8 Location / Order allow,deny Allow from all Options +ExecCGI AddHandler fcgid-script fcgi /Location /VirtualHost -- RT Training - Boston, September 9-10 http://bestpractical.com/training -- RT Training - Boston, September 9-10 http://bestpractical.com/training
Re: [rt-users] Can't locate object method host
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
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(0x78f6ee8)') called at /usr/local/share/perl5/HTML/Mason/Request.pm
Re: [rt-users] Can't locate object method host
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
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 jbla...@kickflop.net 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::Exception=HASH(0x78f6ee8)') called at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line
[rt-users] Can't locate object method host
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 VirtualHost alms2.foo.com:80 # Redirect 80 to 443 ServerName alms2.foo.com RewriteEngine On RewriteOptions Inherit RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} /VirtualHost VirtualHost alms2.foo.com:443 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 Location /NoAuth/images SetHandler default-handler /Location ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/ AddDefaultCharset UTF-8 Location / Order allow,deny Allow from all Options +ExecCGI AddHandler fcgid-script fcgi /Location /VirtualHost -- RT Training - Boston, September 9-10 http://bestpractical.com/training