Project

General

Profile

Actions

Defect #4227

closed

session_store.rb isn't being processed

Added by Jorge López over 14 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-11-17
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I'm running Redmine 0.8.7 on Apache 2.2.3, Passenger 2.2.5, Rails 2.1.2 and Ruby 1.8.5, on a RHEL 4.5.

After upgrading from 0.8.6, I ran the following command as stated on upgrade guide:

rake config/initializers/session_store.rb

After restarting Apache, Redmine just doesn't work. Passenger shows an exception, and the following lines appear on logs:

*** Exception ApplicationController::MissingSessionSecret in PhusionPassenger::Railz::ApplicationSpawner (Missing session secret. Please run 'rake config/initializers/session_store.rb' to generate one) (process 18731):
        from /opt/redmine/app/controllers/application.rb:29
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in'

[....]

config/initializers/session_store.rb exists and has valid content. I have tried inserting some rubbish characters inside it and restarting Apache, and Passenger doesn't throw any kind of error, so I think session_store.rb isn't being read.

At this moment I have session generation options included on config/environment.rb as a workaround.

Actions

Also available in: Atom PDF