Problem during upgrade

Added by Cyrille QUIBLIER over 9 years ago

Hello,

I have a working Redmine 1.2.3 on Ubuntu 11.04 working.
I want to upgrade Redmine to 2.0.2 and I start the RedmineUpgrade HowTo.
I encounter a problem with: rake db:migrate RAILS_ENV=production

root# rake db:migrate RAILS_ENV=production --trace
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Invoke db:load_config (first_time)
  • Invoke rails_env (first_time)
  • Execute rails_env
  • Execute db:load_config
  • Execute db:migrate
    rake aborted!
    undefined method `accept' for nil:NilClass
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in `select_values'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:587:in `get_all_versions'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:745:in `migrated'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:668:in `current_version'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:685:in `migrate'
    /usr/lib/ruby/1.8/erb.rb:719:in `detect'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:685:in `each'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:685:in `detect'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:685:in `migrate'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:570:in `up'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/migration.rb:551:in `migrate'
    /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake:153
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
    /usr/bin/rake:19:in `load'
    /usr/bin/rake:19
    Tasks: TOP => db:migrate

My version of Rails is 3.2.5 and Ruby 1.9.3
Any idea??

Thank you.

Replies (1)

RE: Problem during upgrade - Added by Nabil Faouzi over 9 years ago

Hello,

what return #ruby -v?

I think you're ruby package isn't properly installed or you're last installation isn't completely erased

your ruby path is wrong :

/usr/lib/ruby/gems/1.8/

you should have this path for ruby-1.9.X

/usr/local/lib/ruby/gems/1.9.1/ or /usr/lib/ruby/gems/1.9.1/

remove completely latest installation of ruby, reinstall ruby -1.9.3, his library (libyaml) and all the delegate gems.

Regards.

(1-1/1)