Ruby on Rails, FastCGI errors, "incomplete headers"

I’ve been scouring the net and the DH wiki trying to resolve this issue. I’ve found a variety of

I have a rails app at

If you hit that URL it goes for a while, then Apache dumps this into
the error log:

[Wed Jan 24 07:18:00 2007] [error] [client] FastCGI:
incomplete headers (0 bytes) received from server

Someone from DH said that the process is getting killed for CPU/memory usage, which I don’t understand, since hitting the same app on Rails’ built-in webserer on port 3000 (not running now) brings the app up right away with no fuss.

So I think it must be an FCGI config issue. I’ve tried permissions changes, modifying .htaccess and dispatch.fcgi,
to no effect. This really has me stumped – any suggestions would be appreciated.



$ find . -name “.rb" -exec dos2unix ‘{}’ ;
$ find . -name "
.rhtml” -exec dos2unix ‘{}’ ;
$ find . -name “*.yml” -exec dos2unix ‘{}’ ;

All better. sigh.