Coder Social home page Coder Social logo

Comments (3)

arohter avatar arohter commented on August 19, 2024

Impossible to tell without the full exception trace.

from redis_failover.

lazzarouk avatar lazzarouk commented on August 19, 2024

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 `

'

from redis_failover.

arohter avatar arohter commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.