Skip to content

Instantly share code, notes, and snippets.

@scottshea
Created June 19, 2012 17:33
Show Gist options
  • Save scottshea/2955448 to your computer and use it in GitHub Desktop.
Save scottshea/2955448 to your computer and use it in GitHub Desktop.
Stack Trace for Rake Task failue
WARNING: Cucumber-rails required outside of env.rb. The rest of loading is being defered until env.rb is called.
To avoid this warning, move 'gem cucumber-rails' under only group :test in your Gemfile
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Unknown alias: test
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:239:in `block in visit_Psych_Nodes_Alias'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:239:in `fetch'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:239:in `visit_Psych_Nodes_Alias'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:20:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:257:in `block in revive_hash'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:251:in `each'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:251:in `each_slice'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:251:in `revive_hash'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:141:in `visit_Psych_Nodes_Mapping'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:20:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:266:in `block in revive_hash'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:251:in `each'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:251:in `each_slice'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:251:in `revive_hash'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:141:in `visit_Psych_Nodes_Mapping'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:20:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:231:in `visit_Psych_Nodes_Document'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:20:in `accept'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/node.rb:35:in `to_ruby'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:128:in `load'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/application/configuration.rb:88:in `database_configuration'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/railtie.rb:58:in `block (2 levels) in <class:Railtie>'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/railtie.rb:57:in `block in <class:Railtie>'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/initializable.rb:25:in `instance_exec'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/initializable.rb:25:in `run'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/initializable.rb:50:in `block in run_initializers'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/initializable.rb:49:in `each'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/initializable.rb:49:in `run_initializers'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/application.rb:134:in `initialize!'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/application.rb:77:in `method_missing'
/home/scott/source/activate_advanced/config/environment.rb:5:in `<top (required)>'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `block in require'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:597:in `new_constants_in'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:225:in `load_dependency'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/application.rb:103:in `require_environment!'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/railties-3.0.13/lib/rails/application.rb:218:in `block in initialize_tasks'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/bin/rake:23:in `load'
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/bin/rake:23:in `<main>'
Tasks: TOP => db:migrate => environment
@radustoenescu
Copy link

As a workaround you can edit the last part of your database.yml file like this:
cucumber:
<<:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment