Main-squished.css is missing

Setup: RT-3.8.5, Perl-5.8.5, Apache-2.0.63, RHEL-4 on x86_64 Intel.

When I surf to the RT login page, I get an un-styled "text-only"
display.
(I do see the Best Practical logo in the upper-left, and I do see the
red
check-mark favicon in my browser’s address bar.) According to the Apache
error_log, the problem is that the CSS file isn’t present:

[Thu Oct 01 13:45:17 2009] [error] [client 171.64.171.122] File does
not exist:
/usr/local/rt3/share/html/NoAuth/css/web2/main-squished.css, referer:
http://pangea2.stanford.edu/rt/

The path given in the error message is the correct one, and Apache is
right
that the main-squished.css file is not there.

I understand that the main-squished.css file is generated “on the
fly” –
who’s supposed to do that, and when does it happen?

There are no other errors in Apache’s logs, and there are no entries
from
RT in /var/log/messages. Is there someplace else I can look?

Here’s my RT_SiteConfig.pm:

Set( $rtname, ‘SES’);
Set($Timezone , ‘US/Pacific’);
Set($Organization , “es.stanford.edu”);
Set($Webpath , “/rt”);
Set($WebBaseURL , “http://pangea2.stanford.edu”);
Set($CorrespondAddress , ‘esit@sesmail.stanford.edu’);
Set($CommentAddress , ‘esit-comment@sesmail.stanford.edu’);
Set($OwnerEmail , ‘rt-manager’);
@LogToSyslogConf = ( facility => ‘local3’, min_level => ‘warning’ )
unless (@LogToSyslogConf);

And here are the relevant snippets from httpd.conf:

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi
AddHandler fastcgi-script fcgi
Alias /NoAuth /usr/local/rt3/share/html/NoAuth
ScriptAlias /rt/ /usr/local/rt3/bin/mason_handler.fcgi/

I had to set the NoAuth alias to the value shown here to get rid of
an earlier
error from Apache – “File does not exist: /WWW/NoAuth”.

I’ve tried several fixes, none of which work for me:

o Make the directories under NoAuth/css, like web2, writable by the
group
Apache runs under (sesweb).

o Try 3.4-compat instead of web2.

o Try WebPath of “” instead of “/rt”.

o Confirm CSS::Squish is installed.

o Flush mason cache (delete the var/mason_data/obj directory and its
contents).

o Reset browser (Safari) or use a different browser (FireFox).

o Restart Apache for each test.

o Surf to /NoAuth/css/web2/main-squished.css directly with my
browser; this
results in the exact same error as I get when opening the RT login
page,
except that the “referer” clause is absent.

I’m out of ideas. How can I troubleshoot/fix this?

Kai Lanz Stanford University School of Earth
Sciences

Setup: RT-3.8.5, Perl-5.8.5, Apache-2.0.63, RHEL-4 on x86_64 Intel.

When I surf to the RT login page, I get an un-styled "text-only"
display.
(I do see the Best Practical logo in the upper-left, and I do see the
red
check-mark favicon in my browser’s address bar.) According to the Apache
error_log, the problem is that the CSS file isn’t present:

[Thu Oct 01 13:45:17 2009] [error] [client 171.64.171.122] File does
not exist:
/usr/local/rt3/share/html/NoAuth/css/web2/main-squished.css, referer:
http://pangea2.stanford.edu/rt/

The path given in the error message is the correct one, and Apache is
right
that the main-squished.css file is not there.

I understand that the main-squished.css file is generated “on the
fly” –
who’s supposed to do that, and when does it happen?

There are no other errors in Apache’s logs, and there are no entries
from
RT in /var/log/messages. Is there someplace else I can look?

Here’s my RT_SiteConfig.pm:

Set( $rtname, ‘SES’);
Set($Timezone , ‘US/Pacific’);
Set($Organization , “es.stanford.edu”);
Set($Webpath , “/rt”);
Set($WebBaseURL , “http://pangea2.stanford.edu”);
Set($CorrespondAddress , ‘esit@sesmail.stanford.edu’);
Set($CommentAddress , ‘esit-comment@sesmail.stanford.edu’);
Set($OwnerEmail , ‘rt-manager’);
@LogToSyslogConf = ( facility => ‘local3’, min_level => ‘warning’ )
unless (@LogToSyslogConf);

And here are the relevant snippets from httpd.conf:

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi
AddHandler fastcgi-script fcgi
Alias /NoAuth /usr/local/rt3/share/html/NoAuth

This prevents the mason dhandler from running and producing css

ScriptAlias /rt/ /usr/local/rt3/bin/mason_handler.fcgi/

I had to set the NoAuth alias to the value shown here to get rid of
an earlier
error from Apache – “File does not exist: /WWW/NoAuth”.

Sounds like an apache config issue, but you’ve found the wrong
solution to it.

-kevin

Alias /NoAuth /usr/local/rt3/share/html/NoAuth

This prevents the mason dhandler from running and producing css

ScriptAlias /rt/ /usr/local/rt3/bin/mason_handler.fcgi/

I had to set the NoAuth alias to the value shown here to get rid of
an earlier
error from Apache – “File does not exist: /WWW/NoAuth”.

Sounds like an apache config issue, but you’ve found the wrong
solution to it.

Thanks, Kevin, you’re correct. I’ve repaired my Apache config, and
now RT looks beautiful again.

For those interested, here’s my current config:

RT_SiteConfig.pm:

Set( $rtname, ‘SES’);
Set($Timezone , ‘US/Pacific’);
Set($Organization , “es.stanford.edu”);
Set($Webpath , “”);
Set($WebBaseURL , “http://esrt.stanford.edu”);
Set($CorrespondAddress , ‘esit@pangea.stanford.edu’);
Set($CommentAddress , ‘esit-comment@pangea.stanford.edu’);
Set($OwnerEmail , ‘rt-manager’);
@LogToSyslogConf = ( facility => ‘local3’, min_level => ‘warning’ )
unless (@LogToSyslogConf);

From Apache’s httpd.conf:

FastCgiIpcDir /var/tmp
FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi -idle-timeout 120

<VirtualHost *:80>
ServerName esrt.stanford.edu
ServerAlias esrt esrt.Stanford.EDU
DocumentRoot /usr/local/rt3/share/html/
AddHandler fastcgi-script fcgi
Alias /NoAuth/images /usr/local/rt3/share/html/NoAuth/images/
ScriptAlias / /usr/local/rt3/bin/mason_handler.fcgi/

Kai Lanz