账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    consul使用ACL的一个问题?
    41
    0

    问题描述

    这个我的配置文件,acl_master_token已经设置了,应用我是跑在docker里的

    {
        "datacenter": "dc1",
        "data_dir": "/consul/data",
        "log_level": "INFO",
        "server": true,
        "bootstrap_expect": 3,
        "acl_datacenter": "dc1",
        "acl_master_token": "fe15af83-d36e-××××××××××××××××××××",
        "acl_token": "54321c",
        "acl_default_policy": "deny",
        "acl_down_policy": "extend-cache",
        "bind_addr": "192.168.1.15",
        "client_addr": "0.0.0.0",
        "retry_join": ["192.168.1.12"],
        "retry_interval": "3s",
        "raft_protocol": 3,
        "enable_debug": false,
        "rejoin_after_leave": true,
        "encrypt": "h+TjXojPyignafeO+dCeow==",
        "enable_syslog": false
    }

    启动consul后发现,

    018/11/12 13:28:06 [ERR] agent: failed to sync remote state: ACL not found
    consul_1_aa055051bff7 |     2018/11/12 13:28:07 [ERR] agent: Coordinate update error: ACL not found
    consul_1_aa055051bff7 |     2018/11/12 13:28:24 [ERR] agent: Coordinate update error: ACL not found
    consul_1_aa055051bff7 |     2018/11/12 13:28:34 [ERR] agent: failed to sync remote state: ACL not found
    consul_1_aa055051bff7 |     2018/11/12 13:28:47 [ERR] agent: Coordinate update error: ACL not found
    

    似乎是ACL没有设置正确,但是acl_token我也配置了

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部