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

ActionController::Live::ClientDisconnected (client disconnected): #100

Open
alpha-qu opened this issue Jul 3, 2017 · 5 comments
Open

ActionController::Live::ClientDisconnected (client disconnected): #100

alpha-qu opened this issue Jul 3, 2017 · 5 comments

Comments

@alpha-qu
Copy link

alpha-qu commented Jul 3, 2017

After sometime this error start rising up again and again. Following is the trace I'm getting.

`Completed 500 Internal Server Error in 61858ms (ActiveRecord: 0.0ms)

ActionController::Live::ClientDisconnected (client disconnected):
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/live.rb:147:in write' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:13:in block (2 levels) in index'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/subscribe.rb:45:in block in subscription' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:141:in block (3 levels) in call_loop'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:135:in loop' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:135:in block (2 levels) in call_loop'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:231:in block (2 levels) in process' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:367:in ensure_connected'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:221:in block in process' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:306:in logging'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:220:in process' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:134:in block in call_loop'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:280:in with_socket_timeout' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/client.rb:133:in call_loop'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/subscribe.rb:43:in subscription' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis/subscribe.rb:20:in psubscribe'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis.rb:2765:in _subscription' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis.rb:2165:in block in psubscribe'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis.rb:58:in block in synchronize' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/2.3.0/monitor.rb:214:in mon_synchronize'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis.rb:58:in synchronize' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/redis-3.3.3/lib/redis.rb:2164:in psubscribe'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:144:in block in method_missing' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:64:in block (2 levels) in with'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in handle_interrupt' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in block in with'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in handle_interrupt' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in with'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:131:in with' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/connection_pool-2.2.1/lib/connection_pool.rb:143:in method_missing'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:11:in index' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/implicit_render.rb:4:in send_action'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:198:in process_action' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/rendering.rb:10:in process_action'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:20:in block in process_action' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:117:in call'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:555:in block (2 levels) in compile' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in call'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:92:in __run_callbacks__' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in _run_process_action_callbacks'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:81:in run_callbacks' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:19:in process_action'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/rescue.rb:29:in process_action' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:32:in block in process_action'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in block in instrument' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in instrument'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in instrument' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:30:in process_action'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/params_wrapper.rb:250:in process_action' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/railties/controller_runtime.rb:18:in process_action'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:137:in process' /home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionview-4.2.6/lib/action_view/rendering.rb:30:in process'
/home/deepak/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/live.rb:278:in `block in process'

`
Any idea to remove the error?
Thanks in advance...

@gottfrois
Copy link
Owner

Really not sure what's going on here. What I do know is that ActionController::Live Is not very stable and is more of a hacky way to perform live stream.
The gem is probably missing a place where we need to make sure we re-connect to redis database when we use multiple thread.

@mileslane
Copy link

mileslane commented Sep 12, 2017

This is still happening.

/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:161:in write' /.rvm/gems/ruby-2.4.1@dashboard/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:13:inblock (2 levels) in index'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/subscribe.rb:45:in block in subscription' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:141:inblock (3 levels) in call_loop'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:135:in loop' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:135:inblock (2 levels) in call_loop'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:231:in block (2 levels) in process' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:367:inensure_connected'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:221:in block in process' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:306:inlogging'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:220:in process' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:134:inblock in call_loop'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:280:in with_socket_timeout' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/client.rb:133:incall_loop'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/subscribe.rb:43:in subscription' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis/subscribe.rb:20:inpsubscribe'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis.rb:2765:in _subscription' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis.rb:2165:inblock in psubscribe'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis.rb:58:in block in synchronize' /.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/monitor.rb:214:inmon_synchronize'
/.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis.rb:58:in synchronize' /.rvm/gems/ruby-2.4.1@dashboard/gems/redis-3.3.3/lib/redis.rb:2164:inpsubscribe'
/.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:144:in block in method_missing' /.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:64:in block (2 levels) in with'
/.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in handle_interrupt' /.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in block in with'
/.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in handle_interrupt' /.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in with'
/.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:131:in with' /.rvm/gems/ruby-2.4.1@dashboard/gems/connection_pool-2.2.1/lib/connection_pool.rb:143:in method_missing'
/.rvm/gems/ruby-2.4.1@dashboard/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:11:in index' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/basic_implicit_render.rb:4:in send_action'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/abstract_controller/base.rb:188:in process_action' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/rendering.rb:30:in process_action'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb:20:in block in process_action' /.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:126:in call'
/.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:506:in block (2 levels) in compile' /.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:455:in call'
/.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:101:in __run_callbacks__' /.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:750:in _run_process_action_callbacks'
/.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:90:in run_callbacks' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb:19:in process_action'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/rescue.rb:20:in process_action' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb:32:in block in process_action'
/.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in block in instrument' /.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/notifications/instrumenter.rb:21:in instrument'
/.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in instrument' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb:30:in process_action'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/params_wrapper.rb:248:in process_action' /.rvm/gems/ruby-2.4.1@dashboard/gems/activerecord-5.0.6/lib/active_record/railties/controller_runtime.rb:18:in process_action'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/abstract_controller/base.rb:126:in process' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionview-5.0.6/lib/action_view/rendering.rb:30:in process'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:254:in block (2 levels) in process' /.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/dependencies/interlock.rb:40:in block in running'
/.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/concurrency/share_lock.rb:161:in sharing' /.rvm/gems/ruby-2.4.1@dashboard/gems/activesupport-5.0.6/lib/active_support/dependencies/interlock.rb:39:in running'
/.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:246:in block in process' /.rvm/gems/ruby-2.4.1@dashboard/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:290:in block in new_controller_thread'

@NashL
Copy link

NashL commented Oct 8, 2017

Same here

  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:161:in `write'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:13:in `block (2 levels) in index'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/subscribe.rb:45:in `block in subscription'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:141:in `block (3 levels) in call_loop'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:135:in `loop'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:135:in `block (2 levels) in call_loop'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:231:in `block (2 levels) in process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:367:in `ensure_connected'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:221:in `block in process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:306:in `logging'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:220:in `process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:134:in `block in call_loop'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:280:in `with_socket_timeout'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/client.rb:133:in `call_loop'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/subscribe.rb:43:in `subscription'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis/subscribe.rb:20:in `psubscribe'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis.rb:2775:in `_subscription'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis.rb:2165:in `block in psubscribe'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis.rb:58:in `block in synchronize'
  /home/nash/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis.rb:58:in `synchronize'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/redis-3.3.5/lib/redis.rb:2164:in `psubscribe'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:144:in `block in method_missing'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:64:in `block (2 levels) in with'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in `handle_interrupt'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in `block in with'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in `handle_interrupt'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in `with'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:131:in `with'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/connection_pool-2.2.1/lib/connection_pool.rb:143:in `method_missing'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:11:in `index'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/abstract_controller/base.rb:188:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/rendering.rb:30:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:126:in `call'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:455:in `call'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:90:in `run_callbacks'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb:19:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/rescue.rb:20:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in `block in instrument'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in `instrument'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activerecord-5.0.6/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/abstract_controller/base.rb:126:in `process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionview-5.0.6/lib/action_view/rendering.rb:30:in `process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:254:in `block (2 levels) in process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/dependencies/interlock.rb:40:in `block in running'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/concurrency/share_lock.rb:161:in `sharing'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.6/lib/active_support/dependencies/interlock.rb:39:in `running'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:246:in `block in process'
  /home/nash/.rvm/gems/ruby-2.3.3/gems/actionpack-5.0.6/lib/action_controller/metal/live.rb:290:in `block in new_controller_thread'```

@Levii01
Copy link

Levii01 commented Oct 9, 2017

The same issue

Completed 500 Internal Server Error in 168956ms



ActionController::Live::ClientDisconnected (client disconnected):
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/live.rb:160:in `write'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:13:in `block (2 levels) in index'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/subscribe.rb:45:in `block in subscription'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:141:in `block (3 levels) in call_loop'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:135:in `loop'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:135:in `block (2 levels) in call_loop'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:231:in `block (2 levels) in process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:367:in `ensure_connected'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:221:in `block in process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:306:in `logging'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:220:in `process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:134:in `block in call_loop'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:280:in `with_socket_timeout'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/client.rb:133:in `call_loop'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/subscribe.rb:43:in `subscription'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis/subscribe.rb:20:in `psubscribe'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis.rb:2765:in `_subscription'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis.rb:2165:in `block in psubscribe'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis.rb:58:in `block in synchronize'
  /Users/emsi/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis.rb:58:in `synchronize'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/redis-3.3.3/lib/redis.rb:2164:in `psubscribe'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:144:in `block in method_missing'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:64:in `block (2 levels) in with'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in `handle_interrupt'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:63:in `block in with'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in `handle_interrupt'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:60:in `with'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:131:in `with'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/connection_pool-2.2.1/lib/connection_pool.rb:143:in `method_missing'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/dashing-rails-2.6.1/app/controllers/dashing/events_controller.rb:11:in `index'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:131:in `run_callbacks'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/live.rb:253:in `block (2 levels) in process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:40:in `block in running'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:160:in `sharing'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:39:in `running'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/live.rb:245:in `block in process'
  /Users/emsi/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.4/lib/action_controller/metal/live.rb:289:in `block in new_controller_thread'

@bruzos
Copy link

bruzos commented May 16, 2018

HI, I have been working last 2 days in a similar problem, but in my case the events controller is envolved.

I have detected a problem related about the connection pool and the Action::Live disconnection from the dashing/events page

The problem is described in the following pull request #105

May it could be related

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

No branches or pull requests

6 participants