Hi All,

I have created a problem that I can't solve yet. I installed RT 3.6.3 on to a CentOS 4.4 box. Apache starts and runs. When I create a ticket, I get the below error though the ticket gets created. Attempting to Take or Open the ticket generates the same error. Updating the ticket starts the update, but generates the same error when the Update button is pressed. I've pasted in sanitized supporting information below the error.

Thanks for any help/advice you can offer.

Darren Ellis


error:
Can't locate object method "host" via package "URI::_generic" at /opt/ rt3/lib/RT/Interface/Web.pm line 194, <DATA> line 1662.
context:
...

190:

191:
# If the user is coming in via a non-canonical
192:
# hostname, don't redirect them to the canonical host,
193:
# it will just upset them (and invalidate their credentials)
194:
if ($uri->host eq $server_uri->host &&
195:
$uri->port eq $server_uri->port) {
196:
$uri->host($ENV{'HTTP_HOST'});
197:
$uri->port($ENV{'SERVER_PORT'});
198:
}
...

code stack:
/opt/rt3/lib/RT/Interface/Web.pm:194
/opt/rt3/share/html/Ticket/Display.html:164
/opt/rt3/share/html/Ticket/Create.html:301
/opt/rt3/share/html/autohandler:292
raw error


/etc/httpd/conf.d/zrt.conf
==========================
# zrt.conf.
# Apache2 configuration for RT.
#
# Darren G. Ellis, Maine Phone and Data
# On contract for Web Engineering.
#
# Modification History
# 20070119: Copied from zpolgara.conf on polgara.mepad.net
#
# Last modified DGE 20070119

NameVirtualHost 192.168.100.20:80

<VirtualHost 192.168.100.20:80>
        ServerName mail.COMPANY.com
        DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost 192.168.100.20:80>
   ServerName rt.COMPANY.com
   DocumentRoot /opt/rt3/share/html
   AddDefaultCharset UTF-8

   # these four lines apply to Apache2+mod_perl2 only: {{{
   PerlSetVar MasonArgsMethod CGI
   PerlModule Apache2 Apache::compat
   RewriteEngine On
   RewriteRule ^(.*)/$ $1/index.html
   # }}}

   PerlModule Apache::DBI
   PerlRequire /opt/rt3/bin/webmux.pl

   <Location /REST/1.0/NoAuth>
        satisfy any
        allow from all
   </Location>
   <Location /NoAuth>
        satisfy any
        allow from all
   </Location>

   <Location />
        Options Indexes FollowSymLinks ExecCGI
       SetHandler perl-script
       PerlHandler RT::Mason
   </Location>
   <Location /NoAuth/images>
        SetHandler default-handler
   </Location>
</virtualhost>



[EMAIL PROTECTED] rt-3.6.3]# make fixdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --install --with- mysql
perl:
        >=5.8.3(5.008005)...found
users:
        rt group (rt3)...found
        bin owner (root)...found
        libs owner (root)...found
        libs group (bin)...found
        web owner (apache)...found
        web group (apache)...found
CLI dependencies:
        Getopt::Long >=2.24...found
CORE dependencies:
        Digest::base...found
        Digest::MD5 >=2.27...found
        DBI >=1.37...found
        Test::Inline...found
        Class::ReturnValue >=0.40...found
        Date::Format...found
        DBIx::SearchBuilder >=1.40...found
        Text::Template...found
        File::Spec >=0.8...found
        HTML::Entities...found
        HTML::Scrubber >=0.08...found
        Net::Domain...found
        Log::Dispatch >=2.0...found
        Locale::Maketext >=1.06...found
        Locale::Maketext::Lexicon >=0.32...found
        Locale::Maketext::Fuzzy...found
        MIME::Entity >=5.108...found
        Mail::Mailer >=1.57...found
        Net::SMTP...found
        Text::Wrapper...found
        Time::ParseDate...found
        Time::HiRes...found
        File::Temp...found
        Term::ReadKey...found
        Text::Autoformat...found
        Text::Quoted >=1.3...found
        Tree::Simple >=1.04...found
        Scalar::Util...found
        Module::Versions::Report...found
        Cache::Simple::TimedExpiry...found
        UNIVERSAL::require...found
        Calendar::Simple...found
DEV dependencies:
        Regexp::Common...found
        Test::Inline...found
        Apache::Test...found
        HTML::Form...found
        HTML::TokeParser...found
        WWW::Mechanize...found
        Test::WWW::Mechanize >=1.04...found
        Module::Refresh >=0.03...found
        Test::Expect >=0.30...found
        XML::Simple...found
        File::Find...found
MAILGATE dependencies:
        HTML::TreeBuilder...found
        HTML::FormatText...found
        Getopt::Long...found
        LWP::UserAgent...found
MASON dependencies:
        Params::Validate >=0.02...found
        Cache::Cache...found
        Exception::Class >=1.14...found
        HTML::Mason >=1.23...found
        MLDBM...found
        Errno...found
        FreezeThaw...found
        Digest::MD5 >=2.27...found
        CGI::Cookie >=1.20...found
        Storable >=2.08...found
        Apache::Session >=1.53...found
        XML::RSS >=1.05...found
        HTTP::Server::Simple >=0.07...found
        HTTP::Server::Simple::Mason >=0.09...found
        GD...found
        GD::Graph...found
        GD::Text...found
        Text::WikiFormat >=0.76...found
MYSQL dependencies:
        DBD::mysql >=2.1018...found

Everything was found.



[EMAIL PROTECTED] rt-3.6.3]# perl sbin/rt-test-dependencies --with-mysql -- with-modperl2
perl:
        >=5.8.3(5.008005)...found
users:
        rt group (rt3)...found
        bin owner (root)...found
        libs owner (root)...found
        libs group (bin)...found
        web owner (apache)...found
        web group (apache)...found
CLI dependencies:
CORE dependencies:
DEV dependencies:
MAILGATE dependencies:
MASON dependencies:
MODPERL2 dependencies:
MYSQL dependencies:

Everything was found.


[EMAIL PROTECTED] rt-3.6.3]# rpm -q httpd
httpd-2.0.52-28.ent.centos4
[EMAIL PROTECTED] rt-3.6.3]#


[EMAIL PROTECTED] rt-3.6.3]# cat /opt/rt3/etc/RT_SiteConfig.pm
# Any configuration directives you include  here will override
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
# The converse is also true, if this file isn't valid perl, you're
# going to run into trouble. To check your SiteConfig file, use
# this comamnd:
#
#   perl -c /path/to/your/etc/RT_SiteConfig.pm

Set( $rtname, 'COMPANY.com');
Set( $Organization, 'COMPANY.com');
Set($OwnerEmail , '[EMAIL PROTECTED]');
Set($ParseNewMessageForTicketCcs , 1);
Set($RTAddressRegexp , '[EMAIL PROTECTED]');
Set($CorrespondAddress , '[EMAIL PROTECTED]');
Set($CommentAddress , '[EMAIL PROTECTED]');
Set($UseFriendlyToLine , 1);
Set($NotifyActor, 1);
Set($WebBaseURL , "http//rt.COMPANY.com");

# {{{ Database Configuration

# Database driver beeing used. Case matters
# Valid types are "mysql", "Oracle" and "Pg"

Set($DatabaseType , 'mysql');

# The domain name of your database server
# If you're running mysql and it's on localhost,
# leave it blank for enhanced performance
Set($DatabaseHost   , 'localhost');
Set($DatabaseRTHost , 'localhost');

# The port that your database server is running on.  Ignored unless it's
# a positive integer. It's usually safe to leave this blank
Set($DatabasePort , '');

#The name of the database user (inside the database)
Set($DatabaseUser , 'rt_user');

# Password the DatabaseUser should use to access the database
Set($DatabasePassword , 'PASSWORD');

# The name of the RT's database on your database server
Set($DatabaseName , 'rt3');

# If you're using Postgres and have compiled in SSL support,
# set DatabaseRequireSSL to 1 to turn on SSL communication
Set($DatabaseRequireSSL , undef);

# }}}

# Support implicit links in WikiText custom fields?  A true value
# causes InterCapped or ALLCAPS words in WikiText fields to
# automatically become links to searches for those words.  If used on
# RTFM articles, it links to the RTFM article with that name.
Set($WikiImplicitLinks, 0);

# $MaxInlineBody is the maximum attachment size that we want to see
# inline when viewing a transaction. 13456 is a random sane-sounding
# default.

Set($MaxInlineBody, 10240);

1;



Darren Ellis
[EMAIL PROTECTED]
Office: (207) 737-2733, X32
Mobile: (207) 350-8000




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to