[rt-users] Post Installation problems -- 'Can't localte object method "new" via package "RT::Handle"... Why?

Max Riz max at ebrary.com
Thu Feb 5 17:41:54 EST 2004


Espen Wiborg wrote:
> Max Riz <max at ebrary.com> writes:
>>So, it goes off and does 'something' for 3 seconds, and
>>returns with no apparent error codes.
> 
> 
> Good.  That is, in fact, what I expected it to do.  What this means is
> that your RT installation can talk to its database.  Which is good.

  Indeed it is. And it means that 'something' works.

> My guess at the problem you're seeing with the web interface is that
> Apache (and thus mod_perl) can't read your config file.  Check the
> permissions on RT_Config.pm and RT_SiteConfig.pm.


[max at dvht max]$ ls -al /opt/rt/
total 40
drwxrwxr-x    6 rt       rt           4096 Feb  5 15:09 .
drwxr-xr-x    3 root     root         4096 Jan 27 00:42 ..
-rw-------    1 rt       rt           5404 Feb  3 15:22 .bash_history
-rw-rw----    1 rt       rt             43 Jan 27 00:43 .bash_profile
-rw-rw----    1 rt       rt             41 Jan 28 15:23 .bashrc
drwxrwx---    6 rt       rt           4096 Feb  2 13:50 .cpan
-rw-r--r--    1 rt       rt              0 Feb  5 15:09 Name
drwxrwx---    3 rt       rt           4096 Jan 27 01:17 lib
drwxr-xr-x    9 root     root         4096 Jan 27 02:35 rt-3.0.8
drwxrwx---    3 rt       rt           4096 Jan 27 00:48 src
[max at dvht max]$ ls -al /opt/rt/rt-3.0.8/
total 36
drwxr-xr-x    9 root     root         4096 Jan 27 02:35 .
drwxrwxr-x    6 rt       rt           4096 Feb  5 15:09 ..
drwxr-xr-x    2 root     root         4096 Jan 27 02:35 bin
drwxr-xr-x    2 root     rt           4096 Jan 27 02:35 etc
drwxr-xr-x    4 root     bin          4096 Jan 27 02:35 lib
drwxr-xr-x    5 root     root         4096 Jan 27 02:35 local
drwxr-xr-x    2 root     root         4096 Jan 27 02:35 sbin
drwxr-xr-x    4 root     root         4096 Jan 27 02:35 share
drwxr-xr-x    5 root     root         4096 Jan 27 02:35 var
[max at dvht max]$ ls -al /opt/rt/rt-3.0.8/etc/
total 124
drwxr-xr-x    2 root     rt           4096 Jan 27 02:35 .
drwxr-xr-x    9 root     root         4096 Jan 27 02:35 ..
-r-xr-xr--    1 root     rt          12183 Jan 27 02:36 RT_Config.pm
-r-xr-xr--    1 root     rt              3 Jan 27 02:35 RT_SiteConfig.pm
-r-x------    1 root     rt             68 Jan  2 13:23 acl.Informix
-r-x------    1 root     rt            240 Jan  2 13:23 acl.Oracle
-r-x------    1 root     rt           1396 Jan  2 13:23 acl.Pg
-r-xr--r--    1 root     rt            310 Jan  2 13:23 acl.mysql
-r-xr--r--    1 root     rt          20462 Jan  2 13:23 initialdata
-r-x------    1 root     rt           9952 Jan  2 13:23 schema.Informix
-r-x------    1 root     rt           9874 Jan  2 13:23 schema.Oracle
-r-x------    1 root     rt          12436 Jan  2 13:23 schema.Pg
-r-x------    1 root     rt           9055 Jan  2 13:23 schema.SQLite
-r-xr--r--    1 root     rt          11942 Jan  2 13:23 schema.mysql

So it looks like it's all world readable.


> To narrow this down further, try the following script (it should list
> your users, one per line):
> 
> --8<--
> #!/usr/bin/env perl
> use lib '/opt/rt/rt-3.0.8/lib';
> 
> use RT;
> use RT::Users;
> 
> RT::LoadConfig();
> RT::Init();
> 
> my $users = new RT::Users($RT::SystemUser);
> while (my $user = $users->Next) {
>         print $user->Name . "\n";
> }
> --8<--

Works great and lists users w/o problems.


Cute problem, no?

Thanks!

-- 
-max;




More information about the rt-users mailing list