Slamdot

  • Home
  • Tour
  • Buzz
  • Blog
  • Help
  • Pricing & Sign-up

Back to: Slamdot Help → Ruby on Rails → Why am I getting a "Rails application failed to start properly" error?

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

  1. Your public directory's permissions are not set to 755.
  2. Your dispatch.fcgi or dispatch.cgi permissions are not set to 755.
  3. The first line (shebang) of your dispatch.fcgi or dispatch.cgi files are not set to #!/usr/bin/env ruby.
  4. You have puts statements somewhere in your code.
  5. Your database name or password is incorrect in your database.yml configuration file.
  6. You have not properly enabled production mode in your environment.rb file by uncommenting ENV['RAILS_ENV'] ||= 'production'.
  7. Your RAILS_GEM_VERSION in your environment.rb is not set to the version of Rails that is installed on the server.
  8. 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.

Tags: ror ruby rails error fail

Rating:

  • Email
  • Print
  • Add Comment
How helpful was this article to you?

Related Articles

  • How do I install Ruby on Rails?

    You can easily Ruby on Rails from within your control panel with just a few clicks. From your dashboard, choose a plan to manage. Click the...

    (No rating) November 29, 2007 Views: 1501

  • How do you support Ruby on Rails?

    Slamdot supports Ruby on Rails using FastCGI and Apache 1.3. This is the current FastCGI configuration: FastCgiConfig -autoUpdate -initial-env...

    (No rating) December 29, 2006 Views: 1236

  • How do I create custom error pages?

    Error pages allow you to control what visitors see when they encounter these types of errors: 401 Unauthorized (the visitor does not have...

    (No rating) April 19, 2006 Views: 906

Comments so far ↓

  • There are no comments yet...Kick things off by adding a comment →

Got more questions? Got feature requests?

Please contact us and we'll get back to you shortly.

Search this site

Categories

  • Advanced
  • Domain Registration
  • Email
  • Files
  • Getting Started
  • Plan
  • Ruby on Rails
  • Scripts
  • Uploading to Your Site
  • Website

Copyright © 2008 Slamdot, Inc. All rights reserved.

  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Contact Us