Welcome Guest | Login

Possible problems with Digest/SHA1

Hi there, I just deployed my app with Capistrano and I am having problems with a "Application error: Rails application failed to start properly". There are no log contents, as it seems Rails cannot even fire up.

I have made sure that:

* I have the correct Shebang line in the dispatchers
* There are NO RAILS_GEM_VERSION discrepancies
* Correct database configuration (because I had a previous error that has not appeared since I eliminated some white_spaces in database.yml).
* I have even deployed again after adding the task from: http://www.hostingrails.com/forums/deployment_troubleshooting_thread/171

The only thing I can think of is a conflict when I call require 'digest/sha1' in environment.rb.

I have searched the forums but found no references to this. Could this be the problem? What would be the solution?

Thanks, Francisco

2007-04-06 02:55 PM

Francisco, 99% of the application failed to start errors are solved in the following threads
http://www.hostingrails.com/forums/wiki_thread/15http://www.hostingrails.com/forums/wiki_thread/9

However, it sounds like you've been through these.  This is probably not a digest/sha1 issue and likely a cap-induced problem or a typo somewhere in your .htaccess.  if you've already ran across the cap thread then the last resort really is to have support take a look at your setup.

2007-04-06 03:02 PM

I found it!!
Incredible as it seems, in database.yml the 2 spaces before each line (under production) were missing:

production:
 adapter: mysql
 database: user_db
 username: user_userdb
 password: pass
 socket: /tmp/mysql.sock

2007-04-07 02:24 PM

Sweet - I'm glad you have it working now.   Good catch.  

2007-04-07 02:34 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.