rake assets:precompile not working on production - ruby-on-rails

All of the sudden my server is not able to run assets precompile
RAILS_ENV=production rake assets:precompile
The error I am getting when running the command with trace is
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/var/www/website/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/var/www/website/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/var/www/website/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/var/www/website/shared/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/rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/var/www/website/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p286#global/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p286#global/bin/rake:19:in `<main>'
/usr/local/rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => assets:precompile
thanks for any help.

Try this
touch tmp/restart.txt

Related

Can't drop my database - Text File Busy db/development.sqlite3

I'm new to programming and am building a simple wiki sharing app in Ruby on Rails. Every time I try to run rake db:drop, I get this stack trace:
Text file busy - /home/vagrant/code/blocipedia/db/development.sqlite3
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:1433:in `unlink'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:1433:in `block in remove_file'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:1438:in `platform_support'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:1432:in `remove_file'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:785:in `remove_file'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:563:in `block in rm'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:562:in `each'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/fileutils.rb:562:in `rm'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/sqlite_database_tasks.rb:22:in `drop'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/database_tasks.rb:98:in `drop'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/database_tasks.rb:110:in `block in drop_current'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/database_tasks.rb:183:in `block in each_current_configuration'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/database_tasks.rb:182:in `each'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/database_tasks.rb:182:in `each_current_configuration'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/tasks/database_tasks.rb:109:in `drop_current'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/railties/databases.rake:35:in `block (2 levels) in <top (required)>'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/vagrant/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/bin/rake:23:in `load'
/home/vagrant/.rvm/gems/ruby-2.0.0-p576/bin/rake:23:in `<main>'
Couldn't drop db/development.sqlite3
any ideas on how to fix this? I've tried running rake db:migrate first, but still end up with the same problem.

Custom Rake Task aborts on Rails 4.1.5, Ruby 2.1.1p76

I have a custom rake task to evaluate project for Rails Best Practices and Brakeman as follows:
namespace :evaluate do
desc 'Evaluate project for best practices!'
task :best_practices do
path = File.expand_path("../../../", __FILE__)
sh "rails_best_practices #{path}"
end
desc 'Evaluate project with brakeman'
task :brakeman do
sh "brakeman -q -z"
end
desc 'Evaluate everything'
task :everything => [:brakeman, :best_practices]
end
Upon $ rake evaluate:everything the task completes Brakeman successfully but aborts during the rails_best_practices step with the following trace:
Command failed with status (14): [rails_best_practices /Users/admin/projects...]
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/file_utils.rb:54:in `block in create_shell_runner'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/file_utils.rb:45:in `call'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/file_utils.rb:45:in `sh'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/admin/projects/bubblin/lib/tasks/security.rake:5:in `block (2 levels) in <top (required)>'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/Users/admin/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:199:in `each'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/Users/admin/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/Users/admin/.rvm/gems/ruby-2.1.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/Users/admin/.rvm/gems/ruby-2.1.1/bin/rake:23:in `load'
/Users/admin/.rvm/gems/ruby-2.1.1/bin/rake:23:in `<main>'
/Users/admin/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/admin/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
I have a feeling this has something to do with my Gemfile, but unable to pinpoint the issue. What could be causing the 'block in create_shell_runner' issue for this rake task?
Thanks in advance!

rails 3 with mongodb assets precompile error:

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

Rails - Heroku push fails and results in uninitialized constant Log4r

For my application, I have recently set up Stripe and Oauth. It runs great locally, but when I try to push up to herokuapp (git push heroku master) it results in the following compiling error. How do I solve this?
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
uninitialized constant Log4r
/tmp/build_1s1esoyyqqqcw/config/environments/production.rb:87:in `block in <top (required)>'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:24:in `class_eval'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:24:in `configure'
/tmp/build_1s1esoyyqqqcw/config/environments/production.rb:1:in `<top (required)>'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:571:in `block in <class:Engine>'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:95:in `block (2 levels) in <top (required)>'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/tmp/build_1s1esoyyqqqcw/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
Tasks: TOP => assets:precompile:primary => assets:environment
(See full trace by running task with --trace)
Precompiling assets failed, enabling runtime asset compilation
I'm not sure if the items below matter or impacts it.
production.rb
config.assets.precompile += %w( stripe_form.js )
Rails.logger = Logger.new(STDOUT)
Rails.logger = Log4r::Logger.new("Application Log")
I deleted the two lines in production.rb:
Rails.logger = Logger.new(STDOUT)
Rails.logger = Log4r::Logger.new("Application Log")
And now it pushes up to heroku succesfully.

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

Resources