Project

General

Profile

Problem installing Redmine 2.5.2 : rake aborted! uninitialized constant RedmineApp

Added by Nicolas Danino almost 10 years ago

Hello,

I'm trying to install Redmine 2.5.2 on my server but I have an error with rake.
I followed this documentation : https://my.hostmonster.com/cgi/help/redmine
For the step 11 ("Running generate_session_store or generate_secret_token") I have an error with rake :

@danino_n-server [~/rails_apps/redmine]# bundle install
Using rake 10.1.1
Using i18n 0.6.11
Using multi_json 1.10.1
Using activesupport 3.2.19
Using builder 3.0.0
Using activemodel 3.2.19
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.5
Using rack-cache 1.2
Using rack-test 0.6.2
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.2.2
Using actionpack 3.2.19
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 3.2.19
Using arel 3.0.3
Using tzinfo 0.3.40
Using activerecord 3.2.19
Using activeresource 3.2.19
Using awesome_nested_set 2.1.6
Using mini_portile 0.6.0
Using nokogiri 1.6.2.1
Using xpath 2.0.0
Using capybara 2.1.0
Using ffi 1.9.3
Using childprocess 0.5.3
Using coderay 1.1.0
Using rack-ssl 1.3.4
Using json 1.8.1
Using rdoc 3.12.2
Using thor 0.19.1
Using railties 3.2.19
Using jquery-rails 2.0.3
Using metaclass 0.0.4
Using mocha 1.0.0
Using mysql 2.8.1
Using net-ldap 0.3.1
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using bundler 1.6.3
Using rails 3.2.19
Using redcarpet 2.3.0
Using rmagick 2.13.2
Using rubyzip 1.1.6
Using websocket 1.0.7
Using selenium-webdriver 2.42.0
Using shoulda-context 1.0.2
Using shoulda-matchers 1.4.1
Using shoulda 3.3.2
Using yard 0.8.7.4
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
danino_n-server [~/rails_apps/redmine]# rake generate_session_store
*rake aborted!
uninitialized constant RedmineApp
*
(See full trace by running task with --trace)
danino_n-server [~/rails_apps/redmine]# rake generate_secret_token
*rake aborted!
uninitialized constant RedmineApp
*
(See full trace by running task with --trace)
danino_n-server [~/rails_apps/redmine]# rake generate_secret_token --trace
*rake aborted!
uninitialized constant RedmineApp*
/home7/echemise/rails_apps/redmine/Rakefile:7:in `<top (required)>'
/usr/lib64/ruby/1.9.3/rake/rake_module.rb:25:in `load'
/usr/lib64/ruby/1.9.3/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib64/ruby/1.9.3/rake/application.rb:501:in `raw_load_rakefile'
/usr/lib64/ruby/1.9.3/rake/application.rb:82:in `block in load_rakefile'
/usr/lib64/ruby/1.9.3/rake/application.rb:133:in `standard_exception_handling'
/usr/lib64/ruby/1.9.3/rake/application.rb:81:in `load_rakefile'
/usr/lib64/ruby/1.9.3/rake/application.rb:65:in `block in run'
/usr/lib64/ruby/1.9.3/rake/application.rb:133:in `standard_exception_handling'
/usr/lib64/ruby/1.9.3/rake/application.rb:63:in `run'
/usr/bin/rake:32:in `<main>'
danino_n-server [~/rails_apps/redmine]#@

Do you know how I can fix it ? I made some researchs on Google but I didn't find a good way to fix my issue.

Thank you very much

My configuration :
Rails version : Rails 3.2.19
Ruby version : ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]
OS : Linux host351.hostmonster.com 3.4.87-20140414.1.bh6.x86_64 #1 SMP Mon Apr 14 15:59:08 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
Database : MySQL Ver 14.14 Distrib 5.5.37-35.1, for Linux (x86_64) using readline 5.1