zookeeper codis-admin提示[error]: [Remote Error] topom is not online

 Pala   2018-11-08 17:05   40 人阅读  0 条评论

用codis-admin工具总是显示dashboard调用失败

错误信息如下:

codis-admin --dashboard=192.168.122.1:18080 --create-proxy -x 192.168.122.1:11080
2018/11/08 17:02:54 dashboard.go:369: [PANIC] call rpc create-proxy to dashboard 192.168.122.1:18080 failed
[error]: [Remote Error] topom is not online
[stack]: 
    2   /opt/gowork/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:369
            main.(*cmdDashboard).handleProxyCommand
    1   /opt/gowork/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:52
            main.(*cmdDashboard).Main
    0   /opt/gowork/src/github.com/CodisLabs/codis/cmd/admin/main.go:82
            main.main
        ... ...


解决办法

>>> codis-admin --remove-lock --product=codis-testX --zookeeper=192.168.122.1:2181
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - zkclient setup new connection to 192.168.122.1:2181
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Connected to 192.168.122.1:2181
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Authenticated: id=72057756374794242, timeout=40000
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Re-submitting `0` credentials after reconnect
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Recv loop terminated: err=EOF
2018/11/08 17:14:40 zkclient.go:23: [INFO] zookeeper - Send loop terminated: err=<nil>
[1]-  Exit 1                  codis-dashboard --ncpu=1 --config=/etc/codis/codis-dashboard/dashboard.toml --log=/usr/local/codis/logs/dashboard.log --log-level=warn

注意:

--product=对应的参数是zookeeper的product_name

--zookeeper对应的参数是zookeeper的监听的端口

本文地址:http://chenxm.cc/post/764.html
版权声明:本文为原创文章,版权归 Pala 所有,欢迎分享本文,转载请保留出处!

发表评论


表情

还没有留言,还不快点抢沙发?