Project

General

Profile

installation issue with 0.8.7

Added by andrew semeniuk about 15 years ago

Hi,
I am new to Redmine and I am having problems following installation instructions for 0.8.7 (http://www.redmine.org/wiki/redmine/RedmineInstall) -- I get the following error during step 5:

naples:redmine-0.8.7 andrews$ RAILS_ENV=production rake db:migrate
(in /Users/andrews/Downloads/redmine-0.8.7)
rake aborted!
Missing session secret. Please run 'rake config/initializers/session_store.rb' to generate one

(See full trace by running task with --trace)

It turns out that config/initializers/session_store.rb does not exist, I looked. Here's the contents of that directory:

10-patches.rb 20-mime_types.rb 30-redmine.rb 40-email.rb bigdecimal-segfault-fix.rb

I have downloaded 0.8.7 from here (http://rubyforge.org/frs/?group_id=1850) today, onto my Mac OS 10.6.2, I have Rails 2.2.2, Ruby 1.8.7. I tried running "RAILS_ENV=production script/about" but I get a permission error running that (not executable), so made it executable (chmod +x) and now I get this:

naples:redmine-0.8.7 andrews$ RAILS_ENV=production script/about
env: ruby\r: No such file or directory

Any help appreciated -- Andrew


Replies (11)

RE: installation issue with 0.8.7 - Added by Mischa The Evil about 15 years ago

andrew semeniuk wrote:

[...]
... I am having problems following installation instructions for 0.8.7 (http://www.redmine.org/wiki/redmine/RedmineInstall) -- I get the following error during step 5:

naples:redmine-0.8.7 andrews$ RAILS_ENV=production rake db:migrate
 (in /Users/andrews/Downloads/redmine-0.8.7)
 rake aborted!
 Missing session secret. Please run 'rake config/initializers/session_store.rb' to generate one

See http://www.redmine.org/news/30 for the exact instructions. You'll need to create the session secret before step 5.

HTH

RE: installation issue with 0.8.7 - Added by Mischa The Evil almost 15 years ago

Btw: I've modified RedmineInstall and RedmineUpgrade to reflect the changes in 0.8.7.

Thanks for bringing this up...

RE: installation issue with 0.8.7 - Added by andrew semeniuk almost 15 years ago

Hm, I don't see how the links you provided solve my problem. I still don't have a session_store.rb file in the config/initializers directory, therefore I can't execute the command 'rake config/initializers/session_store.rb'. I tried downloading a later version than 0.8.7 thinking that later version would have a bug fix, there's no later version than 0.8.7. Reading the install docs again I see no changes in step 4.

RE: installation issue with 0.8.7 - Added by Hannes Horneber almost 15 years ago

I just got the same problem solved by checking the file config/environment.rb. There should be an entry „config.action_controller.session_store“. In my file this entry was set to „:PStore“, I changed it to the commented entry above (to „:active_record_store“). After this change everything works now.
Perhaps this solves your issue too.

RE: installation issue with 0.8.7 - Added by Hannes Horneber almost 15 years ago

Ok, hold on.. I just checked it again and it seems, that the fact that the problem was solved was not due to the mentioned entry. But I removed some plugins and that seems to solve it. The plugins I removed were the „riskMNGT“ and „requMNGT“-Plugins.
So another hint => check your plugins ;-)
Sorry for the misleading previous post.

RE: installation issue with 0.8.7 - Added by Diana Susca almost 15 years ago

I have the same problem with installing redmine on windows - there is no session_store.rb file in the config/initializers directory

RE: installation issue with 0.8.7 - Added by Mischa The Evil almost 15 years ago

There seems to be two different but related issues discussed here:

@ andrew semeniuk, Diana Susca:

The file config/initializers/session_store.rb will be created by the rake utility using the command rake config/initializers/session_store.rb. Rake does this by calling source:/trunk/lib/tasks/initializers.rake.

@ Hannes Horneber:

You are correct that the issue can be triggered by (incompatible) plugins too. See e.g.:

I personally came around the error also while fixing an (further unrelated) issue with my Collapse plugin, which learned me that the issue can also be generated when several plugins, at the same time, are overriding Redmine core parts (like the application controller and the application helpers).
I don't have my plugin error fixed solid yet and also don't have much further info about the collisions while combining several plugins due to that I've dropped-out a while ago due to some personal health issues.

I'll start debugging my plugin soon after I've finished some further outstanding catchup tasks.

 
Kind regards,

Mischa.

RE: installation issue with 0.8.7 - Added by andrew semeniuk almost 15 years ago

Ha, now that's funny! It seems my original installation didn't work because I assumed that config/initializers/session_store.rb had to exist, so I waited for a week waiting for help while the solution was right there in plain sight! Well, I tried 'rake config/initializers/session_store.rb' and it worked. I completed installation and everything works fine now. Thanks.

RE: installation issue with 0.8.7 - Added by Diana Susca almost 15 years ago

yeah, I figured that out too yesterday.

It was incredibly difficult to set up redmine with postgres on windows, but I finally managed, thank google! :)

RE: installation issue with 0.8.7 - Added by Eric Davis almost 15 years ago

andrew semeniuk wrote:

Ha, now that's funny! It seems my original installation didn't work because I assumed that config/initializers/session_store.rb had to exist, so I waited for a week waiting for help while the solution was right there in plain sight! Well, I tried 'rake config/initializers/session_store.rb' and it worked. I completed installation and everything works fine now. Thanks.

This has been a common problem. I just added another rake task that will work as an alias so you can run rake generate_session_store now (it does exactly the same as rake config/initializers/session_store.rb internally).

Eric Davis

RE: installation issue with 0.8.7 - Added by Aaron Evans over 14 years ago

on windows if you run 'rake config\initializers\session_store.rb' it will still fail.
Use forward slashes and type 'config/initializers/session_store.rb'
This could be fixed in the rakefile, but it seems a batty way of going about things in the first place

    (1-11/11)