upgrade from 0.9.4 - db migrate problem
Added by Lars Scheithauer over 14 years ago
hi everyone,
I'm trying to upgrade from 0.9.4 to 0.9.6 and during db-migration, I get the following error:
# rake db:migrate RAILS_ENV=production --trace (in /var/www/redmine-0.9.6) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump rake aborted! undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task /var/www/redmine-0.9.6/vendor/rails/railties/lib/tasks/databases.rake:262 /usr/lib/ruby/1.8/rake.rb:546:in `call' /usr/lib/ruby/1.8/rake.rb:546:in `execute' /usr/lib/ruby/1.8/rake.rb:541:in `each' /usr/lib/ruby/1.8/rake.rb:541:in `execute' /usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:in `synchronize' /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:494:in `invoke' /var/www/redmine-0.9.6/vendor/rails/railties/lib/tasks/databases.rake:117 /usr/lib/ruby/1.8/rake.rb:546:in `call' /usr/lib/ruby/1.8/rake.rb:546:in `execute' /usr/lib/ruby/1.8/rake.rb:541:in `each' /usr/lib/ruby/1.8/rake.rb:541:in `execute' /usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:in `synchronize' /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:494:in `invoke' /usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task' /usr/lib/ruby/1.8/rake.rb:1909:in `top_level' /usr/lib/ruby/1.8/rake.rb:1909:in `each' /usr/lib/ruby/1.8/rake.rb:1909:in `top_level' /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1903:in `top_level' /usr/lib/ruby/1.8/rake.rb:1881:in `run' /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1878:in `run' /usr/bin/rake:28Versions (requirements are met as far as I can tell):
- mysql (2.8.1)
- rack (1.0.1, 1.0.0)
- rails (2.3.5, 2.3.4, 2.1.2)
- rake (0.8.7)
Any ideas?
Replies (2)
RE: upgrade from 0.9.4 - db migrate problem - Added by Felix Schäfer over 14 years ago
This seems to be a rake version mismatch, do you maybe have one rake version installed through rubygems and the other through your package manager? What does rake --version
and gem list
say?
RE: upgrade from 0.9.4 - db migrate problem - Added by Lars Scheithauer over 14 years ago
jup, that was the problem:
# rake --version rake, version 0.8.1 # gem list *** LOCAL GEMS *** actionmailer (2.3.5, 2.3.4, 2.1.2) actionpack (2.3.5, 2.3.4, 2.1.2) activerecord (2.3.5, 2.3.4, 2.1.2) activeresource (2.3.5, 2.3.4, 2.1.2) activesupport (2.3.5, 2.3.4, 2.1.2) mysql (2.8.1) rack (1.0.1, 1.0.0) rails (2.3.5, 2.3.4, 2.1.2) rake (0.8.7)
I've uninstalled the distributors package, downloaded the newest GEM-file of rake and installed it. After relinking the binary to a nicer place, everything worked perfectly.
Thanks!