[rt-users] RT 3.8.1nb1 on NetBSD 4.0 problem with Out of memory! and FastCGI: incomplete headers (0 bytes) received from server

Bartosz Maciejewski b.maciejewski at agriplus.pl
Fri Feb 13 03:51:29 EST 2009


Hi there list!

This is my first post, and I'm newbie with RT so excuse any trivial 
question. I have searched many sites and threads but cannot find 
solution for my problem so I'm writing it here.

First of all - configuration:

OS: NetBSD 4.0
CPUs: 2x "Intel(R) Xeon(TM) CPU 3.00GHz"
RAM: 2 GB

Soft:

ap2-fastcgi-2.4.6   New, improved CGI-like interface module for Apache

p5-FCGI-0.67nb3     Perl5 library for FastCGI, a fast startup 
alternative to CGI

rt-3.8.1nb1  - Industrial-grade ticketing system

fcgi-2.4.0nb1       FastCGI application development kit

apache-2.0.63nb4    Apache HTTP (Web) server, version 2

mysql-server-5.0.67nb1 MySQL 5, a free SQL database (server)

Lots of perl modules which I belive are completly list of what RT need, 
becouse installed RT from pkgsrc.

Now, after compiling and setup VirtualHost on Apache:

# Tell FastCGI to put its temporary files somewhere sane.
FastCgiIpcDir /tmp

FastCgiServer /usr/pkg/bin/mason_handler.fcgi -idle-timeout 360 
-processes 10

<VirtualHost 10.1.0.5>
    ServerName 10.1.0.5

    # Pass through requests to display images
    Alias /NoAuth/images/ /usr/pkg/share/rt3/html/NoAuth/images/

    AddHandler fastcgi-script .fcgi
    ScriptAlias / /usr/pkg/bin/mason_handler.fcgi/
</VirtualHost>

I have propper login screen, I can login, but randomly when I click 
something get error 500 from apache. The logs show something like this:


*** /var/log/httpd//error_log ***
Out of memory!
[Fri Feb 13 09:25:25 2009] [error] [client 10.1.0.85] FastCGI: 
incomplete headers (0 bytes) received from server 
"/usr/pkg/bin/mason_handler.fcgi"
[Fri Feb 13 09:25:25 2009] [warn] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" (pid 1446) terminated by calling exit 
with status '1'
[Fri Feb 13 09:25:25 2009] [warn] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" restarted (pid 21200)

*** /var/log/httpd//access_log ***
10.1.0.85 - - [13/Feb/2009:09:25:25 +0100] "GET / HTTP/1.1" 500 699

This error remains, as long as I restart Firefox or any other browser. 
Then after going to http://10.1.0.5 got normal login page. And logs shows:


*** /var/log/httpd//access_log ***
10.1.0.85 - - [13/Feb/2009:09:26:48 +0100] "GET / HTTP/1.1" 200 5074
10.1.0.85 - - [13/Feb/2009:09:26:56 +0100] "POST /index.html HTTP/1.1" 
200 16810

*** /var/log/httpd//error_log ***
[Fri Feb 13 09:26:56 2009] [error] [client 10.1.0.85] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" stderr: [Fri Feb 13 08:26:56 2009] 
[info]: Successful login for root from 10.1.0.85 
(/usr/pkg/share/rt3/html/autohandler:273), referer: http://10.1.0.5/

*** /var/log//messages ***
Feb 13 09:26:56 snort RT: Successful login for root from 10.1.0.85 
(/usr/pkg/share/rt3/html/autohandler:273)

So far, so good. But once again, when i chose some options on random 
time got this error from begin of the post. 100% to recreate error is 
when i chose "Take" for the ticket.

Logs:

*** /var/log/httpd//error_log ***
[Fri Feb 13 09:29:34 2009] [error] [client 10.1.0.85] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" stderr: [Fri Feb 13 08:29:34 2009] 
[info]: <rt-3.8.1-25966-1234513774-1082.3-2-0@*****.pl> #3/68 - Scrip 2 
On Owner Change Notify Owner 
(/usr/pkg/lib/rt3/RT/Action/SendEmail.pm:302), referer: 
http://10.1.0.5/index.html
[Fri Feb 13 09:29:34 2009] [error] [client 10.1.0.85] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" stderr: [Fri Feb 13 08:29:34 2009] 
[info]: <rt-3.8.1-25966-1234513774-1082.3-2-0@******.pl> No recipients 
found. Not sending. (/usr/pkg/lib/rt3/RT/Interface/Email.pm:338), 
referer: http://10.1.0.5/index.html
Out of memory!
[Fri Feb 13 09:29:34 2009] [error] [client 10.1.0.85] FastCGI: 
incomplete headers (0 bytes) received from server 
"/usr/pkg/bin/mason_handler.fcgi", referer: http://10.1.0.5/index.html
[Fri Feb 13 09:29:34 2009] [warn] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" (pid 26744) terminated by calling exit 
with status '1'
[Fri Feb 13 09:29:34 2009] [warn] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" restarted (pid 29552)

*** /var/log//messages ***
Feb 13 09:29:34 snort RT: 
<rt-3.8.1-25966-1234513774-1082.3-2-0@******.pl> #3/68 - Scrip 2 On 
Owner Change Notify Owner (/usr/pkg/lib/rt3/RT/Action/SendEmail.pm:302)
Feb 13 09:29:34 snort RT: 
<rt-3.8.1-25966-1234513774-1082.3-2-0@******.pl> No recipients found. 
Not sending. (/usr/pkg/lib/rt3/RT/Interface/Email.pm:338)

*** /var/log/httpd//access_log ***
10.1.0.85 - - [13/Feb/2009:09:29:34 +0100] "GET 
/Ticket/Display.html?Action=Take&id=3 HTTP/1.1" 302 -
10.1.0.85 - - [13/Feb/2009:09:29:34 +0100] "GET 
/Ticket/Display.html?id=3&results=8dabe01c05d7625caabbba62e464ae74 
HTTP/1.1" 500 699
10.1.0.85 - - [13/Feb/2009:09:29:37 +0100] "GET /favicon.ico HTTP/1.1" 
500 699

*** /var/log/httpd//error_log ***
Out of memory!
[Fri Feb 13 09:29:37 2009] [error] [client 10.1.0.85] FastCGI: 
incomplete headers (0 bytes) received from server 
"/usr/pkg/bin/mason_handler.fcgi"
[Fri Feb 13 09:29:37 2009] [warn] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" (pid 5723) terminated by calling exit 
with status '1'
[Fri Feb 13 09:29:39 2009] [warn] FastCGI: server 
"/usr/pkg/bin/mason_handler.fcgi" restarted (pid 9692)

Yes, I know, there maybe some misconfiguration about sending mail, but 
should RT just inform me about this instead of error 500? Anyway, 
sometimes when I click for example Configuration (which is not sending 
mail) got the same Out Of Memory! and incomplete headers error.

What may be interesting also, but don't know if this is corressponding, 
after restarting browser I have that ticket assigned to me. Then when I 
editing it (seneding comments, closing etc.) it immediatelly log me off. 
After login, changes I made are comitted (for example closing ticket).

Clearing Mason cache also don't help:
rm -Rf /var/spool/rt3/mason_data/obj


Thank anybody for time to help me :)


-- 
Bartosz Maciejewski




More information about the RT-Users mailing list