[rt-users] Help installing RT4 on Ubuntu

Borngunners borngunners at aol.com
Mon Jan 30 17:11:54 EST 2012


Hello Falcone,
I have tried the config as stated. This is the message I receive after starting apche:
root at helpdesks:/etc/apache2# /etc/init.d/apache2 start
 * Starting web server apache2                                                                                                               [Mon Jan 30 22:08:01 2012] [warning]: DBD::mysql::st execute failed: Table 'rt4.Users' doesn't exist at /usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Handle.pm line 587. (/usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Handle.pm:587)
[Mon Jan 30 22:08:01 2012] [warning]: RT::Handle=HASH(0xb96785c8) couldn't execute the query 'SELECT  * FROM Users WHERE Name = ?' at /usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Handle.pm line 600
        DBIx::SearchBuilder::Handle::SimpleQuery('RT::Handle=HASH(0xb96785c8)', 'SELECT  * FROM Users WHERE Name = ?', 'RT_System') called at /usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Record.pm line 1206
        DBIx::SearchBuilder::Record::_LoadFromSQL('RT::CurrentUser=HASH(0xb9c696c8)', 'SELECT  * FROM Users WHERE Name = ?', 'RT_System') called at /usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Record.pm line 1125
        DBIx::SearchBuilder::Record::LoadByCols('RT::CurrentUser=HASH(0xb9c696c8)', 'Name', 'RT_System') called at /usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Record/Cachable.pm line 120
        DBIx::SearchBuilder::Record::Cachable::LoadByCols('RT::CurrentUser=HASH(0xb9c696c8)', 'Name', 'RT_System') called at /opt/rt4/sbin/../lib/RT/Record.pm line 363
        RT::Record::LoadByCols('RT::CurrentUser=HASH(0xb9c696c8)', 'Name', 'RT_System') called at /usr/local/share/perl/5.10.1/DBIx/SearchBuilder/Record.pm line 1070
        DBIx::SearchBuilder::Record::LoadByCol('RT::CurrentUser=HASH(0xb9c696c8)', 'Name', 'RT_System') called at /opt/rt4/sbin/../lib/RT/User.pm line 462
        RT::User::Load('RT::CurrentUser=HASH(0xb9c696c8)', 'RT_System') called at /opt/rt4/sbin/../lib/RT/Handle.pm line 240
        RT::Handle::CheckIntegrity('RT::Handle') called at /opt/rt4/sbin/rt-server line 97
        require /opt/rt4/sbin/rt-server called at (eval 6) line 3
        eval 'package Plack::Sandbox::_2fopt_2frt4_2fsbin_2frt_2dserver;
{
    my $app = do $_file;
    if ( !$app && ( my $error = $@ || $! )) { die $error; }
    $app;
}

;' called at /usr/local/share/perl/5.10.1/Plack/Util.pm line 118
        Plack::Util::_load_sandbox('/opt/rt4/sbin/rt-server') called at /usr/local/share/perl/5.10.1/Plack/Util.pm line 155
        Plack::Util::load_psgi('/opt/rt4/sbin/rt-server') called at /usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm line 32
        Plack::Handler::Apache2::load_app('Plack::Handler::Apache2', '/opt/rt4/sbin/rt-server') called at /usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm line 24
        Plack::Handler::Apache2::preload('Plack::Handler::Apache2', '/opt/rt4/sbin/rt-server') called at /etc/apache2/sites-enabled/000-default line 20
        eval 'package Apache2::ReadConfig::etc::apache2::sites_enabled::000_default::line_19;
#line 19 /etc/apache2/sites-enabled/000-default
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");

;' called at /opt/rt4/sbin/../lib/RT/CurrentUser.pm line 0 (/usr/share/perl/5.10/Carp.pm:47)
[Mon Jan 30 22:08:01 2012] [warning]: Use of uninitialized value in concatenation (.) or string at /opt/rt4/sbin/../lib/RT/Handle.pm line 242. (/opt/rt4/sbin/../lib/RT/Handle.pm:241)

RT couldn't connect to the database where tickets are stored.
If this is a new installation of RT, you should visit the URL below
to configure RT and initialize your database.

If this is an existing RT installation, this may indicate a database
connectivity problem.

The error RT got back when trying to connect to your database was:

Couldn't find RT_System user in the DB ''

[Mon Jan 30 22:08:02 2012] [warning]:   (in cleanup) Error while loading /opt/rt4/sbin/rt-server: Can't locate RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at /opt/rt4/sbin/../lib/RT.pm line 659. (/opt/rt4/sbin/../lib/RT.pm:343)
[Mon Jan 30 17:08:02 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                                                                                                      [ OK ]
root at helpdesks:/etc/apache2#


Thanks

 

-----Original Message-----
From: Kevin Falcone <falcone at bestpractical.com>
To: rt-users <rt-users at lists.bestpractical.com>
Sent: Mon, Jan 30, 2012 3:25 pm
Subject: Re: [rt-users] Help installing RT4 on Ubuntu


On Mon, Jan 30, 2012 at 02:29:09PM -0500, Borngunners wrote:
>    This is my /etc/apache2/httpd.conf and /etc/apache2/sites-available/default 
configuration
>    files

Please try the config that we ship with RT as documented in
docs/web_deployment.pod (which is referred to from the README).

-kevin

>    :
>    <VirtualHost *:80>
>    ServerName UHC:80
>    ServerAdmin helpdesk at ticket.com
> 
>    ErrorLog /var/log/apache2/error.log
>    TransferLog /var/log/apache2/xfer.log
>    CustomLog /var/log/apache2/access.log combined
>    ServerSignature On
> 
>    #config for your main content
>    DocumentRoot "/opt/rt4/share/html"
>    Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
> 
>    <Directory "/opt/rt4/share/html">
>    Options Indexes FollowSymLinks
> 
>    AllowOverride None
>    Allow from all
>    satisfy any
> 
>    AddDefaultCharset UTF-8
>    SetHandler modperl
>    PerlResponseHandler Plack::Handler::Apache2
>    PerlSetVar psgi_app /opt/rt4/sbin/rt-server
>    </Directory>
>    </VirtualHost>
> 
>    -----Original Message-----
>    From: Bart <bart at pleh.info>
>    To: rt-users <rt-users at lists.bestpractical.com>
>    Sent: Mon, Jan 30, 2012 5:34 am
>    Subject: Re: [rt-users] Help installing RT4 on Ubuntu
> 
>    Same as with Debian, you need to manually add the RT apache configuration 
to apache. If Ubuntu
>    does the same as Debian then you can find an example under 
/etc/request-tracker4.
>    I suspect that you don't have a config under /etc/apache2/sites-available 
for RT, and/or not a
>    link to the RT apache config under /etc/apache2/sites-enabled/
>    Make sure you have the RT config in there and a link under sites-enabled, 
after that restart
>    apache2 and it should work (if the config is correct).
>    For example configs you can check the wiki or these lists.
>    -- Bart
> 
>    Op 26 januari 2012 22:40 schreef Kevin Falcone <falcone at bestpractical.com> 
het volgende:
> 
>      On Thu, Jan 26, 2012 at 12:02:28PM -0500, Borngunners wrote:
>      >    I have installed RT 4 on ubuntu and have tested the web after 
restarting apache,
>      nothing shows
>      >    up except the normal apache "It Works!"
>      >    What am I doing wrong in this case....?
> 
>      You're going to need to share your apache config for anyone to be able
>      to offer advice.
>      -kevin
>      --------
>      RT Training Sessions (http://bestpractical.com/services/training.html)
>      * Boston -- March 5 & 6, 2012
> 
>  --------
>  RT Training Sessions (http://bestpractical.com/services/training.html)
>  * Boston ** March 5 & 6, 2012

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


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

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120130/40c5527f/attachment.htm>


More information about the rt-users mailing list