Welcome Guest | Login

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
    AddHandler fastcgi-script .fcgi
    is missing from the httpd.conf AND the user removes it from their app's .htaccess this error will be thrown.

  • 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.





Hello Guest! In order to edit this article you must be an active client with us, please log in or sign up today!






Contributing Author(s):
William