heroku run rake db:migrate fails with "cannot load such file -- debugger" - ruby-on-rails

I'm getting this weird error when I try to migrate my database. Does anyone know what's going on?
There are no require debugger calls in any of my migrations. I do have some in another rake task that's not a migration, though. Is it possible that that's the problem?
me$ heroku run rake db:migrate --trace
Running `rake db:migrate --trace` attached to terminal... up, run.2463
rake aborted!
cannot load such file -- debugger
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/app/lib/tasks/misc.rake:6:in `<top (required)>'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/engine.rb:641:in `block in run_tasks_blocks'
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/engine.rb:641:in `each'
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/engine.rb:641:in `run_tasks_blocks'
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/application.rb:244:in `run_tasks_blocks'
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/engine.rb:446:in `load_tasks'
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/app/Rakefile:6:in `<top (required)>'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/rake_module.rb:25:in `load'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/rake_module.rb:25:in `load_rakefile'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:637:in `raw_load_rakefile'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:94:in `block in load_rakefile'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:165:in `standard_exception_handling'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:93:in `load_rakefile'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:77:in `block in run'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:165:in `standard_exception_handling'
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:75:in `run'
/app/bin/rake:4:in `<main>'

Ah, ok. Figured it out. One my other rake tasks had require debugger in its root scope. That's what was throwing heroku off. Problem solved.

Related

'rake db:migrate:up VERSION=' aborts

I created a migration. I am trying to run it by:
rake db:migrate:up VERSION=
It raises the following error:
D, [2018-06-03T13:20:41.295098 #2257] DEBUG -- : ** [Raven] Sending event 2a32cb0c249acd2efde26ce6453a2d77 to Sentry
D, [2018-06-03T13:20:41.343397 #2257] DEBUG -- : ** [Raven] Raven HTTP Transport connecting to https://app.getsentry.com
rake aborted!
NoMethodError: undefined method `last_comment' for #<Rake::Application:0x007fb71d8a76a0>
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.4/lib/rspec/core/rake_task.rb:101:in `define'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.4/lib/rspec/core/rake_task.rb:78:in `initialize'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-rails-3.0.2/lib/rspec/rails/tasks/rspec.rake:11:in `new'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-rails-3.0.2/lib/rspec/rails/tasks/rspec.rake:11:in `<top (required)>'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-rails-3.0.2/lib/rspec-rails.rb:13:in `block in <class:Railtie>'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:237:in `instance_exec'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:237:in `block in run_tasks_blocks'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:245:in `each'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:245:in `each_registered_block'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:237:in `run_tasks_blocks'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/application.rb:437:in `block in run_tasks_blocks'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/engine/railties.rb:13:in `each'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/engine/railties.rb:13:in `each'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/application.rb:437:in `run_tasks_blocks'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/engine.rb:453:in `load_tasks'
/Rakefile:6:in `<top (required)>'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load_rakefile'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:703:in `raw_load_rakefile'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:104:in `block in load_rakefile'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:103:in `load_rakefile'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:82:in `block in run'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/.rbenv/versions/2.1.2/bin/rake:23:in `load'
/.rbenv/versions/2.1.2/bin/rake:23:in `<main>'
How can I deal with it?
Specify version when migrating. This is good is you want to migrate only specific version of your migration. If you want to migrate all pending migration you can just say rake db:migrate.
Example:
rake db:migrate:up VERSION=20120820165642
I had to run the command against local rails
rake db:migrate:up VERSION=20120820165642 RAILS_ENV=test
works for me

Why does my rake abort?

I get the following stack when I run rake rails:update:bin
rake aborted!
LoadError: cannot load such file -- google/api_client
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
/Users/jonathangrant/omnivirt/adsoptimal-upload/config/application.rb:7:in `<top (required)>'
/Users/jonathangrant/omnivirt/adsoptimal-upload/Rakefile:4:in `require'
/Users/jonathangrant/omnivirt/adsoptimal-upload/Rakefile:4:in `<top (required)>'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/rake_module.rb:28:in `load'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:686:in `raw_load_rakefile'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:96:in `block in load_rakefile'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:95:in `load_rakefile'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:79:in `block in run'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/lib/rake/application.rb:77:in `run'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/bin/rake:23:in `load'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/bin/rake:23:in `<main>'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `eval'
/Users/jonathangrant/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `<main>'
Why am I getting this issue?
I am using Ruby 2.0.0 and Rails 4.1.5 on my OSX 10.11.16 Mac.
Well, the surface answer is because Ruby can't find google/api_client. ;) But obviously that's not super helpful.
First, try putting in place a couple of best practices:
Install RVM,
Create and use a gemset for your project (rvm use 2.0.0#my-awesome-project --create).
Run bundle install.
Then try the rake task again. What happens now?
(those best practices are RVM + gemsets)

heroku run rake db:migrate - rake aborted - TypeError: superclass mismatch for class MultiBox

After running heroku run rake db:migrate I get:
Running `rake db:migrate --trace` attached to terminal... up, run.7762
rake aborted!
TypeError: superclass mismatch for class MultiBox
/app/vendor/bundle/ruby/1.9.1/gems/prawn-layout-0.8.4/lib/prawn/layout/grid.rb:191:in `<class:Document>'
/app/vendor/bundle/ruby/1.9.1/gems/prawn-layout-0.8.4/lib/prawn/layout/grid.rb:2:in `<module:Prawn>'
/app/vendor/bundle/ruby/1.9.1/gems/prawn-layout-0.8.4/lib/prawn/layout/grid.rb:1:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/prawn-layout-0.8.4/lib/prawn/layout.rb:3:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:85:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:85:in `rescue in block in require'
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:68:in `block in require'
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.3/lib/bundler.rb:132:in `require'
/app/config/application.rb:8:in `<top (required)>'
/app/Rakefile:4:in `require'
/app/Rakefile:4:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/bin/rake:23:in `load'
/app/vendor/bundle/ruby/1.9.1/bin/rake:23:in `<main>'
I just resolve a problem with the same error message.
In my case I was executing a migration with a class name previously defined in a model.
Maybe your MultiBox class is defined in some place.
I got 'superclass mismatch for class MultiBox' from prawn for every bundle exec I did after I apparently botched a huge git merge. It was very confusing, because I did not use MultiBox in my app. When I redid the merge, the error disappeared.
Use prawn-table instead of prawn-layout.

Running RoR on Fedora, get: undefined local variable or method `ext_dir' for

I'm trying to install Catarse.me on a Fedora 19 machine, ready to be pushed to Heroku.
I've managed to successfully run bundle install. But when I try
rake db:migrate
I receive this error
[root#acer]$ rake db:migrate
rake aborted!
undefined local variable or method `ext_dir' for #<Gem::Specification:0x450c8ce RedCloth-4.2.9>
/home/user/rails/catarse/config/boot.rb:7:in `<top (required)>'
/home/user/rails/catarse/config/application.rb:1:in `<top (required)>'
/home/user/rails/catarse/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
I've individually checked each of these files, and on the lines noted there's a call to
variablename = File.expand_path('../path/to/Gemfile', __FILE__)
CORRECTION The stack trace points to line 7 in book.rb
Bundler.setup
I've googled but the only relevant hit is this StackOverflow question but whose situation and answer is unrelated to my problem.
I'd appreciate the help.
Running rake db:migrate -- trace gives
rake aborted!
undefined local variable or method `ext_dir' for #<Gem::Specification:0x4700158 RedCloth-4.2.9>
/usr/local/share/ruby/site_ruby/rubygems/specification.rb:1887:in `method_missing'
/usr/share/gems/gems/bundler-1.3.1/lib/bundler/rubygems_ext.rb:42:in `load_paths'
/usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:37:in `block in setup'
/usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:19:in `setup'
/usr/share/gems/gems/bundler-1.3.1/lib/bundler.rb:120:in `setup'
/home/mei/rails/catarse/config/boot.rb:7:in `<top (required)>'
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/mei/rails/catarse/config/application.rb:1:in `<top (required)>'
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/mei/rails/catarse/Rakefile:4:in `<top (required)>'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:637:in `raw_load_rakefile'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in run'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/usr/local/share/gems/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/usr/local/share/gems/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/bin/rake:23:in `load'
/bin/rake:23:in `<main>'
By your trace, it seems like it's a bundler issue,
running
gem update bundler
should fix it.

Why am I getting an error when I try to update my Heroku database?

Why am I getting an error when I try to update my Heroku database?
Whenever I try any heroku rake... command I get the same error:
$ heroku rake db:setup
(in /app)
rake aborted!
uninitialized constant Rake::DSL
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in `<class:TaskLib>'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in `<module:Rake>'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in `require'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/tasks/documentation.rake:1:in `require'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/tasks/documentation.rake:1:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/tasks.rb:15:in `load'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/tasks.rb:15:in `block in <top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/tasks.rb:6:in `each'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/tasks.rb:6:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/application.rb:215:in `require'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/application.rb:215:in `initialize_tasks'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/application.rb:139:in `load_tasks'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.8/lib/rails/application.rb:77:in `method_missing'
/app/Rakefile:7:in `<top (required)>'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `load'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:1991:in `run'
/usr/ruby1.9.2/bin/rake:31:in `<main>'
Rakefile should include
require 'rake/dsl_definition'
There are two ways to fix this. I have a blog post about it here:
Use an older rake version, or require DSL for the newer gem.
http://codeglot.com/posts/13-you_have_already_activated_rake_0_9_2.
sadly, including require 'rake/dsl_definition' did not work for me. I am using rails 3.0.6. So I reverted back to rake 0.8.7.

Resources