erorr during rake db:migrate...
Added by stack magic over 14 years ago
at first about some gem being missing... not sure if the base setup of this debian lenny 64bit lacks a bunch of things but here's what i did (i did not install rails as RedmineInstall states it is bundled in the vendor directory)
installing test-spec didn't work at first, only after i changed some gem urls as suggested here:
http://www.zeux.at/content/error-could-not-find-gem-mysql-locally-or-repository
then i did all of this in try and error microsteps (i thougth openid was optional?):
gem install test-spec gem install camping apt-get install libfcgi-dev libfcgi-ruby1.8 make gem install fcgi gem install memcache-client gem install mongrel gem install ruby-openid -v 2.0.1 apt-get install libopenssl-ruby1.8 libopenssl-ruby g++ gem install thin
after that, db:migrate worked ALMOST:
rake aborted! undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
ok now i installed rails-2.3.5 just for fun but it still doesn't work, didn't expect the error would be related to db schema dump stuff...
a bit of help would be rather nice...
redmine-1.0.1 # RAILS_ENV=production script/about About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.2.0 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Edge Rails revision unknown Application root /var/www/example.org Environment production Database adapter mysql Database schema version 20100819172912
Replies (2)
RE: erorr during rake db:migrate... - Added by stack magic over 14 years ago
trace...
# RAILS_ENV=production rake db:migrate --trace (in /var/www/example.org) ** 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/example.org/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/example.org/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:28