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

Alex Peters alex at peters.net
Wed Aug 13 06:24:05 EDT 2014


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 <jblaine at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140813/663e1f79/attachment.htm>


More information about the rt-users mailing list