FastCGI: incomplete headers (0 bytes) received from server
This is a wiki article created by HostingRails users. Please login or signup to make edits.
This thread is devoted to help those of you who are seeing this error and wish to make it go away.
You are seeing this error because no headers are returned when a request gets through to dispatch.fcgi
Possible reasons (and solutions) for this error are:
- Session files are not configured correctly - often when you're moving between server types. Delete the sessions in your /tmp folder, run "killall -usr1 dispatch.fcgi", and give it another go.
- AddHandler missing - this one's more for our admins (or any admin), if the
is missing from the httpd.conf AND the user removes it from their app's .htaccess this error will be thrown.AddHandler fastcgi-script .fcgi
- Has anyone seen other reasons for this error in Rails?
If you're still having trouble, please feel free to ask a question in our deployment troubleshooting forum and/or update the content here for the next developer.
William