当我的代理尝试从配置文件中注册服务时,我遇到了这个错误:
Sep 19 08:48:57 agent-2 consul[5454]: 2018/09/19 08:48:57 [ERR] consul: "Catalog.NodeServices" RPC failed to server 172.20.20.11:8300: rpc error making
Sep 19 08:48:57 agent-2 consul[5454]: 2018/09/19 08:48:57 [ERR] agent: failed to sync remote state: rpc error making call: ACL not found
Sep 19 08:49:04 agent-2 consul[5454]: 2018/09/19 08:49:04 [ERR] consul: "Coordinate.Update" RPC failed to server 172.20.20.11:8300: rpc error making cal
Sep 19 08:49:04 agent-2 consul[5454]: 2018/09/19 08:49:04 [ERR] agent: Coordinate update error: rpc error making call: ACL not found
我正在使用本地无业游民设置来尝试设置启用了ACL的领事。 这是我代理的ACL配置:
{
"acl_datacenter": "dc1",
"acl_down_policy": "extend-cache",
"acl_agent_token": "66a77320-cdbe-33e6-f3f8-ae248d965fc9",
"acl_token": "df4ff023-7da2-ba66-dfb0-bf120af1d163" // the policy is set as below
}
上面的acl_token具有以下策略:
service "" {
policy = "write"
}
node "" {
policy = "write"
}
service "" {
policy = "read"
}
node "" {
policy = "read"
}
这是我在代理中的服务注册配置:
{
"service": {
"name": "dummy1",
"port": 8000
}
}
我想念什么?