• codis3.2安装报错dashboard.go:369: [PANIC] call rpc create-proxy to dashboard 127.0.0.1:18080 failed的处理


    codis3.2安装报错dashboard.go:369: [PANIC] call rpc create-proxy to dashboard 127.0.0.1:18080 failed的处理

    执行以下命令时报错:
    # pwd
    /usr/local/go/work/src/github.com/CodisLabs/codis

    # ./bin/codis-admin --dashboard=192.168.3.198:18080 --create-proxy -x 192.168.3.198:11080
    
    [root@node1 codis]# ./bin/codis-admin --dashboard=127.0.0.1:18080 --create-proxy -x 127.0.0.1:11080
    2017/05/12 19:13:51 dashboard.go:369: [PANIC] call rpc create-proxy to dashboard 127.0.0.1:18080 failed
    [error]: [Remote Error] proxy@127.0.0.1:11080 fetch model failed, Get http://127.0.0.1:11080/api/proxy/model: dial tcp 127.0.0.1:11080: getsockopt: connection refused
    2 /usr/local/go/work/src/github.com/CodisLabs/codis/pkg/topom/topom_proxy.go:24
    github.com/CodisLabs/codis/pkg/topom.(*Topom).CreateProxy
    1 /usr/local/go/work/src/github.com/CodisLabs/codis/pkg/topom/topom_api.go:244
    github.com/CodisLabs/codis/pkg/topom.(*apiServer).CreateProxy
    0 /usr/local/go/work/src/github.com/CodisLabs/codis/pkg/topom/topom_api.go:81
    github.com/CodisLabs/codis/pkg/topom.(*apiServer).CreateProxy-fm
    ... ...
    [stack]: 
    2 /usr/local/go/work/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:369
    main.(*cmdDashboard).handleProxyCommand
    1 /usr/local/go/work/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:52
    main.(*cmdDashboard).Main
    0 /usr/local/go/work/src/github.com/CodisLabs/codis/cmd/admin/main.go:82
    main.main
    ... ...

    知乎上的答案:https://www.zhihu.com/question/52519151,感觉没有说清楚问题和解决办法


    实际上经过看前面的启动dashboard命令:
    官方文档是这样启动dashboard的

    nohup ./bin/codis-dashboard --ncpu=4 --config=dashboard.toml 
    --log=dashboard.log --log-level=WARN &

    问题出在--config=dashboard.toml上,没有显示指定config文件,就用默认的,而实际上我们需要启动自己的配置文件
    加上config即可,如下:

    [root@node1 codis]# nohup ./bin/codis-dashboard --ncpu=1 --config=config/dashboard.toml --log=dashboard.log --log-level=WARN >> /var/log/codis_dashboard.log &
  • 相关阅读:
    java_000.JAVA语言课堂测试试卷01
    2018暑假第八周总结&暑假代码成果总结(8.27-9.2)
    C#_最基础的计算器
    Java_学生信息管理系统——数组版——初次编写
    Java_计算器001,支持加减乘除,括号,小数点,√,^ 运算
    Java_计算器001,支持加减乘除,括号运算
    2018暑假第七周总结(8.20-8.26)
    2018暑假第六周总结(8.13-8.19)
    2018暑假第五周总结(8.6-8.12)
    poj 1984(带权并查集)
  • 原文地址:https://www.cnblogs.com/reblue520/p/6847041.html
Copyright © 2020-2023  润新知