Skip to content

Instantly share code, notes, and snippets.

@prakashmurthy
Created November 30, 2010 00:49
Show Gist options
  • Save prakashmurthy/720928 to your computer and use it in GitHub Desktop.
Save prakashmurthy/720928 to your computer and use it in GitHub Desktop.
output of heroku rake db:migrate on #PPP
$ heroku logs
/home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/vendor/require-profiler/lib/require-profiler.rb:90:in `rescue in <top (required)>': (RuntimeError)
You need to install the term-ansicolor gem to see colorized reports.
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/vendor/require-profiler/lib/require-profiler.rb:87:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/config/environment.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from config.ru:3:in `block (3 levels) in <main>'
from /home/heroku_rack/heroku.ru:23:in `eval'
from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map'
from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/heroku_rack/heroku.ru:11:in `new'
from /home/heroku_rack/heroku.ru:11:in `block in <main>'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/heroku_rack/heroku.ru:1:in `new'
from /home/heroku_rack/heroku.ru:1:in `<main>'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
from /usr/ruby1.9.2/bin/thin:19:in `load'
from /usr/ruby1.9.2/bin/thin:19:in `<main>'
==> dyno-2735890.log (crash) <==
/home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/vendor/require-profiler/lib/require-profiler.rb:90:in `rescue in <top (required)>': (RuntimeError)
You need to install the term-ansicolor gem to see colorized reports.
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/vendor/require-profiler/lib/require-profiler.rb:87:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/config/environment.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from config.ru:3:in `block (3 levels) in <main>'
from /home/heroku_rack/heroku.ru:23:in `eval'
from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map'
from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/heroku_rack/heroku.ru:11:in `new'
from /home/heroku_rack/heroku.ru:11:in `block in <main>'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/app/9493b3e5-40a4-4860-bd6c-da4e8664e69e/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/heroku_rack/heroku.ru:1:in `new'
from /home/heroku_rack/heroku.ru:1:in `<main>'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
from /usr/ruby1.9.2/bin/thin:19:in `load'
from /usr/ruby1.9.2/bin/thin:19:in `<main>'
-----> An error happened during the initialization of your app.
This may be due to a typo, wrong number of arguments, or calling a
function that doesn't exist.
Make sure the app is working locally in production mode, by running it
with RAILS_ENV (for Rails apps) or RACK_ENV (for Sinatra or other rack
apps) set to production. e.g. RAILS_ENV=production script/server.
Examine the backtrace above this message to debug.
$ heroku rake db:migrate
(in /home/app/f2e6c6df-ade4-4896-b22e-65c187606ded)
Could not find annotate-2.4.0 in any of the sources
Try running `bundle install`.
@prakashmurthy
Copy link
Author

The error was happening because the term-ansicolor gem was being installed only in dev/test mode, and not in prod mode. Elliot Winkler fixed it with the following commit on PromiscuousPairProgramming.

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