Project

General

Profile

Problems with rake - Session store secret generation - Redmine 2.2.0

Added by Andrew Oteiza over 11 years ago

Hi! I have problems with the installation process (http://www.redmine.org/projects/redmine/wiki/RedmineInstall) , Step 5: Session store secret generation

When I type (in /var/www/redmine directory) "rake generate_secret_token" appears this message:

rake aborted!
cannot load such file -- spec

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

I´ve reinstalled/updated rails, rake, ruby, yaml and I still have the same problem..... Any idea why? can you help me?

Thanks!

Versions:
redmine 2.2.0
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]

Local Gems:
actionmailer (3.2.9)
actionpack (3.2.9)
active_support (3.0.0)
activemodel (3.2.9)
activerecord (3.2.9)
activeresource (3.2.9)
activesupport (3.2.9, 3.0.0)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.0.0)
bundler (1.2.3)
coderay (1.0.8)
diff-lcs (1.1.3)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.1)
io-console (0.3)
journey (1.0.4)
jquery-rails (2.1.4, 2.0.3)
json (1.7.5, 1.5.4)
mail (2.4.4)
mime-types (1.19)
minitest (2.5.1)
multi_json (1.5.0)
mysql (2.8.1)
mysql2 (0.3.11)
net-ldap (0.3.1)
nokogiri (1.5.6)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.9)
railties (3.2.9)
rake (10.0.3, 0.9.2.2)
rdoc (3.12, 3.9.4)
rspec (2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
rspec-mocks (2.12.1)
ruby-openid (2.1.8)
spox-plist (3.0.1)
spox-textpow (0.10.3)
sprockets (2.2.2)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.35)
uv (0.0.7.5)
[root@labdc redmine]#


Replies (2)

RE: Problems with rake - Session store secret generation - Redmine 2.2.0 - Added by Andrew Oteiza over 11 years ago

I forgot to write the trace:

[root@labdc redmine]# rake generate_secret_token --trace
rake aborted!
cannot load such file -- spec
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
/var/www/redmine/config/application.rb:7:in `<top (required)>'
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/var/www/redmine/Rakefile:5:in `<top (required)>'
/usr/local/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load'
/usr/local/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:65:in `block in run'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/bin/rake:32:in `<main>'
[root@labdc redmine]#

RE: Problems with rake - Session store secret generation - Redmine 2.2.0 - Added by Jan Niggemann (redmine.org team member) over 11 years ago

Perhaps some incorrect syntax in your config/additional_environment.rb file?

    (1-2/2)