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

created at 07-22-2021 views: 9

description

The codis-admin tool always shows that the dashboard call fails

The error message is as follows:

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
        ... ...

Solution

>>> 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

Notice

  • --product: the corresponding parameter is zookeeper's product_name
  • --zookeeper: the corresponding listening port of zookeeper
created at:07-22-2021
edited at: 07-22-2021: