[rt-users] Some more information on RT and FASTcgi problem (was Gastcgi incomplete headers)

John BORIS jboris at adphila.org
Tue Jun 5 12:27:03 EDT 2007


I am still looking into the error message in the rt error log:
[Mon Jun 04 09:43:10 2007] [error] [client 172.31.6.95] FastCGI: comm
with server "/opt/rt3/bin/mason_handler.fcgi" aborted: idle timeout (120
sec)
[Mon Jun 04 09:43:10 2007] [error] [client 172.31.6.95] FastCGI:
incomplete headers (0 bytes) received from server
"/opt/rt3/bin/mason_handler.fcgi"
[Mon Jun 04 09:46:48 2007] [error] [client 172.31.6.95] FastCGI: comm
with server "/opt/rt3/bin/mason_handler.fcgi" aborted: idle timeout (120
sec)


I found somethng about increasing the timeout for fastcgi and that
didn't help. I then restarted the machine and I was able to connect to
my RT system and get the RT at a Glance page up. I then sent an email to
the system and the error below showed up. I have a script that assigns
owners based on the queue when the ticket arrives through rt-mailgate.
Here is the error.



[Tue Jun 05 12:14:57 2007] [error] [client 172.31.6.209] FastCGI:
server "/opt/rt3/bin/mason_handler.fcgi" stderr: Number found where
operator expected at (eval 601) line 1, near "Return 1"
[Tue Jun 05 12:14:57 2007] [error] [client 172.31.6.209] FastCGI:
server "/opt/rt3/bin/mason_handler.fcgi" stderr: \t(Do you need to
predeclare Return?)
[Tue Jun 05 12:14:57 2007] [error] [client 172.31.6.209] FastCGI:
server "/opt/rt3/bin/mason_handler.fcgi" stderr: [Tue Jun  5 16:14:53
2007] [error]: Scrip 29 Prepare failed: syntax error at (eval 601) line
1, near "Return 1"
[Tue Jun 05 12:14:57 2007] [error] [client 172.31.6.209] FastCGI:
server "/opt/rt3/bin/mason_handler.fcgi" stderr: 
(/opt/rt3/lib/RT/Action/UserDefined.pm:65)


I looked at this scrip and it looks fine. The scrip is:

Custom condition: Blank
Custom action preparation code:  Return 1;
Custom action cleanup code: my $MyUser = "thi";
my $QueueName = "Bonner-Prendie::Thin-Client"; 
return 1 unless $self->TicketObj->QueueObj->Name eq $QueueName; 
my $Actor = $self->TransactionObj->Creator; 
return 1 if $Actor == $RT::SystemUser->id; 
return 1 unless $self->TicketObj->Owner == $RT::Nobody->id;
$RT::Logger->info("Auto assigning ticket #". $self->TicketObj->id ." to
user $MyUser" );
my ($status, $msg) = $self->TicketObj->SetOwner( $MyUser ); 
unless( $status ) {
  $RT::Logger->warning( "Impossible to assign the ticket to $MyUser:
$msg" );
return undef;
}
1;


I copied this scrip from the wiki since I am a bit Perl challenged.   I
did find one of my scrips had a colon ":" instead of a semmicolon ";" in
the Custom action preparation Code block and I changed that but it
didn't help.

I am running Fedora Core 4 and mysql 4.11 with RT 3.4.5.

TIA


John J. Boris, Sr.
JEN-A-SyS Administrator
Archdiocese of Philadelphia
222 North 17th Street
Philadelphia, Pa. 19103
Tel: 215-965-1714
Fax: 215-587-3525
"Remember! That light at the end of the tunnel
Just might be the headlight of an oncoming train!"



More information about the rt-users mailing list