celluloid / dcell

UNMAINTAINED: See celluloid/celluloid#779 - Actor-based distributed objects in Ruby based on Celluloid and 0MQ
http://celluloid.io
MIT License
595 stars 65 forks source link

unexpected zookeeper error when using DCell #102

Closed marcoeg closed 9 years ago

marcoeg commented 9 years ago

I have been using DCell in a Ruby application for 2 years. Today when I restarted the server I got the following zookeeper error (reproduced using the scratchy.rb example):

2015-07-12 21:29:29,030 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /127.0.0.1:62409

2015-07-12 21:29:29,030 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@793] - Connection request from old client /127.0.0.1:62409; will be dropped if server is in r-o mode

2015-07-12 21:29:29,037 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@839] - Client attempting to establish new session at /127.0.0.1:62409

2015-07-12 21:29:29,039 [myid:] - INFO [SyncThread:0:ZooKeeperServer@595] - Established session 0x14e841d7b760004 with negotiated timeout 20001 for client /127.0.0.1:62409

2015-07-12 21:29:29,054 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@627] - Got user-level KeeperException when processing sessionid:0x14e841d7b760004 type:create cxid:0x55a2dc39 zxid:0xf64 txntype:-1 reqpath:n/a Error Path:/dcell/production/nodes Error:KeeperErrorCode = NodeExists for /dcell/production/nodes

2015-07-12 21:29:29,059 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@627] - Got user-level KeeperException when processing sessionid:0x14e841d7b760004 type:create cxid:0x55a2dc3b zxid:0xf66 txntype:-1 reqpath:n/a Error Path:/dcell/production/globals Error:KeeperErrorCode = NodeExists for /dcell/production/globals

2015-07-12 21:29:29,065 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@627] - Got user-level KeeperException when processing sessionid:0x14e841d7b760004 type:setData cxid:0x55a2dc3d zxid:0xf68 txntype:-1 reqpath:n/a Error Path:/dcell/production/nodes/scratchy Error:KeeperErrorCode = NoNode for /dcell/production/nodes/scratchy

I am sure there is something wrong the way I have restarted the server. I have no updated any packages.

Any help would be greatly appreciated.

Thanks,

-Marco G.

tarcieri commented 9 years ago

It looks like it's trying to re-create /dcell/production/nodes but it already exists

niamster commented 9 years ago

That's strange as zk adapter uses mkdir_p. @marcoeg which revision of DCell are you actually using?

marcoeg commented 9 years ago

Thank you for your replies. I am using dcell (0.14.0). It appears that the error is not preventing dcell to work. The problem I had after restarting the server was in using a Ruby version other than 1.9.3. Once I set rvm to use 1.9.3 everything worked again, in spite of the zk error.

niamster commented 9 years ago

Probably that's zk configuration option to flood with these messages.