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

ConnectionPool::PoolShuttingDownError #106

Open
KoderMAL opened this issue Jul 24, 2018 · 0 comments
Open

ConnectionPool::PoolShuttingDownError #106

KoderMAL opened this issue Jul 24, 2018 · 0 comments

Comments

@KoderMAL
Copy link

Hello,

I try to run dashing-rails on rails 2.1.4 (i've tried on 2.4.1 as well). After following all steps I go to localhost:3000/dashing/dashboards and it loads forever.
After browser exit or reload I get this error:

ConnectionPool::PoolShuttingDownError

`connection_pool (2.2.2) lib/connection_pool/timed_stack.rb, line 80

   75       timeout = options.fetch :timeout, timeout
   76
   77       deadline = ConnectionPool.monotonic_time + timeout
   78       @mutex.synchronize do
   79         loop do
>  80           raise ConnectionPool::PoolShuttingDownError if @shutdown_block
   81           return fetch_connection(options) if connection_stored?(options)
   82
   83           connection = try_create(options)
   84           return connection if connection
   85

App backtrace

Full backtrace

  • connection_pool (2.2.2) lib/connection_pool/timed_stack.rb:80:in `block(2 levels) in pop'
  • connection_pool (2.2.2) lib/connection_pool/timed_stack.rb:79:in `blockin pop'
  • connection_pool (2.2.2) lib/connection_pool/timed_stack.rb:78:in `pop'
  • connection_pool (2.2.2) lib/connection_pool.rb:93:in `checkout'
  • connection_pool (2.2.2) lib/connection_pool.rb:62:in `block in with'
  • connection_pool (2.2.2) lib/connection_pool.rb:61:in `with'
  • dashing-rails (2.6.2) app/controllers/dashing/widgets_controller.rb:17:in `update'
  • actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  • actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action'
  • actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
  • actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block inprocess_action'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
  • actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
  • actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'
  • actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in`block in process_action'
  • activesupport (4.2.1) lib/active_support/notifications.rb:164:in `blockin instrument'
  • activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  • activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'
  • actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in`process_action'
  • actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in`process_action'
  • activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  • actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'
  • actionview (4.2.1) lib/action_view/rendering.rb:30:in `process'
  • actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'
  • actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in`dispatch'
  • actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'
  • actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
  • actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'
  • actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
  • actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'
  • actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'
  • railties (4.2.1) lib/rails/engine.rb:518:in `call'
  • railties (4.2.1) lib/rails/railtie.rb:194:in `method_missing'
  • actionpack (4.2.1) lib/action_dispatch/routing/mapper.rb:51:in `serve'
  • actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
  • actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'
  • actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • bullet (4.14.10) lib/bullet/rack.rb:10:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/rack/agent_hooks.rb:30:in `traced_call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/rack/browser_monitoring.rb:32:in `traced_call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/rack/developer_mode.rb:48:in `traced_call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/deflater.rb:35:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/etag.rb:24:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/conditionalget.rb:38:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/head.rb:13:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/session/abstract/id.rb:225:in `context'
  • rack (1.6.10) lib/rack/session/abstract/id.rb:220:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • activerecord (4.2.1) lib/active_record/migration.rb:378:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
  • activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
  • actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
  • better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
  • better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'
  • railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'
  • activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `blockin tagged'
  • activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'
  • activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'
  • railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'
  • quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/methodoverride.rb:22:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/runtime.rb:18:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/sendfile.rb:113:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack-cors (0.4.0) lib/rack/cors.rb:80:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack-cors (0.4.0) lib/rack/cors.rb:80:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • railties (4.2.1) lib/rails/engine.rb:518:in `call'
  • railties (4.2.1) lib/rails/application.rb:164:in `call'
  • newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
  • rack (1.6.10) lib/rack/content_length.rb:15:in `call'
  • unicorn (5.2.0) lib/unicorn/http_server.rb:562:in `process_client'
  • unicorn (5.2.0) lib/unicorn/http_server.rb:658:in `worker_loop'
  • unicorn (5.2.0) lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
  • unicorn (5.2.0) lib/unicorn/http_server.rb:132:in `start'
  • unicorn-rails (2.2.1) lib/unicorn_rails.rb:33:in `run'
  • rack (1.6.10) lib/rack/server.rb:287:in `start'
  • railties (4.2.1) lib/rails/commands/server.rb:80:in `start'
  • railties (4.2.1) lib/rails/commands/commands_tasks.rb:80:in `block in server'
  • railties (4.2.1) lib/rails/commands/commands_tasks.rb:75:in `server'
  • railties (4.2.1) lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  • railties (4.2.1) lib/rails/commands.rb:17:in `<top (required)>'
  • bin/rails:8:in <main>'

Has someone been through this issue?
I can't manage to make it work even on a brand new rails project

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

No branches or pull requests

2 participants