Project

General

Profile

Actions

Patch #2815

closed

Internal server error after updating to r2519

Added by Mihaly Nyeste over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-02-23
Due date:
% Done:

0%

Estimated time:

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

config_action_controller_session_r2519.patch (759 Bytes) config_action_controller_session_r2519.patch Mihaly Nyeste, 2009-02-23 21:23
prod.log (3.5 KB) prod.log Jérémy Lal, 2009-10-03 12:43
Actions

Also available in: Atom PDF