Skip to content

Instantly share code, notes, and snippets.

@morenoh149
Created February 12, 2014 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morenoh149/8964109 to your computer and use it in GitHub Desktop.
Save morenoh149/8964109 to your computer and use it in GitHub Desktop.
ActiveRecord::ConnectionTimeoutError
could not obtain a database connection within 5.000 seconds (waited 5.002 seconds)
Rails.root: /app
Application Trace | Framework Trace | Full Trace
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `block in wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `loop'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `wait_poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:136:in `block in poll'
vendor/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:146:in `synchronize'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:134:in `poll'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:423:in `acquire_connection'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:356:in `block in checkout'
vendor/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in `checkout'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
vendor/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:546:in `retrieve_connection'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:79:in `retrieve_connection'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:53:in `connection'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:792:in `current_version'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:800:in `needs_migration?'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:379:in `check_pending!'
vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:366:in `call'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:373:in `_run__1238955574538634655__call__callbacks'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
vendor/bundle/ruby/2.1.0/gems/heroku-deflater-0.5.3/lib/heroku-deflater/skip_binary.rb:19:in `call'
vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/deflater.rb:25:in `call'
vendor/bundle/ruby/2.1.0/gems/heroku-deflater-0.5.3/lib/heroku-deflater/serve_zipped_assets.rb:50:in `call'
vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
vendor/bundle/ruby/2.1.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
vendor/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
vendor/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
vendor/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
Request
Parameters:
None
Toggle session dump
Toggle env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment