Comments (3)
Impossible to tell without the full exception trace.
from redis_failover.
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:in
mon_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:in
shutdown'
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:in
call'
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:in
wait'
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:in
block 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:in
value'
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:in
exists'
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:in
call_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:in
block 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:in
setup_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:in
exists?'
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:in
setup_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:in
run'
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:in
load'
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:in
eval'
from /home/lazzarouk/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `
from redis_failover.
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).
from redis_failover.
Related Issues (20)
- Full Failure of server HOT 1
- Undefined method 'job' for main object with Resque HOT 4
- Occasionally stale server selection HOT 2
- start-stop-daemon to start redis_failover how to save log
- Add informative procline
- passing in a zk and having it close before redis-failover can trigger an infinite loop
- Prevent reads on slaves HOT 3
- Add subscribing part of Pub/Sub ops to REDIS_READ_OPS
- If ZK has an old master, redis_failover will use it even though the redis instance does not exist HOT 2
- License missing from gemspec
- stuck in "Failed to discover master node" HOT 1
- Shutdown fails with Ruby 2.0 HOT 3
- Error bringing back up failed master HOT 8
- Support Ruby 2.0 HOT 2
- Support Redis 2.8 HOT 1
- Allow Manual Failover in cluster bootstrap
- Redis-failover start up error HOT 1
- State of redis_failover HOT 3
- ruby1.9 下启动报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis_failover.