V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
salamanderMH
V2EX  ›  问与答

consul 使用 ACL 后一直出问题?

  •  
  •   salamanderMH · 2018-11-13 09:03:39 +08:00 · 1056 次点击
    这是一个创建于 1962 天前的主题,其中的信息可能已经有所发展或是发生改变。

    问题描述

    这个我的配置文件,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我也配置了

    consul 版本是 1.3

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1697 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:45 · PVG 00:45 · LAX 09:45 · JFK 12:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.