[rt-users] RT not working yet. Help!

Jesse Vincent jesse at bestpractical.com
Thu Apr 3 12:17:23 EST 2003


no quotes around the undef.


On Thu, Apr 03, 2003 at 11:09:20AM -0600, jkaufman at footlocker.com wrote:
> 
> Still not working, No change with:
> 
> Set($DatabaseHost   , 'undef');
> Set($DatabaseRTHost , 'undef');
> 
> or with:
> Set($DatabaseHost   , '');
> Set($DatabaseRTHost , '');
> 
> I still get
> 
> [Thu Apr  3 10:46:59 2003] [error] Can't locate object method "new" via
> package "RT::Handle" at /data/htdocs/base/rt3/lib/RT.pm line 122.
> 
> Any other ideas? Could it be something not quite right with my perl
> modules? the make test for Apache::DBI didn't go well (no problems with the
> make  however)....Could that be it?
> 
> Here is the output of the make test for Apache::DBI
> PERL_DL_NONLAZY=1 /opt/freeware/bin/perl -Iblib/arch -Iblib/lib
> -I/opt/freeware/lib/perl5/5.6.1/ppc-aix -I/opt/freeware/lib/perl5/5.6.1 -e
> 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
> t/*.t
> t/10mysql....ok 2/7#     Failed test (t/10mysql.t at line 28)
> #          got: '123'
> #     expected: '124'
> t/10mysql....ok 7/7# Looks like you failed 1 tests of 7.
> t/10mysql....dubious
>         Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 5
>         Failed 1/7 tests, 85.71% okay
> Failed Test Stat Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------
> t/10mysql.t    1   256     7    1  14.29%  5
> Failed 1/1 test scripts, 0.00% okay. 1/7 subtests failed, 85.71% okay.
> make: *** [test_dynamic] Error 2
> 
> 
> 
> 
> Jonathan Kaufman
> 
> Foot Locker Inc.
> E-Mail: jkaufman at footlocker.com
> 
> 
> 
>                                                                                                                                        
>                                                                                                                                        
>                                                To:      jkaufman at footlocker.com                                                        
>                                                cc:                                                                                     
>                         Jesse Vincent          Subject: Re: [rt-users] RT not working yet. Help!                                       
>                         <jesse at bestprac                                                                                                
>                         tical.com>                                                                                                     
>                                                                                                                                        
>                         04/03/2003                                                                                                     
>                         08:24 AM                                                                                                       
>                                                                                                                                        
>                                                                                                                                        
>                                                                                                                                        
> 
> 
> 
> 
> try setting DatabaseHost to undef?
> 
> 
> On Thu, Apr 03, 2003 at 07:42:32AM -0600, jkaufman at footlocker.com wrote:
> > Alright let's try this again.
> >
> > Here's my problem. I got everything installed (as far as I can tell),
> > except when I access RT (for the first time mind you) I get the following
> > error showing up in my apache webserver log:
> >        [error] Can't locate object method "new" via package "RT::Handle"
> at
> > /data/htdocs/base/rt3/lib/RT.pm line 122.
> >
> > I did look in rtfm and it *does* have this error mentioned in it, however
> > my RT_Config.pm does contain a correct lowercase database type:
> >             Set($DatabaseType , 'mysql');
> >
> > And even users (yes I know they are default, but I want to get it up and
> > running to see if my teamates like it before I start the serious work to
> > get it ready for prod)
> >             Set($DatabaseUser , 'rt_user');
> >             Set($DatabasePassword , 'rt_pass');
> >
> > My database host is the same machine the webserver is running on:
> >             Set($DatabaseHost   , 'localhost');
> >             Set($DatabaseRTHost , 'localhost');
> >
> >
> > Mysql is up an running (it worked for creating the default database when
> > using make setup-database during installation).
> >       Mysql is version 4.0.12-max for Aix (compiled by mysql).
> >       DBD::Mysql is installed (version  2.1026, make test ok during
> build)
> >       DBIx::Searchbuilder is installed (version 0.80)
> >       Apache::DBI is installed (version 0.91)
> >
> > Apache is version 1.3.7 with Mod_sll 2.8.12, Mod_perl v1.27 and
> > php4-STABLE-200303201630 all compiled in as static modules. I am running
> > all of this on Aix v5.1 with Maintence Level 2(?).
> >
> > This is my VirtualHost entry:
> >       <VirtualHost 10.178.67.100>
> >               ServerName tracker
> >               DocumentRoot /data/htdocs/base/rt3/share/html
> >               AddDefaultCharset UTF-8
> >               LogLevel debug
> >               ErrorLog /sftw/apache/logs/rt3-error.log
> >               PerlModule Apache::DBI
> >               PerlRequire /data/htdocs/base/rt3/bin/webmux.pl
> >               <Location />
> >                  Options +ExecCGI +MultiViews
> >                  SetHandler perl-script
> >                  PerlHandler RT::Mason
> >               </Location>
> >       </VirtualHost>
> >
> > So....Ideas? I know that line 122 is $Handle = RT::Handle->new(); which
> > basically means (I think) that it's trying to connect to mysql and
> can't...
> >
> > Which I can do using mysqladmin -u rt_user -p -h localhost status....so I
> > know that the rt_user has access from localhost to get to mysql...So what
> > gives?
> >
> >  mysqladmin -u rt_user -p -h localhost status
> > Enter password:
> > Uptime: 17  Threads: 1  Questions: 1  Slow queries: 0  Opens: 6  Flush
> > tables: 1  Open tables: 0  Queries per second avg: 0.059
> >
> > Thanks.
> >
> >
> > Jonathan Kaufman
> >
> > Foot Locker  Inc.
> > E-Mail: jkaufman at footlocker.com
> >
> >
> >
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> >
> > Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> 
> --
> http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.
> 
> 
> 
> 
> 

-- 
http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the rt-users mailing list