Index.html not found

I am experiencing the following trouble with RT2.0.9 and HTML::Mason
1.0.4.

When I attempt to open the WebRT page I receive the error:

Not Found
The requested URL /is/app/rt/index.html was not found on this server.

Apache/1.3.22 Server at wwwi.transwesttel.com Port 80

In the error log is the following:

[Tue Dec 4 11:13:26 2001] [warn] [Mason] Cannot resolve file to
component: /www/wwwi.transwesttel.com/html/is/app/rt/index.html (is file
outside component root?)

Now I have the following symbolic links:

/wwwi -> /www/wwwi.transwesttel.com/html
/wwwi/is/app/rt -> /opt/rt2/WebRT/html/

and

[root@twtlnx HTML-Mason-1.04]# ls -la /wwwi/is/app/rt
lrwxrwxrwx 1 root root 20 Nov 29 13:22 /wwwi/is/app/rt
-> /opt/rt2/WebRT/html/
[root@twtlnx HTML-Mason-1.04]# ls -la /wwwi/is/app/rt/
total 14
drwxrwxr-x 10 root is 1024 Dec 4 08:32 .
drwxr-xr-x 5 root root 1024 Nov 29 12:41 …
drwxr-xr-x 10 root is 1024 Nov 29 12:13 Admin
drwxr-xr-x 2 root is 1024 Nov 29 12:13 CVS
drwxr-xr-x 3 root is 1024 Nov 29 12:13 Elements
drwxr-xr-x 4 root is 1024 Nov 29 12:13 NoAuth
drwxr-xr-x 3 root is 1024 Nov 29 12:13 Search
drwxr-xr-x 5 root is 1024 Nov 29 12:13 SelfService
drwxr-xr-x 5 root is 1024 Nov 29 12:13 Ticket
drwxr-xr-x 3 root is 1024 Nov 29 12:13 User
-rwxr-xr-x 1 root is 1918 Nov 6 16:06 autohandler
-rwxr-xr-x 1 root is 684 Nov 6 16:06 index.html
-rw-rw-r-- 1 andrejko andrejko 84 Dec 4 08:32 test.html
[root@twtlnx HTML-Mason-1.04]#

The Apache configuration looks like:

PerlSetVar MasonCompRoot /wwwi
PerlSetVar MasonDataDir /opt/rt2/WebRT/sessiondata
PerlModule Apache::DBI
PerlModule Apache::Registry
PerlModule HTML::Mason::ApacheHandler
PerlFreshRestart On
PerlRequire /opt/rt2/bin/webmux.pl

<Location /is/app/rt>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
Options +ExecCGI +Indexes
</Location>	

Thanks,
Erik

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

IIRC, Mason doesn’t like symbolic links…On Tuesday 04 December 2001 11:21 am, Erik Andrejko wrote:

I am experiencing the following trouble with RT2.0.9 and HTML::Mason
1.0.4.

When I attempt to open the WebRT page I receive the error:

Not Found
The requested URL /is/app/rt/index.html was not found on this server.

Apache/1.3.22 Server at wwwi.transwesttel.com Port 80

In the error log is the following:

[Tue Dec 4 11:13:26 2001] [warn] [Mason] Cannot resolve file to
component: /www/wwwi.transwesttel.com/html/is/app/rt/index.html (is file
outside component root?)

Now I have the following symbolic links:

/wwwi -> /www/wwwi.transwesttel.com/html
/wwwi/is/app/rt -> /opt/rt2/WebRT/html/

and

[root@twtlnx HTML-Mason-1.04]# ls -la /wwwi/is/app/rt
lrwxrwxrwx 1 root root 20 Nov 29 13:22 /wwwi/is/app/rt
-> /opt/rt2/WebRT/html/
[root@twtlnx HTML-Mason-1.04]# ls -la /wwwi/is/app/rt/
total 14
drwxrwxr-x 10 root is 1024 Dec 4 08:32 .
drwxr-xr-x 5 root root 1024 Nov 29 12:41 …
drwxr-xr-x 10 root is 1024 Nov 29 12:13 Admin
drwxr-xr-x 2 root is 1024 Nov 29 12:13 CVS
drwxr-xr-x 3 root is 1024 Nov 29 12:13 Elements
drwxr-xr-x 4 root is 1024 Nov 29 12:13 NoAuth
drwxr-xr-x 3 root is 1024 Nov 29 12:13 Search
drwxr-xr-x 5 root is 1024 Nov 29 12:13 SelfService
drwxr-xr-x 5 root is 1024 Nov 29 12:13 Ticket
drwxr-xr-x 3 root is 1024 Nov 29 12:13 User
-rwxr-xr-x 1 root is 1918 Nov 6 16:06 autohandler
-rwxr-xr-x 1 root is 684 Nov 6 16:06 index.html
-rw-rw-r-- 1 andrejko andrejko 84 Dec 4 08:32 test.html
[root@twtlnx HTML-Mason-1.04]#

The Apache configuration looks like:

PerlSetVar MasonCompRoot /wwwi
PerlSetVar MasonDataDir /opt/rt2/WebRT/sessiondata
PerlModule Apache::DBI
PerlModule Apache::Registry
PerlModule HTML::Mason::ApacheHandler
PerlFreshRestart On
PerlRequire /opt/rt2/bin/webmux.pl

<Location /is/app/rt>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
Options +ExecCGI +Indexes

Thanks,
Erik


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users



Josh Krikke krikke@macatwa.org
Systems Administrator
76 1/2 E. 8th St
Holland, MI 49423
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8DPs2j0GVSWTdldsRAh39AJ9uqskT0d1dkMtA8hDKtF4o0W8kQwCeJKHs
Q6RczJ7UEb92+ToXxGZsW2s=
=JVKk
-----END PGP SIGNATURE-----

The login screen now works. However when I attempt to log in I get an
error:

Mason error

error in file: /usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm

line 789: Can’t call method “SimpleQuery” on an undefined value

context: …
785: my $self = shift;
786: my $QueryString = shift;
787: my @bind_values = (@_);
788:
789: my $sth = $self->_Handle->SimpleQuery($QueryString, @bind_values);
790:
791: #TODO this only gets the first row. we should check if there are more.

792:
793: eval {

component stack: /autohandler

code stack:
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm:720
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record/Cachable.pm:71
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm:740
/opt/rt2/lib/RT/CurrentUser.pm:179
/opt/rt2/WebRT/sessiondata/obj/autohandler:43
error while executing /autohandler:
Can’t call method “SimpleQuery” on an undefined value at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 789.
HTML::Mason::Interp::ANON(‘Can’t call method “SimpleQuery” on an
undefined value at /usr/l…’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 789
DBIx::SearchBuilder::Record::_LoadFromSQL(‘RT::CurrentUser=HASH(0x8641100)’,
‘SELECT * FROM Users WHERE id = ?’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 720
DBIx::SearchBuilder::Record::LoadByCols(‘RT::CurrentUser=HASH(0x8641100)’,
‘id’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record/Cachable.pm line 71
DBIx::SearchBuilder::Record::Cachable::LoadByCols(‘RT::CurrentUser=HASH(0x86
41100)’, ‘id’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 740
DBIx::SearchBuilder::Record::LoadById(‘RT::CurrentUser=HASH(0x8641100)’, ‘’)
called at /opt/rt2/lib/RT/CurrentUser.pm line 179
RT::CurrentUser::Load(‘RT::CurrentUser=HASH(0x8641100)’, ‘’) called at
/opt/rt2/WebRT/sessiondata/obj/autohandler line 43
HTML::Mason::Commands::ANON(‘pass’, ‘’, ‘user’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x8640f2
0)’, ‘pass’, ‘’, ‘user’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm
line 653
HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x863ec
34)’, ‘HASH(0x863eebc)’,
‘HTML::Mason::Component::FileBased=HASH(0x8640f20)’, ‘pass’, ‘’, ‘user’, ‘’)
called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159
require 0 called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm
line 159
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x863ec
34)’, ‘/index.html’, ‘pass’, ‘’, ‘user’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 914
HTML::Mason::ApacheHandler::handle_request_1(‘HTML::Mason::ApacheHandler=HAS
H(0x863e514)’, ‘Apache=SCALAR(0x863e97c)’,
‘HTML::Mason::Request::ApacheHandler=HASH(0x863ec34)’, undef) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(
0x863e514)’, ‘Apache=SCALAR(0x863e97c)’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 1019
HTML::Mason::ApacheHandler::handler(’/is/app/rt/index.html’,
‘Apache=SCALAR(0x863e97c)’, ‘Apache=SCALAR(0x863e97c)’) called at /dev/null
line 0
require 0 called at /dev/null line 0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What version of SearchBuilder are you using?

Make sure it is the most current version…On Tuesday 04 December 2001 12:07 pm, Erik Andrejko wrote:

The login screen now works. However when I attempt to log in I get an
error:

Mason error

error in file:
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm

line 789: Can’t call method “SimpleQuery” on an undefined value

context: …
785: my $self = shift;
786: my $QueryString = shift;
787: my @bind_values = (@_);
788:
789: my $sth = $self->_Handle->SimpleQuery($QueryString, @bind_values);
790:
791: #TODO this only gets the first row. we should check if there are
more.

792:
793: eval {

component stack: /autohandler

code stack:
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm:720
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record/Cachable.pm:71
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm:740
/opt/rt2/lib/RT/CurrentUser.pm:179
/opt/rt2/WebRT/sessiondata/obj/autohandler:43
error while executing /autohandler:
Can’t call method “SimpleQuery” on an undefined value at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 789.
HTML::Mason::Interp::ANON(‘Can’t call method “SimpleQuery” on an
undefined value at /usr/l…’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 789
DBIx::SearchBuilder::Record::_LoadFromSQL(‘RT::CurrentUser=HASH(0x8641100)’
, ‘SELECT * FROM Users WHERE id = ?’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 720
DBIx::SearchBuilder::Record::LoadByCols(‘RT::CurrentUser=HASH(0x8641100)’,
‘id’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record/Cachable.pm line
71
DBIx::SearchBuilder::Record::Cachable::LoadByCols(‘RT::CurrentUser=HASH(0x8
6 41100)’, ‘id’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/DBIx/SearchBuilder/Record.pm line 740
DBIx::SearchBuilder::Record::LoadById(‘RT::CurrentUser=HASH(0x8641100)’,
’’) called at /opt/rt2/lib/RT/CurrentUser.pm line 179
RT::CurrentUser::Load(‘RT::CurrentUser=HASH(0x8641100)’, ‘’) called at
/opt/rt2/WebRT/sessiondata/obj/autohandler line 43
HTML::Mason::Commands::ANON(‘pass’, ‘’, ‘user’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x8640f
2 0)’, ‘pass’, ‘’, ‘user’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm
line 653
HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x863e
c 34)’, ‘HASH(0x863eebc)’,
‘HTML::Mason::Component::FileBased=HASH(0x8640f20)’, ‘pass’, ‘’, ‘user’,
’’) called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159
require 0 called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm
line 159
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x863e
c 34)’, ‘/index.html’, ‘pass’, ‘’, ‘user’, ‘’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 914
HTML::Mason::ApacheHandler::handle_request_1(‘HTML::Mason::ApacheHandler=HA
S H(0x863e514)’, ‘Apache=SCALAR(0x863e97c)’,
‘HTML::Mason::Request::ApacheHandler=HASH(0x863ec34)’, undef) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH
( 0x863e514)’, ‘Apache=SCALAR(0x863e97c)’) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 1019
HTML::Mason::ApacheHandler::handler(’/is/app/rt/index.html’,
‘Apache=SCALAR(0x863e97c)’, ‘Apache=SCALAR(0x863e97c)’) called at /dev/null
line 0
require 0 called at /dev/null line 0


Josh Krikke krikke@macatwa.org
MacNet Sysadmin Holland, MI
GnuPG Fingerprint: AC6F 13AC F945 CC45 BDFC 509E 8F41 9549 64DD 95DB
Get my public key at http://www.macatawa.org/~krikke/my_public_key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8DTblj0GVSWTdldsRAi6kAJ0dk1Xbmi6hBMYSs3I/zXPox+QDvgCfXiKB
z9Y0veHSkJX+44BCtgZYJu0=
=zB46
-----END PGP SIGNATURE-----

I have version 0.4.9. I have un-installed and re-installed the latest
version.

Erik

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

0.4.9, eh? Are you looking at the same SearchBuilder.pm file I am? Mine’s
version 0.47 and the latest from Jesse’s site is 0.48pre2.

Anyway, you didn’t say if uninstalling and reinstalling worked. Did it?On Wednesday 05 December 2001 11:53 am, Erik Andrejko wrote:

I have version 0.4.9. I have un-installed and re-installed the latest
version.

Erik

-----Original Message-----
From: Josh Krikke [SMTP:krikke@macatawa.org]
Sent: Tuesday, December 04, 2001 1:50 PM
To: Erik Andrejko
Cc: 'rt-users@lists.fsck.com’
Subject: Re: [rt-users] Index.html not found

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What version of SearchBuilder are you using?

Make sure it is the most current version…


Josh Krikke krikke@macatwa.org
MacNet Sysadmin Holland, MI
GnuPG Fingerprint: AC6F 13AC F945 CC45 BDFC 509E 8F41 9549 64DD 95DB
My public key http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64DD95DB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Dl/Zj0GVSWTdldsRAnBEAJ9MpfDUBSjYDTgUMGH6Xw8EKwLreQCdFWTL
IFAIQHvmPNVJezPOKg0fWAc=
=mKtt
-----END PGP SIGNATURE-----

Sorry, I am using 0.4.7. The re-install did not fix the problem.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, I’m all out of ideas. It just looked like it might have been something
to do with SearchBuilder… dunno, I guess just check if the make testdeps
ran with all ‘found’. Stop and start apache, not restart. Dance and jump
around your box saying, "Work, work, work."On Wednesday 05 December 2001 01:37 pm, Erik Andrejko wrote:

Sorry, I am using 0.4.7. The re-install did not fix the problem.

-----Original Message-----
From: Josh Krikke [SMTP:krikke@macatawa.org]
Sent: Wednesday, December 05, 2001 10:57 AM
To: Erik Andrejko
Cc: 'rt-users@lists.fsck.com’
Subject: Re: [rt-users] Index.html not found

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

0.4.9, eh? Are you looking at the same SearchBuilder.pm file I am?
Mine’s
version 0.47 and the latest from Jesse’s site is 0.48pre2.

Anyway, you didn’t say if uninstalling and reinstalling worked. Did it?

On Wednesday 05 December 2001 11:53 am, Erik Andrejko wrote:

I have version 0.4.9. I have un-installed and re-installed the latest
version.

Erik

-----Original Message-----
From: Josh Krikke [SMTP:krikke@macatawa.org]
Sent: Tuesday, December 04, 2001 1:50 PM
To: Erik Andrejko
Cc: 'rt-users@lists.fsck.com’
Subject: Re: [rt-users] Index.html not found

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What version of SearchBuilder are you using?

Make sure it is the most current version…


Josh Krikke krikke@macatwa.org
MacNet Sysadmin Holland, MI
GnuPG Fingerprint: AC6F 13AC F945 CC45 BDFC 509E 8F41 9549 64DD 95DB
My public key
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64DD95DB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Dl/Zj0GVSWTdldsRAnBEAJ9MpfDUBSjYDTgUMGH6Xw8EKwLreQCdFWTL
IFAIQHvmPNVJezPOKg0fWAc=
=mKtt
-----END PGP SIGNATURE-----


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


Josh Krikke krikke@macatwa.org
MacNet Sysadmin Holland, MI
GnuPG Fingerprint: AC6F 13AC F945 CC45 BDFC 509E 8F41 9549 64DD 95DB
My public key http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x64DD95DB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8DnJgj0GVSWTdldsRAownAJ4hYmz50KkqtmKR6w6O1wNVsNoU6wCbBQDr
XPbH9eOyzNqODKJaN4HpS2o=
=rxta
-----END PGP SIGNATURE-----