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

Starting redis_node_manager connection timeouts #75

Open
lazzarouk opened this issue May 9, 2014 · 3 comments
Open

Starting redis_node_manager connection timeouts #75

lazzarouk opened this issue May 9, 2014 · 3 comments

Comments

@lazzarouk
Copy link

Hi,

I was looking for a fail over package and found this package so I'm fairly new to this. I have started to experiment with it and I had entered on the command line

$ redis_node_manager -n localhost:6000,localhost:6001 -z localhost:7000,localhost:7001,localhost:7002 --with-chroot /tmp/

So after 30 seconds I would get this message continuously can you please help

ERROR: ZK error while attempting to manage nodes: #<Zookeeper::Exceptions::ContinuationTimeoutError: response for meth: :exists, args: [0, "/opt/", nil, nil], not received within 30 seconds>

@arohter
Copy link
Contributor

arohter commented May 12, 2014

Impossible to tell without the full exception trace.

@lazzarouk
Copy link
Author

Thank you for responding back. This is the command I had entered
$ redis_node_manager -n localhost:6000,localhost:6001 -z localhost:7000,localhost:7001,localhost:7002

2014-05-12 22:18:32 UTC RedisFailover 19605 INFO: Redis Node Manager v1.0.2 starting (ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux])
2014-05-12 22:19:22 UTC RedisFailover 19605 ERROR: ZK error while attempting to manage nodes: #<Zookeeper::Exceptions::ContinuationTimeoutError: response for meth: :exists, args: [0, "/tmp/redis_nodes", nil, nil], not received within 30 seconds>

014-05-12 22:20:17 UTC RedisFailover 19605 ERROR: ZK error while attempting to manage nodes: #<Zookeeper::Exceptions::ContinuationTimeoutError: response for meth: :exists, args: [0, "/tmp/redis_nodes", nil, nil], not received within 30 seconds>

=====>> I Have interrupted it "CTRL-C" and here is the stack log
^Clog writing failed. can't be called from trap context
/home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:185:in lock': can't be called from trap context (ThreadError) from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:185:inmon_enter'
from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:209:in mon_synchronize' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/lib/redis_failover/node_manager.rb:99:inshutdown'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/lib/redis_failover/runner.rb:21:in block (2 levels) in trap_signals' from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:110:incall'
from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:110:in sleep' from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:110:inwait'
from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:110:in wait' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zookeeper-1.4.8/lib/zookeeper/continuation.rb:113:inblock in value'
from /home/lazzarouk/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zookeeper-1.4.8/lib/zookeeper/continuation.rb:107:invalue'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zookeeper-1.4.8/ext/c_zookeeper.rb:231:in submit_and_block' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zookeeper-1.4.8/ext/c_zookeeper.rb:40:inexists'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zookeeper-1.4.8/lib/zookeeper/client_methods.rb:82:in stat' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/client/base.rb:1055:incall_and_check_rc'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/client/threaded.rb:579:in call_and_check_rc' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/client/base.rb:623:inblock in stat'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/event_handler.rb:282:in setup_watcher!' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/client/base.rb:1100:insetup_watcher!'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/client/base.rb:622:in stat' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/zk-1.7.5/lib/zk/client/base.rb:648:inexists?'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/lib/redis_failover/node_manager.rb:389:in create_path' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/lib/redis_failover/node_manager.rb:119:insetup_zk'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/lib/redis_failover/node_manager.rb:57:in start' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/lib/redis_failover/runner.rb:13:inrun'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/gems/redis_failover-1.0.2/bin/redis_node_manager:6:in <top (required)>' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/bin/redis_node_manager:23:inload'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/bin/redis_node_manager:23:in <main>' from /home/lazzarouk/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:ineval'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `

'

@arohter
Copy link
Contributor

arohter commented May 16, 2014

The exception when you ctrl-c is this ruby 2.x issue - #62 - but I don't understand why there's no exception trace printed (just "#" ?) for the zk failure: https://github.com/ryanlecompte/redis_failover/blob/v1.0.2/lib/redis_failover/node_manager.rb#L61

HOWEVER, I'd start by updating to a modern zk gem version first; zk-1.7.5 is extremely old.
You should be running zk 1.9.4 (http://rubygems.org/gems/zk) and zookeeper 1.4.8 (http://rubygems.org/gems/zookeeper).

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

2 participants