Welcome Guest | Login

Rails app now gives 500 error

I have had my typo site hosted with some other rails apps hosted for sometime with most everything working fine.  I have a fan of one of my apps email me today saying the app is giving them a 500 error.  I check the link:
http://www.thomasonrails.com/warholit/ and sure enough its giving me the error to so I go into a production.log and see something I haven't seen before:
(cutting and pasting this from putty sorry)....
this makes no sense to me and im not sure why my app all of a sudden just started to do this?
any ideas? i can get the full log file and do a better cut and paste if this doesn't help...


/!\ FAILSAFE /!\  Wed Feb 13 13:00:47 -0600 2008
 Status: 500 Internal Server Error
 A secret is required to generate an integrity hash for cookie session data. U$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/se$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/se$
   /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new'
   /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize_without_cgi_reade$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cg$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cg$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cg$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cg$
   /usr/loca

2008-02-13 01:05 PM

You need to configure your database.yml properly.

2008-02-13 02:20 PM

Thanks , the app never uses or used a database, but I will check the file anyway perhaps it got corrupted.  I do find it strange it just started to give me this error and I haven't touched any thing in it over a year.

2008-02-13 02:27 PM

Its possible this occurred with an upgrade of Rails and/or RubyGems.  What version of Rails are you running?  Do you have the RAILS_GEM_VERSION line in your environment.rb?  without that it will default to rails 2.0.2 currently.

2008-02-13 03:51 PM

The RAILS_GEM_VERSION is commented out but says:
1.1.2, should I uncomment it and see if that takes care of things?

2008-02-13 03:54 PM

Yes, please try uncommenting the line now and see if it helps.

2008-02-13 05:19 PM


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