Strange Error RT restart

RT: rt-4.0.5
Ubuntu 10.04.3 LTS

Hello everybody

I have a strange Problem with my Test-Environment RT based on RT 4.0

if i try to restart apache and get on the webif there comes an apache
error and the last lines from the apache log says the following :

error.log

Set"
Compilation failed in require at /opt/rt4/sbin/…/lib/RT/Config.pm line 904.
[Mon Mar 26 15:36:21 2012] [warn] [client 192.168.112.1] (104)Connection
reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Mar 26 15:36:21 2012] [error] [client 192.168.112.1] Premature end of
script headers: rt-server.fcgi
[Mon Mar 26 15:36:27 2012] [notice] mod_fcgid: process
/opt/rt4/sbin/rt-server.fcgi(7393) exit(communication error), terminated by
calling exit(), return code: 255
[Tue Mar 27 09:13:24 2012] [warn] module fcgid_module is already loaded,
skipping
[Tue Mar 27 09:13:24 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4
mod_perl/2.0.4 Perl/v5.10.1 configured – resuming normal operations

the configs are standard and very similar to the readme example:

here is the RT_Siteconfig:

Any configuration directives you include here will override

RT’s default configuration file, RT_Config.pm

To include a directive here, just copy the equivalent statement

from RT_Config.pm and change the value. We’ve included a single

sample value below.

This file is actually a perl module, so you can include valid

perl code, as well.

The converse is also true, if this file isn’t valid perl, you’re

going to run into trouble. To check your SiteConfig file, use

this comamnd:

perl -c /path/to/your/etc/RT_SiteConfig.pm

You must restart your webserver after making changes to this file.

Set( $rtname, ‘example.com’);

You must install Plugins on your own, this is only an example

of the correct syntax to use when activating them.

There should only be one @Plugins declaration in your config file.

#Set(@Plugins,(qw(RT::Extension::QuickDelete
RT::Extension::CommandByMail)));

1;

#Set($LogToFileNamed , “rt.log”);
#Set($LogToFile, ‘debug’);

Set($WebPath, “/rt”);
Set($WebDomain, ‘ipadress’)
#Set($WebBaseURL , “http://ipadress/rt”);

Set($JSMinPath, ‘/opt/rt4/bin/jsmin’);

#Set($CorrespondAddress , localhost.localdomain );
#Set($CommentAddress , localhost.localdomain );

And here is the apache one:

rt4fcgid:

AddDefaultCharset UTF-8
#AddHandler fcgid-script .fcgi

    Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
    ScriptAlias /rt  /opt/rt4/sbin/rt-server.fcgi

    DocumentRoot "/opt/rt4/share/html"
    <Location /rt>
        Order allow,deny
        Allow from all

        Options +ExecCGI
        AddHandler fcgid-script fcgi
    </Location>

RedirectMatch permanent (.*)/$ http://ipadress$1/index.html

Alias /rt “/opt/rt4/share/html”

#<Directory “/opt/rt4/share/html”>
#Options FollowSymLinks ExecCGI
#AllowOverride None
#
#ExpiresActive On
#ExpiresByType text/css A3600
#ExpiresByType image/png A3600
#ExpiresByType application/x-javascript A3600
#ExpiresByType image/gif A3600
#Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
#Alias /pics/ /opt/rt3/share/html/NoAuth/images/pics/
#ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

</VirtualHost>

What i have done :

I don’t know where i should have to start in order to fix or at least to
determine the problem …

best regards john s.

View this message in context: http://old.nabble.com/Strange-Error-RT-restart-tp33544776p33544776.html

I suspect the 2 lines

#Set(@Plugins,(qw(RT::Extension::QuickDelete
RT::Extension::CommandByMail)));

Either you start the 2 lines with # or you don’t.
You want either

#Set(@Plugins,(qw(RT::Extension::QuickDelete
#RT::Extension::CommandByMail)));

or

Set(@Plugins,(qw(RT::Extension::QuickDelete
RT::Extension::CommandByMail)));

GerardOn 2012-03-27 09:28, john s. wrote:

RT: rt-4.0.5
Ubuntu 10.04.3 LTS

Hello everybody

I have a strange Problem with my Test-Environment RT based on RT 4.0

if i try to restart apache and get on the webif there comes an apache
error and the last lines from the apache log says the following :

error.log

Set"
Compilation failed in require at /opt/rt4/sbin/…/lib/RT/Config.pm line 904.
[Mon Mar 26 15:36:21 2012] [warn] [client 192.168.112.1] (104)Connection
reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Mar 26 15:36:21 2012] [error] [client 192.168.112.1] Premature end of
script headers: rt-server.fcgi
[Mon Mar 26 15:36:27 2012] [notice] mod_fcgid: process
/opt/rt4/sbin/rt-server.fcgi(7393) exit(communication error), terminated by
calling exit(), return code: 255
[Tue Mar 27 09:13:24 2012] [warn] module fcgid_module is already loaded,
skipping
[Tue Mar 27 09:13:24 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4
mod_perl/2.0.4 Perl/v5.10.1 configured – resuming normal operations

the configs are standard and very similar to the readme example:

here is the RT_Siteconfig:

Any configuration directives you include here will override

RT’s default configuration file, RT_Config.pm

To include a directive here, just copy the equivalent statement

from RT_Config.pm and change the value. We’ve included a single

sample value below.

This file is actually a perl module, so you can include valid

perl code, as well.

The converse is also true, if this file isn’t valid perl, you’re

going to run into trouble. To check your SiteConfig file, use

this comamnd:

perl -c /path/to/your/etc/RT_SiteConfig.pm

You must restart your webserver after making changes to this file.

Set( $rtname, ‘example.com’);

You must install Plugins on your own, this is only an example

of the correct syntax to use when activating them.

There should only be one @Plugins declaration in your config file.

#Set(@Plugins,(qw(RT::Extension::QuickDelete
RT::Extension::CommandByMail)));

1;

#Set($LogToFileNamed , “rt.log”);
#Set($LogToFile, ‘debug’);

Set($WebPath, “/rt”);
Set($WebDomain, ‘ipadress’)
#Set($WebBaseURL , “http://ipadress/rt”);

Set($JSMinPath, ‘/opt/rt4/bin/jsmin’);

#Set($CorrespondAddress , localhost.localdomain );
#Set($CommentAddress , localhost.localdomain );

And here is the apache one:

rt4fcgid:

AddDefaultCharset UTF-8
#AddHandler fcgid-script .fcgi

     Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
     ScriptAlias /rt  /opt/rt4/sbin/rt-server.fcgi

     DocumentRoot "/opt/rt4/share/html"
     <Location /rt>
         Order allow,deny
         Allow from all

         Options +ExecCGI
         AddHandler fcgid-script fcgi
     </Location>

RedirectMatch permanent (.*)/$ http://ipadress$1/index.html

Alias /rt “/opt/rt4/share/html”

#<Directory “/opt/rt4/share/html”>
#Options FollowSymLinks ExecCGI
#AllowOverride None
#
#ExpiresActive On
#ExpiresByType text/css A3600
#ExpiresByType image/png A3600
#ExpiresByType application/x-javascript A3600
#ExpiresByType image/gif A3600
#Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
#Alias /pics/ /opt/rt3/share/html/NoAuth/images/pics/
#ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

 </VirtualHost>

What i have done :

I don’t know where i should have to start in order to fix or at least to
determine the problem …

best regards john s.