Defect #4227
closedsession_store.rb isn't being processed
0%
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.
Updated by Jean-Philippe Lang about 15 years ago
Can not reproduce. Make sure that the generated session_store.rb has appropriate permissions (readable by the application).
Updated by Jorge López about 15 years ago
File is readable for the application:
-rw-r--r-- 1 nobody nobody 688 nov 17 12:03 session_store.rb
I have completely disabled SELinux to avoid permission conflicts with no new results.
Updated by Jean-Philippe Lang about 15 years ago
Do you have some Redmine plugins installed ?
Maybe one of them tries to load ApplicationController before session_store.rb is loaded.
Updated by Jorge López about 15 years ago
- Status changed from New to Resolved
You're right. I'm using your redmine_bots_filter plugin and after moving it out from plugins directory, Redmine has started working perfect.
So the plugin seems to be incompatible with 0.8.7.
I'm changing the status to resolved, what should I do with the plugin?
Thank you very much.
Updated by Jean-Philippe Lang about 15 years ago
You can get a fixed version of the plugin here: PluginBotsFilter.
Updated by Jorge López about 15 years ago
Jean-Philippe Lang wrote:
You can get a fixed version of the plugin here: PluginBotsFilter.
It works like a charm now. Thank you again.
Updated by Jean-Philippe Lang about 15 years ago
- Status changed from Resolved to Closed
- Resolution set to Fixed
Thanks for the feedback.