FastCGI/Mason: "could not find component for initial path..."

Figured I should try this list instead.
I’ve held my breath for quite some time going though these list archives,
but I am now stuck. I have new versions of everything (RT, Mason,
FastCGI/mod_fastcgi, Perl, MySQL, Apache [not 2]). Running SuSE 8.1.

I have a problem described earlier, but the fix posted did not help me. It
is:
could not find component for initial path ‘/opt/rt2/WebRT/html/index.html’

Stack:
[/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:166]
[/usr/lib/perl5/site_perl/5.8.0/Class/Container.pm:216]
[/usr/lib/perl5/site_perl/5.8.0/Class/Container.pm:279]
[/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Interp.pm:228]
[/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Interp.pm:222]
[/opt/rt2/bin/mason_handler.fcgi:208]

I, however, also get this error in the error_log:
[error] [client 207.207.8.67] FastCGI: server
"/opt/rt2/bin/mason_handler.fcgi" stderr: Your component path
(/opt/rt2/WebRT/html/index.html) matches a real file on disk
(/opt/rt2/WebRT/html/index.html). Have you read about the component root in
the Administrator’s Manual (HTML::Mason::Admin)? at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Resolver/File.pm line 91,
line 28.

And yes, I have read it. That doesn’t mean I completely understood it,
however :slight_smile:

Anyway, here is my config:
From config.pm:
$MasonComponentRoot= “/opt/rt2/WebRT/html”;
$MasonLocalComponentRoot ="/opt/rt2/local/WebRT/html";
$MasonDataDir = “/opt/rt2/WebRT/data”;
$MasonSessionDir = “/opt/rt2/WebRT/sessiondata”;

I have a problem described earlier, but the fix posted did not help me. It
is:
could not find component for initial path ‘/opt/rt2/WebRT/html/index.html’

So, when I go to a page I know to be undefined “/Foo”, I get the message
could not find component for initial path ‘/Foo.html’ Is it perhaps
the case that you’re typing http://host/opt/rt2/WebRT/html/index.html
into you browser, rather than http://host/ ?

»|« http://www.bestpractical.com/rt – Trouble Ticketing. Free.

No, I’m actually going to ~http://rt.foo.com
The login page comes up and I can log in as root, but whenever I go to any
of the subpages, such as home, configuration, search, etc. then that message
comes up, as either index.html, prefs.html, or whatever.

Do I have the MasonComponentRoots set incorrectly?

Thanks,
-Charles

No, I’m actually going to ~http://rt.foo.com
The login page comes up and I can log in as root, but whenever I go to any
of the subpages, such as home, configuration, search, etc. then that message
comes up, as either index.html, prefs.html, or whatever.

what’s the full path that it’s pointing you to for “Prefs.html”?

Do I have the MasonComponentRoots set incorrectly?

Thanks,
-Charles

So, when I go to a page I know to be undefined “/Foo”, I get the message
could not find component for initial path ‘/Foo.html’ Is it perhaps
the case that you’re typing http://host/opt/rt2/WebRT/html/index.html
into you browser, rather than http://host/ ?


rt-users mailing list
rt-users@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.

what’s the full path that it’s pointing you to for “Prefs.html”?

http://rt.cyc.com/opt/rt2/WebRT/html/User/Prefs.html

It does that with all links. I understand that since rt.cyc.com resolves to
the path aready, it is doubling the paths (so essentially it is looking for
/opt/rt2/WebRT/html/opt/rt2/WebRT/html/User/Prefs.html). So I guess it’s a
matter of understanding which path variables are absolute and which are
relative. If I type in all the correct links manually, it works fine.

I’m not sure if this explains the odd error_log message about Mason though.

Thanks,
-Charles

Well, you didn’t paste in your “WebPath” “WebBaseURL” and "WebURL"
variables, but I bet you have one of those set to include the filessytem
pathOn Wed, Jan 22, 2003 at 06:26:56PM -0600, Charles Smith wrote:

what’s the full path that it’s pointing you to for “Prefs.html”?

http://rt.cyc.com/opt/rt2/WebRT/html/User/Prefs.html

It does that with all links. I understand that since rt.cyc.com resolves to
the path aready, it is doubling the paths (so essentially it is looking for
/opt/rt2/WebRT/html/opt/rt2/WebRT/html/User/Prefs.html). So I guess it’s a
matter of understanding which path variables are absolute and which are
relative. If I type in all the correct links manually, it works fine.

I’m not sure if this explains the odd error_log message about Mason though.

Thanks,
-Charles


rt-users mailing list
rt-users@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.