在调试过程中,我意识到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正在主机上运行。此外,我还可以成功地从容器内部打开主机。
对怎么了有什么想法吗?
我们将非常感谢提供援助。
发布于 2014-09-19 18:50:53
此错误表示您的etcd群集操作不正确,因此confd没有任何可观看的内容。它可能已经失去法定人数了。日志(journalctl -u etcd)应该表明发生了什么。
https://stackoverflow.com/questions/25921377
复制相似问题