Patch #2815
closedInternal server error after updating to r2519
Description
After updating to r2519 redmine stopped to work, the error message was HTTP 500, the relevant log excerpt is the following:
/!\ FAILSAFE /!\ Mon Feb 23 20:51:51 +0100 2009
Status: 500 Internal Server Error
A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase of at least 30 characters" } in config/environment.rb
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session/cookie_store.rb:91:in `ensure_secret_secure'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session/cookie_store.rb:59:in `initialize'
/usr/lib/ruby/1.8/cgi/session.rb:279:in `new'
...
Based on error message I added the following line to environment.rb:
config.action_controller.session = { :session_key => "_myapp_session", :secret => "eiR0Eph9cein2ooreree3Aiya1ocho"}
I'm not sure, that it is the proper solution, but it is working for me.
Files