RT server crashing unexpectedly with Premature end of script headers: rt-server.fcgi

Hi Everyone,

I’m brand new to RT and trying to get a stable instance up for my
organization. It works most of the time, and seems to be stable on chrome,
but when I try clicking around in Firefox or IE, I pretty quickly get a
crash.
The RT log shows"
[critical]: Can’t use an undefined value as an ARRAY reference at
*/RT/PlackRunner.pm line 136.
My httpd log shows:
[error] [client myIP] Premature end of script headers: rt-server.fcgi,
referer: http:/my-rt.mydomain.com/Ticket/ModifyAll.html?id=61

I’ve searched around and seen a lot of people with similar issues, but the
solutions don’t seem to do anything for me. Any help would be greatly
appreciated!

Thank you,

Dillon J. McDowell
Information Systems
QA Tools Integration | Test Environment Verification
dmcdowell@costco.com | 425-416-8922

[critical]: Can’t use an undefined value as an ARRAY reference at
*/RT/PlackRunner.pm line 136.

This means that rt-server isn’t being passed the right arguments to
start up; it has nothing to do with the browser. Please show your
Apache configuration.

  • Alex

Thanks, Alex. Here’s my httpd.conf file, with the commented lines removed:

ServerRoot “/rt/httpd”
Listen 8080

LoadModule fcgid_module modules/mod_fcgid.so
FcgidMaxRequestLen 1073741824

User rt
Group rt
ServerAdmin isqart@costco.com
ScriptAlias / /rt/rt4/sbin/rt-server.fcgi/
DocumentRoot “/rt/rt4/share/html”
AddDefaultCharset UTF-8

Order allow,deny Allow from all Options +ExecCGI AddHandler fcgid-script fcgi

ErrorLog “logs/error_log”

LogLevel debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"

"%{User-Agent}i"" combined
LogFormat “%h %l %u %t "%r" %>s %b” common

<IfModule logio_module>
  # You need to enable mod_logio.c to use %I and %O
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"

"%{User-Agent}i" %I %O" combinedio

CustomLog "logs/access_log" common

DefaultType text/plain

TypesConfig conf/mime.types

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

LoadModule ssl_module modules/mod_ssl.so

SSLRandomSeed startup builtin SSLRandomSeed connect builtin

Listen 8443
<VirtualHost *:8443>
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /rt/httpd/conf/lapqrt01094p01.cer
SSLCertificateKeyFile /rt/httpd/conf/lapqrt01094p01.key
<Files ~ “.(cgi|shtml|phtml|php3?)$”>
SSLOptions +StdEnvVars

<Directory “/var/www/cgi-bin”>
SSLOptions +StdEnvVars

SetEnvIf User-Agent “.MSIE.
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0

Thank you,

Dillon J. McDowell
Information Systems
QA Tools Integration | Test Environment Verification
dmcdowell@costco.com | 425-416-8922On Mon, Aug 18, 2014 at 11:19 AM, Alex Vandiver alexmv@bestpractical.com wrote:

On 08/18/2014 01:47 PM, Dillon McDowell wrote:

[critical]: Can’t use an undefined value as an ARRAY reference at
*/RT/PlackRunner.pm line 136.

This means that rt-server isn’t being passed the right arguments to
start up; it has nothing to do with the browser. Please show your
Apache configuration.

  • Alex

Just to add some things I’ve discovered while troubleshooting this issue.
We appear to be blocking on a read call against the fast cgi socket until
fcgid reaches the 40 second timeout and kills the process. We can
consistently reproduce the error if we try to refresh while on the Self
Service screen. Clicking around at a normal place will not repro the
issue. If anyone has help, pointers or answers I would greatly appreciate
it!

Thank you,

Dillon J. McDowell
Information Systems
QA Tools Integration | Test Environment Verification
dmcdowell@costco.com | 425-416-8922On Mon, Aug 18, 2014 at 11:30 AM, Dillon McDowell dmcdowell@costco.com wrote:

Thanks, Alex. Here’s my httpd.conf file, with the commented lines removed:

ServerRoot “/rt/httpd”
Listen 8080

LoadModule fcgid_module modules/mod_fcgid.so
FcgidMaxRequestLen 1073741824

User rt
Group rt
ServerAdmin isqart@costco.com
ScriptAlias / /rt/rt4/sbin/rt-server.fcgi/
DocumentRoot “/rt/rt4/share/html”
AddDefaultCharset UTF-8

Order allow,deny Allow from all Options +ExecCGI AddHandler fcgid-script fcgi

ErrorLog “logs/error_log”

LogLevel debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"

"%{User-Agent}i"" combined
LogFormat “%h %l %u %t "%r" %>s %b” common

<IfModule logio_module>
  # You need to enable mod_logio.c to use %I and %O
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"

"%{User-Agent}i" %I %O" combinedio

CustomLog "logs/access_log" common

DefaultType text/plain

TypesConfig conf/mime.types

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

LoadModule ssl_module modules/mod_ssl.so

SSLRandomSeed startup builtin SSLRandomSeed connect builtin

Listen 8443
<VirtualHost *:8443>
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /rt/httpd/conf/lapqrt01094p01.cer
SSLCertificateKeyFile /rt/httpd/conf/lapqrt01094p01.key
<Files ~ “.(cgi|shtml|phtml|php3?)$”>
SSLOptions +StdEnvVars

<Directory “/var/www/cgi-bin”>
SSLOptions +StdEnvVars

SetEnvIf User-Agent “.MSIE.
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0

Thank you,

Dillon J. McDowell
Information Systems
QA Tools Integration | Test Environment Verification
dmcdowell@costco.com | 425-416-8922

On Mon, Aug 18, 2014 at 11:19 AM, Alex Vandiver alexmv@bestpractical.com wrote:

On 08/18/2014 01:47 PM, Dillon McDowell wrote:

[critical]: Can’t use an undefined value as an ARRAY reference at
*/RT/PlackRunner.pm line 136.

This means that rt-server isn’t being passed the right arguments to
start up; it has nothing to do with the browser. Please show your
Apache configuration.

  • Alex