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

sentinel create node failed #8

Open
my3rs opened this issue Dec 5, 2019 · 2 comments
Open

sentinel create node failed #8

my3rs opened this issue Dec 5, 2019 · 2 comments

Comments

@my3rs
Copy link

my3rs commented Dec 5, 2019

got errors deserialize_CreateResponse failed from gedis-server and Error:KeeperErrorCode = NoNode for /servers/set-1 from zookeeper.

config file:

logdir stdout
bind 127.0.0.1
port 8001
loglevel debug

cluster on
clustercenters 127.0.0.1:2181
setid 1

logs:

2019-12-05[15:07:15.240][USR]:ListenSocket.cc:66 Success: listen on (127.0.0.1:8001)
2019-12-05[15:07:15.240][DBG]:QAOF.cc:63 start aof thread
2019-12-05[15:07:15.240][INF]:ClientSocket.cc:59 EINPROGRESS: ClientSocket connected to (127.0.0.1:2181)
2019-12-05[15:07:15.241][INF]:ClientSocket.cc:105 Success: ClientSocket connected to (127.0.0.1:2181)
2019-12-05[15:07:15.241][DBG]:Server.cc:161 Server::NewConnection()
2019-12-05[15:07:15.241][DBG]:Qedis.cc:145 Connect success to cluster 127.0.0.1:2181
2019-12-05[15:07:15.241][INF]:StreamSocket.cc:33 Init peer address (127.0.0.1:2181), local socket is 6
2019-12-05[15:07:15.241][DBG]:Server.cc:179 NetThreadPool::Instance().AddSocket succeed. tasks_.AddTask()
2019-12-05[15:07:15.241][DBG]:TaskManager.cc:17 TaskManager::AddTask | socket 127.0.0.1:2181, id = 3
2019-12-05[15:07:15.242][INF]:TaskManager.cc:70 New connection from 127.0.0.1:2181, id = 3, invalid = 0
2019-12-05[15:07:15.244][DBG]:ZookeeperConn.cc:241 Expired old session 103252631870701580
2019-12-05[15:07:15.244][DBG]:Socket.cc:45 Socket::OnError | invalid = 0
2019-12-05[15:07:15.244][ERR]:StreamSocket.cc:208 OnError peer address (127.0.0.1:2181), local socket is 6
2019-12-05[15:07:15.244][WRN]:Qedis.cc:243 Connect cluster failed 127.0.0.1:2181
2019-12-05[15:07:15.244][INF]:StreamSocket.cc:129 OnReadable failed, peer address (127.0.0.1:2181), local socket is 6
2019-12-05[15:07:15.244][DBG]:Socket.cc:45 Socket::OnError | invalid = 1
2019-12-05[15:07:15.244][DBG]:Socket.cc:51 Socket::OnError | invalid = 1
2019-12-05[15:07:15.245][INF]:TaskManager.cc:90 Close connection from 127.0.0.1:2181, id = 3
2019-12-05[15:07:15.273][INF]:StreamSocket.cc:19 ~StreamSocket peer (127.0.0.1:2181)
2019-12-05[15:07:15.273][DBG]:Socket.cc:67 CloseSocket 6
2019-12-05[15:07:17.244][USR]:Qedis.cc:250 OnTimer connect to 127.0.0.1:2181
2019-12-05[15:07:17.258][INF]:ClientSocket.cc:59 EINPROGRESS: ClientSocket connected to (127.0.0.1:2181)
2019-12-05[15:07:17.259][INF]:TaskManager.cc:70 New connection from 127.0.0.1:2181, id = 5, invalid = 0
2019-12-05[15:07:17.258][INF]:ClientSocket.cc:105 Success: ClientSocket connected to (127.0.0.1:2181)
2019-12-05[15:07:17.258][DBG]:Server.cc:161 Server::NewConnection()
2019-12-05[15:07:17.258][DBG]:Qedis.cc:145 Connect success to cluster 127.0.0.1:2181
2019-12-05[15:07:17.258][INF]:StreamSocket.cc:33 Init peer address (127.0.0.1:2181), local socket is 6
2019-12-05[15:07:17.258][DBG]:Server.cc:179 NetThreadPool::Instance().AddSocket succeed. tasks_.AddTask()
2019-12-05[15:07:17.258][DBG]:TaskManager.cc:17 TaskManager::AddTask | socket 127.0.0.1:2181, id = 5
2019-12-05[15:07:17.263][DBG]:ZookeeperConn.cc:249 new session Id:103252631870701581
2019-12-05[15:07:17.263][INF]:ZookeeperConn.cc:209 _RunForMaster, setid 1, value 127.0.0.1:8001
2019-12-05[15:07:17.265][INF]:ZookeeperConn.cc:364 got req.type 1
2019-12-05[15:07:17.265][ERR]:ZookeeperConn.cc:384 deserialize_CreateResponse failed
@loveyacper
Copy link
Owner

loveyacper commented Dec 12, 2019

The zk version should be 3.4.6, I haven't test Qedis on other versions.

Before run Qedis, you should use zkCli to create permanent node:/servers,also create permanent node for set:
/servers/set-1 // the set id is 1 in your config.

See details: sentinel doc

@loveyacper
Copy link
Owner

I recommend checkout code on this commit: bd74ecec830bd387c6504a9519325dfcc82f77a8.
It's a clean repo for stable sentinel.

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