Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.005 seconds); all pooled connections were in use #7755

Closed
komagata opened this issue May 3, 2024 · 0 comments
Labels

Comments

@komagata
Copy link
Member

komagata commented May 3, 2024

View details in Rollbar: https://app.rollbar.com/a/komagata/fix/item/Bootcamp/1652


ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.005 seconds); all pooled connections were in use
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 210, in block in wait_poll
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 199, in loop
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 199, in wait_poll
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 160, in internal_poll
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 286, in internal_poll
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 155, in block in poll
  File "/usr/local/lib/ruby/3.1.0/monitor.rb", line 202, in synchronize
  File "/usr/local/lib/ruby/3.1.0/monitor.rb", line 202, in mon_synchronize
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 164, in synchronize
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 155, in poll
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 870, in acquire_connection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 588, in checkout
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 428, in connection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 1128, in retrieve_connection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_handling.rb", line 327, in retrieve_connection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_handling.rb", line 283, in connection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/model_schema.rb", line 380, in table_exists?
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/attribute_methods.rb", line 163, in attribute_names
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 109, in block in include
  File "/usr/local/lib/ruby/3.1.0/mutex_m.rb", line 79, in synchronize
  File "/usr/local/lib/ruby/3.1.0/mutex_m.rb", line 79, in mu_synchronize
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 103, in include
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 269, in _extract_parameters
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 265, in _wrap_parameters
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 291, in _perform_parameter_wrapping
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 248, in process_action
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/railties/controller_runtime.rb", line 27, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 165, in process
  File "/usr/local/bundle/gems/actionview-6.1.4.7/lib/action_view/rendering.rb", line 39, in process
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 190, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 254, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 50, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 33, in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 50, in block in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 32, in each
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 32, in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 842, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 202, in call!
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 169, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 202, in call!
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 169, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/builder.rb", line 44, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/tempfile_reaper.rb", line 15, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/etag.rb", line 27, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/conditional_get.rb", line 27, in call
  File "/usr/local/bundle/gems/rack-user_agent-0.5.3/lib/rack/user_agent.rb", line 16, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/head.rb", line 12, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/http/permissions_policy.rb", line 22, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/http/content_security_policy.rb", line 18, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb", line 266, in context
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb", line 260, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/cookies.rb", line 689, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/callbacks.rb", line 27, in block in call
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 98, in run_callbacks
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/callbacks.rb", line 26, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/actionable_exceptions.rb", line 18, in call
  File "/usr/local/bundle/gems/rollbar-3.5.2/lib/rollbar/middleware/rails/rollbar.rb", line 25, in block in call
  File "/usr/local/bundle/gems/rollbar-3.5.2/lib/rollbar.rb", line 145, in scoped
  File "/usr/local/bundle/gems/rollbar-3.5.2/lib/rollbar/middleware/rails
@komagata komagata added the バグ label May 3, 2024
@komagata komagata moved this to 完成 in bootcamp Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant