docker容器的双向UDP端口

docker容器的双向UDP端口,docker,udp,docker-compose,consul,Docker,Udp,Docker Compose,Consul,我有一个领事在docker容器中运行。 当我启动另一个领事代理(不在docker上)时,它会说: [WARN] memberlist: Was able to reach container_name via TCP but not UDP, network may be misconfigured and not allowing bidirectional UDP 我试图在这里形成一个集群,但领导人选举一直失败。 我怎样才能解决这个问题 我在docker compose.yml中的端口规范

我有一个领事在docker容器中运行。
当我启动另一个领事代理(不在docker上)时,它会说:

[WARN] memberlist: Was able to reach container_name via TCP but not UDP, network may be misconfigured and not allowing bidirectional UDP
我试图在这里形成一个集群,但领导人选举一直失败。
我怎样才能解决这个问题

我在docker compose.yml中的端口规范(docker compose版本:1)

Docker容器中运行的Consult1日志:

         Node name: '<host>'
        Datacenter: 'dc1'
            Server: true (bootstrap: true)
       Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: <host_ip> (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
             Atlas: <disabled>

==> Log data will now stream in as it occurs:

    2017/06/08 03:39:44 [INFO] raft: Restored from snapshot 13-35418-1496826625488
    2017/06/08 03:39:44 [INFO] serf: EventMemberJoin: <host> <host_ip>
    2017/06/08 03:39:44 [INFO] raft: Node at <host_ip>:8300 [Follower] entering Follower state
    2017/06/08 03:39:44 [INFO] consul: adding LAN server <host> (Addr: <host_ip>:8300) (DC: dc1)
    2017/06/08 03:39:44 [INFO] serf: EventMemberJoin: <host>.dc1 <host_ip>
    2017/06/08 03:39:44 [INFO] consul: adding WAN server <host>.dc1 (Addr: <host_ip>:8300) (DC: dc1)
    2017/06/08 03:39:44 [ERR] agent: failed to sync remote state: No cluster leader
    2017/06/08 03:39:45 [WARN] raft: Heartbeat timeout reached, starting election
    2017/06/08 03:39:45 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:39:45 [INFO] raft: Election won. Tally: 1
    2017/06/08 03:39:45 [INFO] raft: Node at <host_ip>:8300 [Leader] entering Leader state
    2017/06/08 03:39:45 [INFO] consul: cluster leadership acquired
    2017/06/08 03:39:45 [INFO] consul: New leader elected: <host>
    2017/06/08 03:39:45 [INFO] raft: Disabling EnableSingleNode (bootstrap)
    2017/06/08 03:39:45 [INFO] raft: Added peer <host_ip>:9300, starting replication
    2017/06/08 03:39:45 [INFO] raft: Removed peer <host_ip>:9300, stopping replication (Index: 36201)
    2017/06/08 03:39:45 [INFO] raft: Added peer <host_ip>:9300, starting replication
    2017/06/08 03:39:45 [INFO] raft: Added peer <host_ip>:10300, starting replication
    2017/06/08 03:39:45 [INFO] raft: Removed peer <host_ip>:10300, stopping replication (Index: 36228)
    2017/06/08 03:39:45 [INFO] raft: Removed peer <host_ip>:9300, stopping replication (Index: 36230)
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:10300: dial tcp <host_ip>:10300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:10300: dial tcp <host_ip>:10300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:39:49 [WARN] agent: Check 'vault::8200:vault-sealed-check' missed TTL, is now critical
    2017/06/08 03:39:50 [INFO] serf: EventMemberJoin: server2 <host_ip>
    2017/06/08 03:39:50 [INFO] consul: adding LAN server server2 (Addr: <host_ip>:9300) (DC: dc1)
    2017/06/08 03:39:50 [INFO] raft: Added peer <host_ip>:9300, starting replication
    2017/06/08 03:39:50 [WARN] raft: AppendEntries to <host_ip>:9300 rejected, sending older logs (next: 36231)
    2017/06/08 03:39:50 [INFO] raft: pipelining replication to peer <host_ip>:9300
    2017/06/08 03:39:50 [INFO] consul: member 'server2' joined, marking health alive
    2017/06/08 03:39:52 [INFO] agent: Synced service 'vault::8200'
    2017/06/08 03:39:52 [INFO] agent: Synced check 'vault::8200:vault-sealed-check'
    2017/06/08 03:40:06 [INFO] agent: Synced check 'vault::8200:vault-sealed-check'
    2017/06/08 03:40:18 [ERR] raft: Failed to heartbeat to <host_ip>:9300: EOF
    2017/06/08 03:40:18 [INFO] raft: aborting pipeline replication to peer <host_ip>:9300
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to heartbeat to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to heartbeat to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to heartbeat to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [WARN] raft: Failed to contact <host_ip>:9300 in 501.593114ms
    2017/06/08 03:40:19 [WARN] raft: Failed to contact quorum of nodes, stepping down
    2017/06/08 03:40:19 [INFO] raft: Node at <host_ip>:8300 [Follower] entering Follower state
    2017/06/08 03:40:19 [INFO] consul: cluster leadership lost
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:20 [WARN] raft: Heartbeat timeout reached, starting election
    2017/06/08 03:40:20 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:20 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:21 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:22 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:22 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:22 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:23 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:23 [WARN] dns: Query results too stale, re-requesting
    2017/06/08 03:40:23 [ERR] dns: rpc error: No cluster leader
    2017/06/08 03:40:23 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:23 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:23 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:24 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:24 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:24 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:24 [ERR] http: Request PUT /v1/session/renew/8c4efe65-07c3-f93e-6679-f2bc95f8e92c, error: No cluster leader from=172.17.0.4:57031
    2017/06/08 03:40:25 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:25 [ERR] http: Request PUT /v1/session/renew/8c4efe65-07c3-f93e-6679-f2bc95f8e92c, error: No cluster leader from=172.17.0.4:57061
    2017/06/08 03:40:26 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:26 [INFO] memberlist: Marking server2 as failed, suspect timeout reached
    2017/06/08 03:40:26 [INFO] serf: EventMemberFailed: server2 <host_ip>
    2017/06/08 03:40:26 [INFO] consul: removing LAN server server2 (Addr: <host_ip>:9300) (DC: dc1)
    2017/06/08 03:40:26 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:26 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:26 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:26 [ERR] agent: coordinate update error: No cluster leader
    2017/06/08 03:40:26 [ERR] http: Request PUT /v1/session/renew/8c4efe65-07c3-f93e-6679-f2bc95f8e92c, error: No cluster leader from=172.17.0.4:57064
    2017/06/08 03:40:27 [WARN] dns: Query results too stale, re-requesting
    2017/06/08 03:40:27 [ERR] dns: rpc error: No cluster leader
    2017/06/08 03:40:27 [WARN] raft: Election timeout reached, restarting election
节点名称:“”
数据中心:“dc1”
服务器:true(引导:true)
客户端地址:0.0.0.0(HTTP:8500,HTTPS:-1,DNS:8600,RPC:8400)
群集地址:(LAN:8301,WAN:8302)
流言加密:false,RPC-TLS:false,TLS传入:false
地图集:
==>日志数据现在将在发生时流入:
2017/06/08 03:39:44[信息]筏:从快照13-35418-1496826625488恢复
2017/06/08 03:39:44[信息]serf:EventMemberJoin:
2017/06/08 03:39:44[信息]筏:节点位置:8300[跟随者]进入跟随者状态
2017/06/08 03:39:44[信息]领事:添加局域网服务器(地址:8300)(DC:dc1)
2017/06/08 03:39:44[信息]serf:EventMemberJoin:.dc1
2017/06/08 03:39:44[信息]领事:添加WAN服务器.dc1(地址:8300)(DC:dc1)
2017/06/08 03:39:44[错误]代理:无法同步远程状态:无群集前导
2017/06/08 03:39:45[警告]筏:已达到心跳超时,开始选举
2017/06/08 03:39:45[信息]筏:节点位置:8300[候选人]进入候选人状态
2017/06/08 03:39:45[信息]筏:选举获胜。总数:1
2017/06/08 03:39:45[信息]筏:节点位置:8300[引导者]进入引导者状态
2017/06/08 03:39:45[信息]领事:获得集群领导地位
2017/06/08 03:39:45[信息]领事:新领导人当选:
2017/06/08 03:39:45[信息]raft:禁用EnableSingleNode(引导)
2017/06/08 03:39:45[信息]raft:添加的对等方:9300,开始复制
2017/06/08 03:39:45[信息]raft:已删除对等方:9300,正在停止复制(索引:36201)
2017/06/08 03:39:45[信息]raft:添加的对等方:9300,开始复制
2017/06/08 03:39:45[信息]raft:添加的对等方:10300,开始复制
2017/06/08 03:39:45[信息]raft:已删除对等方:10300,正在停止复制(索引:36228)
2017/06/08 03:39:45[信息]raft:已删除对等方:9300,正在停止复制(索引:36230)
2017/06/08 03:39:45[错误]raft:未能将条目附加到:10300:拨号tcp:10300:getsockopt:连接被拒绝
2017/06/08 03:39:45[错误]raft:未能将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:39:45[错误]raft:未能将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:39:45[错误]raft:未能将条目附加到:10300:拨号tcp:10300:getsockopt:连接被拒绝
2017/06/08 03:39:45[错误]raft:未能将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:39:49[警告]代理:检查“保险库::8200:保险库密封检查”遗漏TTL,现在是关键
2017/06/08 03:39:50[信息]serf:EventMemberJoin:server2
2017/06/08 03:39:50[信息]领事:添加局域网服务器服务器2(地址:9300)(DC:dc1)
2017/06/08 03:39:50[信息]raft:添加的对等方:9300,开始复制
2017/06/08 03:39:50[警告]raft:AppendEntries to:9300被拒绝,发送较旧的日志(下一个:36231)
2017/06/08 03:39:50[信息]raft:到对等机的管道复制:9300
2017/06/08 03:39:50[信息]领事:成员“server2”加入,标志着健康活力
2017/06/08 03:39:52[信息]代理:同步服务“vault::8200”
2017/06/08 03:39:52[信息]代理:同步检查“保险库::8200:保险库密封检查”
2017/06/08 03:40:06[信息]代理:同步检查“保险库::8200:保险库密封检查”
2017/06/08 03:40:18[错误]筏:无法检测到:9300:EOF
2017/06/08 03:40:18[信息]raft:中止到对等方的管道复制:9300
2017/06/08 03:40:19[错误]raft:无法将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[错误]raft:无法检测到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[错误]raft:无法将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[错误]raft:无法检测到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[错误]raft:无法将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[错误]raft:无法将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[错误]raft:无法检测到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:19[警告]救生筏:未能联系:501.593114毫秒内9300
2017/06/08 03:40:19[警告]raft:无法联系节点的仲裁,正在退出
2017/06/08 03:40:19[信息]筏:节点位置:8300[跟随者]进入跟随者状态
2017/06/08 03:40:19[信息]执政官:集群领导力丧失
2017/06/08 03:40:19[错误]raft:无法将条目附加到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:20[警告]raft:已达到心跳超时,开始选举
2017/06/08 03:40:20[信息]筏:节点位置:8300[候选人]进入候选人状态
2017/06/08 03:40:20[错误]raft:无法将请求投票RPC发送到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:21[信息]成员列表:可疑服务器2出现故障,未收到任何确认
2017/06/08 03:40:22[警告]raft:已达到选举超时,正在重新启动选举
2017/06/08 03:40:22[信息]筏:节点位置:8300[候选人]进入候选人状态
2017/06/08 03:40:22[错误]raft:无法将请求投票RPC发送到:9300:拨号tcp:9300:getsockopt:连接被拒绝
2017/06/08 03:40:23[信息]成员列表:可疑服务器2出现故障,未收到任何确认
2017/06/08 03:40:23[警告]dns:查询结果太陈旧,正在重新请求
2017/06/08 03:40:23[错误]dns:rpc e
         Node name: '<host>'
        Datacenter: 'dc1'
            Server: true (bootstrap: true)
       Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: <host_ip> (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
             Atlas: <disabled>

==> Log data will now stream in as it occurs:

    2017/06/08 03:39:44 [INFO] raft: Restored from snapshot 13-35418-1496826625488
    2017/06/08 03:39:44 [INFO] serf: EventMemberJoin: <host> <host_ip>
    2017/06/08 03:39:44 [INFO] raft: Node at <host_ip>:8300 [Follower] entering Follower state
    2017/06/08 03:39:44 [INFO] consul: adding LAN server <host> (Addr: <host_ip>:8300) (DC: dc1)
    2017/06/08 03:39:44 [INFO] serf: EventMemberJoin: <host>.dc1 <host_ip>
    2017/06/08 03:39:44 [INFO] consul: adding WAN server <host>.dc1 (Addr: <host_ip>:8300) (DC: dc1)
    2017/06/08 03:39:44 [ERR] agent: failed to sync remote state: No cluster leader
    2017/06/08 03:39:45 [WARN] raft: Heartbeat timeout reached, starting election
    2017/06/08 03:39:45 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:39:45 [INFO] raft: Election won. Tally: 1
    2017/06/08 03:39:45 [INFO] raft: Node at <host_ip>:8300 [Leader] entering Leader state
    2017/06/08 03:39:45 [INFO] consul: cluster leadership acquired
    2017/06/08 03:39:45 [INFO] consul: New leader elected: <host>
    2017/06/08 03:39:45 [INFO] raft: Disabling EnableSingleNode (bootstrap)
    2017/06/08 03:39:45 [INFO] raft: Added peer <host_ip>:9300, starting replication
    2017/06/08 03:39:45 [INFO] raft: Removed peer <host_ip>:9300, stopping replication (Index: 36201)
    2017/06/08 03:39:45 [INFO] raft: Added peer <host_ip>:9300, starting replication
    2017/06/08 03:39:45 [INFO] raft: Added peer <host_ip>:10300, starting replication
    2017/06/08 03:39:45 [INFO] raft: Removed peer <host_ip>:10300, stopping replication (Index: 36228)
    2017/06/08 03:39:45 [INFO] raft: Removed peer <host_ip>:9300, stopping replication (Index: 36230)
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:10300: dial tcp <host_ip>:10300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:10300: dial tcp <host_ip>:10300: getsockopt: connection refused
    2017/06/08 03:39:45 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:39:49 [WARN] agent: Check 'vault::8200:vault-sealed-check' missed TTL, is now critical
    2017/06/08 03:39:50 [INFO] serf: EventMemberJoin: server2 <host_ip>
    2017/06/08 03:39:50 [INFO] consul: adding LAN server server2 (Addr: <host_ip>:9300) (DC: dc1)
    2017/06/08 03:39:50 [INFO] raft: Added peer <host_ip>:9300, starting replication
    2017/06/08 03:39:50 [WARN] raft: AppendEntries to <host_ip>:9300 rejected, sending older logs (next: 36231)
    2017/06/08 03:39:50 [INFO] raft: pipelining replication to peer <host_ip>:9300
    2017/06/08 03:39:50 [INFO] consul: member 'server2' joined, marking health alive
    2017/06/08 03:39:52 [INFO] agent: Synced service 'vault::8200'
    2017/06/08 03:39:52 [INFO] agent: Synced check 'vault::8200:vault-sealed-check'
    2017/06/08 03:40:06 [INFO] agent: Synced check 'vault::8200:vault-sealed-check'
    2017/06/08 03:40:18 [ERR] raft: Failed to heartbeat to <host_ip>:9300: EOF
    2017/06/08 03:40:18 [INFO] raft: aborting pipeline replication to peer <host_ip>:9300
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to heartbeat to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to heartbeat to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [ERR] raft: Failed to heartbeat to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:19 [WARN] raft: Failed to contact <host_ip>:9300 in 501.593114ms
    2017/06/08 03:40:19 [WARN] raft: Failed to contact quorum of nodes, stepping down
    2017/06/08 03:40:19 [INFO] raft: Node at <host_ip>:8300 [Follower] entering Follower state
    2017/06/08 03:40:19 [INFO] consul: cluster leadership lost
    2017/06/08 03:40:19 [ERR] raft: Failed to AppendEntries to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:20 [WARN] raft: Heartbeat timeout reached, starting election
    2017/06/08 03:40:20 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:20 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:21 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:22 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:22 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:22 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:23 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:23 [WARN] dns: Query results too stale, re-requesting
    2017/06/08 03:40:23 [ERR] dns: rpc error: No cluster leader
    2017/06/08 03:40:23 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:23 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:23 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:24 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:24 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:24 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:24 [ERR] http: Request PUT /v1/session/renew/8c4efe65-07c3-f93e-6679-f2bc95f8e92c, error: No cluster leader from=172.17.0.4:57031
    2017/06/08 03:40:25 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:25 [ERR] http: Request PUT /v1/session/renew/8c4efe65-07c3-f93e-6679-f2bc95f8e92c, error: No cluster leader from=172.17.0.4:57061
    2017/06/08 03:40:26 [INFO] memberlist: Suspect server2 has failed, no acks received
    2017/06/08 03:40:26 [INFO] memberlist: Marking server2 as failed, suspect timeout reached
    2017/06/08 03:40:26 [INFO] serf: EventMemberFailed: server2 <host_ip>
    2017/06/08 03:40:26 [INFO] consul: removing LAN server server2 (Addr: <host_ip>:9300) (DC: dc1)
    2017/06/08 03:40:26 [WARN] raft: Election timeout reached, restarting election
    2017/06/08 03:40:26 [INFO] raft: Node at <host_ip>:8300 [Candidate] entering Candidate state
    2017/06/08 03:40:26 [ERR] raft: Failed to make RequestVote RPC to <host_ip>:9300: dial tcp <host_ip>:9300: getsockopt: connection refused
    2017/06/08 03:40:26 [ERR] agent: coordinate update error: No cluster leader
    2017/06/08 03:40:26 [ERR] http: Request PUT /v1/session/renew/8c4efe65-07c3-f93e-6679-f2bc95f8e92c, error: No cluster leader from=172.17.0.4:57064
    2017/06/08 03:40:27 [WARN] dns: Query results too stale, re-requesting
    2017/06/08 03:40:27 [ERR] dns: rpc error: No cluster leader
    2017/06/08 03:40:27 [WARN] raft: Election timeout reached, restarting election
==> WARNING: Expect Mode enabled, expecting 2 servers
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
         Node name: 'server2'
        Datacenter: 'dc1'
            Server: true (bootstrap: false)
       Client Addr: 0.0.0.0 (HTTP: 9500, HTTPS: -1, DNS: 9600, RPC: 9400)
      Cluster Addr: <host_ip> (LAN: 9301, WAN: 9302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
             Atlas: <disabled>

==> Log data will now stream in as it occurs:

    2017/06/08 09:09:50 [INFO] raft: Restored from snapshot 13-35418-1496892834061
    2017/06/08 09:09:50 [INFO] serf: EventMemberJoin: server2 <host_ip>
    2017/06/08 09:09:50 [INFO] serf: EventMemberJoin: server2.dc1 <host_ip>
    2017/06/08 09:09:50 [INFO] raft: Node at <host_ip>:9300 [Follower] entering Follower state
    2017/06/08 09:09:50 [INFO] consul: adding LAN server server2 (Addr: <host_ip>:9300) (DC: dc1)
    2017/06/08 09:09:50 [INFO] consul: adding WAN server server2.dc1 (Addr: <host_ip>:9300) (DC: dc1)
    2017/06/08 09:09:50 [ERR] agent: failed to sync remote state: No cluster leader
    2017/06/08 09:09:50 [INFO] agent: Joining cluster...
    2017/06/08 09:09:50 [INFO] agent: (LAN) joining: [<host_ip>:8301 <host_ip>:10301]
    2017/06/08 09:09:50 [INFO] serf: EventMemberJoin: <host> <host_ip>
    2017/06/08 09:09:50 [INFO] consul: adding LAN server <host> (Addr: <host_ip>:8300) (DC: dc1)
    2017/06/08 09:09:50 [INFO] agent: (LAN) joined: 1 Err: <nil>
    2017/06/08 09:09:50 [INFO] agent: Join completed. Synced with 1 initial agents
    2017/06/08 09:09:50 [WARN] raft: Failed to get previous log: 36233 log not found (last: 36230)
    2017/06/08 09:09:50 [INFO] raft: Removed ourself, transitioning to follower
    2017/06/08 09:09:50 [INFO] raft: Removed ourself, transitioning to follower
    2017/06/08 09:09:52 [WARN] memberlist: Was able to reach <host> via TCP but not UDP, network may be misconfigured and not allowing bidirectional UDP
==> Newer Consul version available: 0.8.3
    2017/06/08 09:09:54 [WARN] memberlist: Was able to reach <host> via TCP but not UDP, network may be misconfigured and not allowing bidirectional UDP
    2017/06/08 09:09:56 [WARN] memberlist: Was able to reach <host> via TCP but not UDP, network may be misconfigured and not allowing bidirectional UDP
    2017/06/08 09:09:57 [WARN] memberlist: Was able to reach <host> via TCP but not UDP, network may be misconfigured and not allowing bidirectional UDP
Consul agent -- [UDP] --> Consul Server
Consul agent <--[UDP] --  Consul Server