rails 3 with mongodb assets precompile error: - ruby-on-rails

When I try to rake assets:precompile I get the following errors:
rake assets:precompile
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/bin/ruby /Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
execution expired
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `block in connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:45:in `connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:40:in `initialize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `new'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `check_is_master'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:468:in `connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:693:in `setup'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:155:in `initialize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `new'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `connection'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:203:in `from_uri'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:86:in `master'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:19:in `configure'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:290:in `configure_databases'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:111:in `from_hash'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:126:in `block in load!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `tap'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `load!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid.rb:148:in `load!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/railtie.rb:84:in `block in <class:Railtie>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/jeanosorio/repos/blabloo/config/environment.rb:5:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p...]
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/ruby_executable_hooks:15:in `eval'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
This is the result using the "--trace" commnad
rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/bin/ruby /Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
execution expired
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `block in connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:45:in `connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:40:in `initialize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `new'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `check_is_master'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:468:in `connect'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:693:in `setup'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:155:in `initialize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `new'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `connection'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:203:in `from_uri'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:86:in `master'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:19:in `configure'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:290:in `configure_databases'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:111:in `from_hash'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:126:in `block in load!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `tap'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `load!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid.rb:148:in `load!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/mongoid-2.8.1/lib/mongoid/railtie.rb:84:in `block in <class:Railtie>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/jeanosorio/repos/blabloo/config/environment.rb:5:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:195:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/rake:23:in `load'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/rake:23:in `<main>'
Tasks: TOP => environment
rake aborted!
Command failed with status (1): [/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p...]
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/file_utils.rb:55:in `block in create_shell_runner'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `call'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `sh'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/file_utils.rb:82:in `ruby'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/rake:23:in `load'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/rake:23:in `<main>'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/ruby_executable_hooks:15:in `eval'
/Users/jeanosorio/.rvm/gems/ruby-1.9.3-p484#blabloo/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
I don't understand what is the problem here, because I make this before upload my files to the server, and now I get this errors but I didn't change anything.
Any suggestion would be appreciate.
Thanks

I delete all the files on my public/assets folder and then the
rake assets:precompile
works.
Thanks for your help

Related

Error: 'NameError: undefined local variable or method `rvm' for main:Object' after running rake db:migrate

I'm trying to get a rails server to run that I am working on with someone else. He created all the init files, and I can't seem to get it working on my computer.
I was getting this error: raise ActiveRecord::NoDatabaseError
and found a solution that I should run rake db:create && rake db:migrate
I can get the first command to run, when I run rake db:migrate I get the following error:
NameError: undefined local variable or method `rvm' for main:Object
Here is a full trace of the command:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
rake aborted!
NameError: undefined local variable or method `rvm' for main:Object
/Users/edan/Documents/Code/GitHub/Beer2Bar-Server/db/migrate/20180523035000_devise_create_users.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:962:in `load_migration'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:958:in `migration'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:953:in `disable_ddl_transaction'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1305:in `use_transaction?'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1235:in `rescue in execute_migration_in_transaction'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1223:in `execute_migration_in_transaction'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1148:in `block in migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1317:in `with_advisory_lock'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1148:in `migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1007:in `up'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:985:in `migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Caused by:
NameError: undefined local variable or method `rvm' for main:Object
/Users/edan/Documents/Code/GitHub/Beer2Bar-Server/db/migrate/20180523035000_devise_create_users.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:962:in `load_migration'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:958:in `migration'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:953:in `disable_ddl_transaction'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1305:in `use_transaction?'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1297:in `ddl_transaction'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1229:in `execute_migration_in_transaction'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1148:in `block in migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1317:in `with_advisory_lock'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1148:in `migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1007:in `up'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:985:in `migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/usr/local/lib/ruby/gems/2.5.0/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:migrate
Thanks.

Could not find table by rake routes on production server

When checking routes on production server with rake routes, there is an error of Could not find table 'authentify_engine_configs' which is a table in the database. What could cause this error? The following is full trace:
cjadmin#ubuntu-ibm:/var/www/nbhyop/current$ bundle exec rake routes --trace
** Invoke routes (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Could not find table 'authentify_engine_configs'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in `table_structure'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:228:in `yield'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:228:in `default'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:228:in `columns'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:237:in `columns_hash'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/relation.rb:170:in `exec_queries'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/relation.rb:160:in `block in to_a'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/explain.rb:33:in `logging_query_plan'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/relation.rb:159:in `to_a'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/relation/finder_methods.rb:378:in `find_first'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/relation/finder_methods.rb:122:in `first'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/bundler/gems/authentify-6d86f5486c71/app/custom/authentify/authentify_utility.rb:85:in `find_config_const'
/var/www/nbhyop/releases/20130514202149/config/initializers/my_constants.rb:7:in `<top (required)>'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `block in load'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/engine.rb:587:in `each'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/engine.rb:587:in `block in <class:Engine>'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/www/nbhyop/releases/20130514202149/config/environment.rb:6:in `<top (required)>'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:103:in `require'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/home/cjadmin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/home/cjadmin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/bin/rake:23:in `load'
/home/cjadmin/.rvm/gems/ruby-1.9.3-p286/bin/rake:23:in `<main>'
Tasks: TOP => routes => environment
cjadmin#ubuntu-ibm:/var/www/nbhyop/current$
It is rails 3.2.12 app running on ubuntu with nginx and passenger. rake db:migrate has the same error.
Thanks for help.
If it really is production then you need to tell rails, otherwise it will use development by default
RAILS_ENV=production bundle exec rake routes

Rake tasks keep failing

I'm trying to set up my development environment to work with an existing project that's using Mongoid. I've run bundle install and that worked fine, but I'm now trying to set up the database, and I'm running rake db:setup
Here's the output:
[1] $ rake db:setup --trace ✘
** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cantango-36e3ce152717/lib/cantango/configuration/registry.rb:31:in `register'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cantango-36e3ce152717/lib/cantango/configuration/candidate_registry.rb:10:in `register'
/home/chintanparikh/Documents/Work/project_name/config/initializers/cantango.rb:8:in `block in <top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cantango-36e3ce152717/lib/cantango.rb:23:in `configure'
/home/chintanparikh/Documents/Work/project_name/config/initializers/cantango.rb:2:in `<top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `block in load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/engine.rb:556:in `block (2 levels) in <class:Engine>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/engine.rb:555:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/engine.rb:555:in `block in <class:Engine>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/chintanparikh/Documents/Work/project_name/config/environment.rb:5:in `<top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:193:in `block (2 levels) in initialize_tasks'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:227:in `call'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:227:in `block in execute'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:222:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:222:in `execute'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/home/chintanparikh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/home/chintanparikh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/home/chintanparikh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:152:in `invoke'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:141:in `invoke_task'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:99:in `block (2 levels) in top_level'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:99:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:99:in `block in top_level'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:108:in `run_with_threads'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:93:in `top_level'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:71:in `block in run'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:158:in `standard_exception_handling'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:68:in `run'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/bin/rake:37:in `<top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/rake:19:in `load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/rake:19:in `<main>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/ruby_noexec_wrapper:14:in `eval'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => db:setup => db:create => environment
Does anyone know how to fix this? It looks like it's failing on the create step.
Cheers.
MongoDB is a schema-less database. You don't need to use any of the rake db:{} functions with it. The only thing you need to do to have mongodb up and running is to install it and then to start the server. You can find more information on installing MongoDB here

Asset Precompile Error: uninitialized constant Mongo::Logging

I'm adding Asset Pipeline to my Heroku hosted Rails 3.1 App, and when I run
RAILS_ENV=production bundle exec rake assets:precompile
locally as suggested by Heroku here, it breaks with error:
rake aborted! uninitialized constant Mongo::Logging
Tasks: TOP => environment
I tried several steps, including the suggested Heroku
config.assets.initialize_on_precompile = false
The app crashes when I push it to production, with the same error. As I understand it, it's trying to use objects during compilation that are not yet initialized at this stage. What's the right way to do it?
[update] Stack Trace
ROOT /Users/bashar/rails-projects/myapp
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Mongo::Logging
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rpm_contrib-2.1.8/lib/rpm_contrib/instrumentation/mongo.rb:14:in `block (2 levels) in <top (required)>'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:49:in `call'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:49:in `block in execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:48:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:48:in `execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:15:in `block in detect!'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:13:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb:13:in `detect!'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/lib/new_relic/control/instrumentation.rb:94:in `_install_instrumentation'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/lib/new_relic/control/instrumentation.rb:53:in `install_instrumentation'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/lib/new_relic/control/instance_methods.rb:77:in `init_plugin'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.3.3/lib/newrelic_rpm.rb:36:in `block in <class:Railtie>'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/bashar/rails-projects/myapp/config/environment.rb:5:in `<top (required)>'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:193:in `block (2 levels) in initialize_tasks'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:89:in `block (2 levels) in <top (required)>'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:56:in `block (3 levels) in <top (required)>'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/bashar/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/Users/bashar/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>'
Tasks: TOP => environment
rake aborted!
Command failed with status (1): [/Users/bashar/.rvm/rubies/ruby-1.9.2-p29...]
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:25:in `block (2 levels) in <top (required)>'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/bashar/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/bashar/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/Users/bashar/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>'
Tasks: TOP => assets:precompile
Thanks
It's because you use the last rpm_contrib gem and not the last mongo-ruby-driver gem.
So you need desactivate MongoDB instrumentation on new_relic rpm. Or you can downgrade the version or rpm_contrib, or upgrade to Mongo ruby driver >= 1.6

I'm unable to setup database on Heroku

I'm trying to setup my Heroku app but when I'm trying to run db:setup, db:create then I get:
[hauleth#NIUNIOBOOK] Tori $ heroku run rake --trace db:setup
Running rake --trace db:setup attached to terminal... up, run.1
** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
rake aborted!
string not matched
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/tasks/misc.rake:4:in `[]='
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/tasks/misc.rake:4:in `block in <top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>'
Tasks: TOP => db:setup => db:create => db:load_config => rails_env
And when I try db:migrate then:
[hauleth#NIUNIOBOOK] Tori $ heroku run rake --trace db:migrate
Running rake --trace db:migrate attached to terminal... up, run.1
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Invalid DATABASE_URL
(erb):9:in `rescue in <main>'
(erb):6:in `<main>'
/usr/local/lib/ruby/1.9.1/erb.rb:753:in `eval'
/usr/local/lib/ruby/1.9.1/erb.rb:753:in `result'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application/configuration.rb:106:in `database_configuration'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/railtie.rb:68:in `block (2 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/railtie.rb:67:in `block in <class:Railtie>'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/app/config/environment.rb:5:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:193:in `block (2 levels) in initialize_tasks'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>'
Tasks: TOP => db:migrate => environment
How to fix that? I'm running on Cedar stack with Rails 3.1.3.
I have tested that Ruby see ENV['DATABASE_URL'] and also I've tested that URI.parse works on it. So where is the exception?
EDIT
It's my first migration in new app. I'v checked that heroku run console can access the ENV['DATABASE_URL'] and than URI#parse is not throwin' any error.
Your DATABASE_URL might be missing or nil.
Check with:
heroku config
If it looks OK, try re-adding the add-on:
heroku addons:remove shared-database:5mb
heroku addons:add shared-database:5mb
I've fixed that by recreating full Git an Heroku app.

Resources