Can't access Redmine 0.8.7

Added by Jorge López over 10 years ago

Hello,

I'm using Redmine 0.8.x from SVN, server by Apache + mod_passenger 2.2.5 on RHEL 5.4.

This morning I read that 0.8.7 was published to fix a major bug, so I upgraded to 0.8.7. I ran the needed:

# rake config/initializers/session_store.rb

But after restarting Apache server, I can just see an Internal Server Error. Logs show the following:

*** 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 an apparently valid content:

ActionController::Base.session = {
  :session_key => '_redmine_session',
  :secret => 'f0c19d112b752dde57f717df77c4b6d2bd7c7df6'
}

Did I misread any step? How could I fix this?

Thank you.

Replies (6)

RE: Can't access Redmine 0.8.7 - Added by Jorge López over 10 years ago

Ok, I have just seen that session_store.rb isn't being read. I added some junk characters to it and Ruby didn't mind after restarting Apache.

As a dirty fix, I have added to config/environment.rb the following lines:

  config.action_controller.session = {
  :session_key => '_redmine_session',
  :secret => 'f0c19d112b752dde57f717df77c4b6d2bd7c7df6'
}

After adding that everything works, but I would like to know why doesn't session_store.rb work.

RE: Can't access Redmine 0.8.7 - Added by Haruyuki Iida over 10 years ago

Hi Jorge López.

If you use old code review plugin or old wiki extensions plugin, this problem occurs. and you must upgrade them to latest version.

Thanks.

RE: Can't access Redmine 0.8.7 - Added by Jorge López over 10 years ago

Haru lida, it was a plugin issue, you're right.

I filed a bug report (#4227) and it was finally a PluginBotsFilter issue. Jean-Philippe was so kind to update it to make it compatible with Redmine 0.8.7.

Thank you!

RE: Can't access Redmine 0.8.7 - Added by Sven Schwyn over 10 years ago

I see the same issue since 0.8.7, however, I have no plugins installed whatsoever. Any idea what could be the problem?

RE: Can't access Redmine 0.8.7 - Added by Ве Fio over 10 years ago

Me too, but after having a look in config/environment.rb i had an idea.

try:
rake db:sessions:create

the sessionstore is in the database now, the error-msg refers to the old
style file based one.

RE: Can't access Redmine 0.8.7 - Added by Ве Fio over 10 years ago

damn, forget what i said.

(1-6/6)