Last active
August 29, 2015 13:57
-
-
Save shyammohankanojia/9889116 to your computer and use it in GitHub Desktop.
sidetiq-issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS : Ubuntu 12.04 | |
rails version 3.2.17 | |
ruby 2.1.1 | |
gem 'sidekiq', '~> 2.17.7' | |
gem "kiqstand", "~> 1.1.0" # middleware for Sidekiq for use with Mongoid 3 | |
gem 'sidetiq', '~> 0.5.0' | |
config/sidekiq.rb | |
---------------------------------------------------- | |
require 'sidekiq' | |
redis_server = "localhost" | |
Sidekiq.configure_server do |config| | |
config.redis = { :url => 'redis://' + redis_server + ':6379/0', namespace: 'mynamespace' } | |
config.poll_interval = 15 | |
config.server_middleware do |chain| | |
chain.add Kiqstand::Middleware | |
end | |
end | |
Sidekiq.configure_client do |config| | |
config.redis = { :url => 'redis://' + redis_server + ':6379/0', :namespace => 'mynamespace' } | |
end | |
--------------------------------------------------------------------------------- | |
This is logs im getting when worker executes... | |
2014-03-31T10:00:00Z 16612 TID-cgno0 WARN: {:context=>"Sidetiq::Handler#dispatch"} | |
2014-03-31T10:00:00Z 16612 TID-cgno0 WARN: ERR unknown command 'psetex' | |
2014-03-31T10:00:00Z 16612 TID-cgno0 WARN: /home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/pipeline.rb:83:in `finish' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/client.rb:133:in `block in call_pipeline' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/client.rb:257:in `with_reconnect' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/client.rb:131:in `call_pipeline' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:2094:in `block in multi' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:37:in `block in synchronize' | |
/home/localadmin/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:2086:in `multi' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-namespace-1.4.1/lib/redis/namespace.rb:374:in `namespaced_block' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-namespace-1.4.1/lib/redis/namespace.rb:245:in `multi' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:60:in `block (2 levels) in lock' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:108:in `watch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:58:in `block in lock' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/connection_pool-2.0.0/lib/connection_pool.rb:58:in `with' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.7/lib/sidekiq.rb:67:in `redis' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:55:in `lock' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:23:in `block in synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/connection_pool-2.0.0/lib/connection_pool.rb:58:in `with' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.7/lib/sidekiq.rb:67:in `redis' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:22:in `synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/handler.rb:11:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create' | |
2014-03-31T10:00:00Z 16612 TID-cgno0 INFO: [Sidetiq] Sidetiq::Actor::Handler id: 20899000 shutting down ... | |
2014-03-31T10:00:00Z 16612 TID-byuyg WARN: {:context=>"Sidetiq::Clock#loop!"} | |
2014-03-31T10:00:00Z 16612 TID-cgno0 INFO: [Sidetiq] Sidetiq::Actor::Handler id: 32611600 initialize | |
2014-03-31T10:00:00Z 16612 TID-byuyg WARN: ERR unknown command 'psetex' | |
2014-03-31T10:00:00Z 16612 TID-byuyg WARN: /home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/pipeline.rb:83:in `finish' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/client.rb:133:in `block in call_pipeline' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/client.rb:257:in `with_reconnect' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis/client.rb:131:in `call_pipeline' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:2094:in `block in multi' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:37:in `block in synchronize' | |
/home/localadmin/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-3.0.7/lib/redis.rb:2086:in `multi' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-namespace-1.4.1/lib/redis/namespace.rb:374:in `namespaced_block' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/redis-namespace-1.4.1/lib/redis/namespace.rb:245:in `multi' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:60:in `block (2 levels) in lock' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:108:in `watch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:58:in `block in lock' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/connection_pool-2.0.0/lib/connection_pool.rb:58:in `with' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.7/lib/sidekiq.rb:67:in `redis' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:55:in `lock' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:23:in `block in synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/connection_pool-2.0.0/lib/connection_pool.rb:58:in `with' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.7/lib/sidekiq.rb:67:in `redis' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/lock/redis.rb:22:in `synchronize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/handler.rb:11:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create' | |
(celluloid):0:in `remote procedure call' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in `value' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/actor_proxy.rb:20:in `_send_' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/pool_manager.rb:41:in `_send_' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/pool_manager.rb:123:in `method_missing' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create' | |
(celluloid):0:in `remote procedure call' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in `value' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/clock.rb:47:in `block in tick' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/clock.rb:46:in `each' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/clock.rb:46:in `tick' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/actor/clock.rb:21:in `block in loop!' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/actor/clock.rb:31:in `time' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/actor/clock.rb:21:in `loop!' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/sidetiq-0.5.0/lib/sidetiq/actor/clock.rb:22:in `block in loop!' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize' | |
/home/localadmin/shyam/code/mvi/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create' | |
2014-03-31T10:00:00Z 16612 TID-byuyg INFO: [Sidetiq] Sidetiq::Actor::Clock id: 32197560 shutting down ... | |
2014-03-31T10:00:00Z 16612 TID-byuyg INFO: [Sidetiq] Sidetiq::Actor::Clock id: 32747460 initialize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you try old version redis, update to 2.8.x it's can resolve problem.