Why am I getting a "Rails application failed to start properly" error?Posted by Sean on July 17, 2007
There are a number of reasons as to why you may be receiving this error message. The first place that you should check is your error log inside your Slamdot account. The next place that you should look is within the log directory for your Rails application. Both of these locations should provide you with a better understanding of what is going wrong within your application.
Common reasons why your Rails application won't start
- Your public directory's permissions are not set to 755.
- Your dispatch.fcgi or dispatch.cgi permissions are not set to 755.
- The first line (shebang) of your dispatch.fcgi or dispatch.cgi files are not set to #!/usr/bin/env ruby.
- You have puts statements somewhere in your code.
- Your database name or password is incorrect in your database.yml configuration file.
- You have not properly enabled production mode in your environment.rb file by uncommenting ENV['RAILS_ENV'] ||= 'production'.
- Your RAILS_GEM_VERSION in your environment.rb is not set to the version of Rails that is installed on the server.
- You are missing gems needed by your application.
You should first verify that your site runs under regular CGI mode before switching to FastCGI. You'll need to restart your FastCGI processes whenever you make a change to your code while in FastCGI mode.