0

在调试时,我意识到 confd 没有获取密钥,我的日志看起来像这样:

Sep 18 18:31:50 ip-10-171-54-76.ec2.internal docker[24891]: [nginx] waiting for confd to refresh nginx.conf Sep 18 18:31:56 ip-10-171-54-76.ec2.internal docker[24891]: 2014-09-18T18:31:56Z 9122c7a54edc confd[9572]: ERROR 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]

我使用 nsenter 登录到正在运行的容器来运行一些实验以进行调试。我运行了这个命令

confd -onetime -node 172.17.42.1:4001 -config-file /etc/confd/conf.d/nginx.toml

然后如上所述收到此错误

confd[12894]: ERROR 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]

在这一点上,我完全无能为力。我将 EC2 与 CoreOS 的稳定版本一起使用,并且我确信 etcd 正在主机上运行。此外,我可以从容器内成功 ping 主机。

关于有什么问题的任何想法?

援助将不胜感激。

4

1 回答 1

0

此错误表明您的 etcd 集群运行不正常,因此 confd 没有什么可看的。它可能已经失去了法定人数。日志 ( journalctl -u etcd) 应该表明发生了什么。

于 2014-09-19T18:50:53.593 回答