Ruby on Rails, FastCGI errors, "incomplete headers"

apps

#1

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 http://lifestream.dreamhost.com/lifestream.

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 64.202.160.65] FastCGI:
incomplete headers (0 bytes) received from server
"/home/monkinetic/lifestream.deliciouslymeta.com/public/dispatch.fcgi"

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.

Thanks,

–Steve


#2

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

All better. sigh.