-
create zk node failed
-
[root@localhost codis]# bin/codis-config dashboard2016/04/27 18:26:08 dashboard.go:160: [INFO] dashboard listening on addr: :180872016/04/27 18:26:08 dashboard.go:234: [PANIC] create zk node failed[error]: dashboard already exists: {"addr": "192.168.75.141:18087", "pid": 59257}[stack]: 3 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/dashboard.go:234 main.runDashboard 2 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/dashboard.go:54 main.cmdDashboard 1 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/main.go:85 main.runCommand 0 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/main.go:152 main.main ... ...
解决方案:初步kill掉dashboard,不能加-9参数,再启动,如果不成功则登陆zookeeper,删除dashboard,重启即可。最彻底的办法还是删除dashboard。
连接上其中的一台zookeeper,找到dashboard,删除
-
run sub-command failed
-
[root@localhost codis]# bin/codis-config slot init2016/04/27 18:33:53 main.go:154: [PANIC] run sub-command failed[error]: http status code 500, slots already initialized, you may use 'is_force' flag and try again. 4 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/utils.go:66 main.callApi 3 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/slot.go:123 main.runSlotInit 2 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/slot.go:72 main.cmdSlot 1 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/main.go:91 main.runCommand 0 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/main.go:152 main.main ... ...[stack]: 0 /home/listen/go/go/src/github.com/CodisLabs/codis/cmd/cconfig/main.go:154 main.main ... ...
解决方案:codis集群第一次启动时需要执行,后续再启动不需要执行
未完待续。。。