Error while Upgrading redmine to 2.3
Added by Gopu Krishnan over 11 years ago
Hi Team,
I was trying to upgrade the redmine to 2.3 version from 1.3. I have checked the upgrade steps and successfully reached up-to :
rake generate_secret_token --trace- Invoke generate_secret_token (first_time)
- Invoke config/initializers/secret_token.rb (first_time, not_needed)
- Execute generate_secret_token
When I am giving the command : rake db:migrate RAILS_ENV=production
getting lot of errors as below:
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
undefined local variable or method `config' for main:Object
/usr/share/redmine/plugins/engines/init.rb:3
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/share/redmine/lib/redmine/plugin.rb:130:in `load'
/usr/share/redmine/lib/redmine/plugin.rb:121:in `each'
/usr/share/redmine/lib/redmine/plugin.rb:121:in `load'
/usr/share/redmine/config/initializers/30-redmine.rb:12
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/engine.rb:588
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/engine.rb:587
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `run_initializers'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `send'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/share/redmine/config/environment.rb:14
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/application.rb:103:in `require'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/application.rb:297
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:246:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:184:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:205:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:183:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:73:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-10.0.4/bin/rake:33
/usr/bin/rake:23:in `load'
/usr/bin/rake:23
Tasks: TOP => db:migrate => environment
Please guide me.
Thanks,
Gopu
Replies (1)
RE: Error while Upgrading redmine to 2.3 - Added by Toshi MARUYAMA over 11 years ago
Gopu Krishnan wrote:
Hi Team,
rake db:migrate RAILS_ENV=production --trace
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
undefined local variable or method `config' for main:Object
/usr/share/redmine/plugins/engines/init.rb:3
plugins/engines is removed in 2.0.0.