/bin/consul lock -verbose locks/consul-replicate /bin/consul-replicate -config /consul/config/consul-replicate-config.hcl
Three Nodes:
==> Caught signal: terminated
2017/05/11 18:20:12 [INFO] agent: requesting shutdown
2017/05/11 18:20:12 [INFO] consul: shutting down server
2017/05/11 18:20:12 [WARN] serf: Shutdown without a Leave
2017/05/11 18:20:12 [ERR] dns: error starting tcp server: accept tcp [::]:8600: use of closed network connection
2017/05/11 18:20:12 [WARN] serf: Shutdown without a Leave
2017/05/11 18:20:12 [ERR] consul.kvs: Apply failed: leadership lost while committing log
2017/05/11 18:20:12 [ERR] http: Request PUT /v1/kv/locks/consul-replicate/.lock?flags=3304740253564472344&release=d81b3ef2-a583-2c58-933f-bd5399bfb831, error: leadership lost while committing log from=127.0.0.1:40608
2017/05/11 18:20:12 [INFO] raft: aborting pipeline replication to peer {Voter 192.168.99.104:8300 192.168.99.104:8300}
2017/05/11 18:20:12 [INFO] raft: aborting pipeline replication to peer {Voter 192.168.99.105:8300 192.168.99.105:8300}
2017/05/11 18:20:12 [INFO] agent: shutdown complete2017/05/11 18:20:12.893512 [INFO] (runner) stopping
2017/05/11 18:20:12.893533 [DEBUG] (watcher) stopping all views
Shutdown triggered, killing child
Terminating child pid 43
Error running handler: exit status 12
exit status 12
Child terminated
Lock release failed: failed to release lock: Unexpected response code: 500 (leadership lost while committing log)2017/05/11 18:19:58 [ERR] http: Request GET /v1/kv/locks/consul-replicate/.lock?index=2637&wait=15000ms, error: rpc error: EOF from=127.0.0.1:51716
2017/05/11 18:20:00 [WARN] raft: Rejecting vote request from 192.168.99.105:8300 since we have a leader: 192.168.99.103:8300
2017/05/11 18:20:01 [WARN] raft: Rejecting vote request from 192.168.99.105:8300 since we have a leader: 192.168.99.103:8300
2017/05/11 18:20:01 [INFO] memberlist: Suspect dc2consul1 has failed, no acks received
2017/05/11 18:20:01 [WARN] raft: Heartbeat timeout from "192.168.99.103:8300" reached, starting election
2017/05/11 18:20:01 [INFO] raft: Node at 192.168.99.104:8300 [Candidate] entering Candidate state in term 61
2017/05/11 18:20:01 [ERR] raft: Failed to make RequestVote RPC to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refused
2017/05/11 18:20:01 [INFO] raft: Node at 192.168.99.104:8300 [Follower] entering Follower state (Leader: "")
2017/05/11 18:20:02 [WARN] raft: Heartbeat timeout from "" reached, starting election
2017/05/11 18:20:02 [INFO] raft: Node at 192.168.99.104:8300 [Candidate] entering Candidate state in term 63
2017/05/11 18:20:02 [ERR] raft: Failed to make RequestVote RPC to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refused
2017/05/11 18:20:02 [INFO] raft: Election won. Tally: 2
2017/05/11 18:20:02 [INFO] raft: Node at 192.168.99.104:8300 [Leader] entering Leader state
2017/05/11 18:20:02 [INFO] raft: Added peer 192.168.99.103:8300, starting replication
2017/05/11 18:20:02 [INFO] raft: Added peer 192.168.99.105:8300, starting replication
2017/05/11 18:20:02 [INFO] consul: cluster leadership acquired
2017/05/11 18:20:02 [INFO] consul: New leader elected: dc2consul2
2017/05/11 18:20:02 [INFO] raft: pipelining replication to peer {Voter 192.168.99.105:8300 192.168.99.105:8300}
2017/05/11 18:20:02 [ERR] raft: Failed to AppendEntries to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refused
2017/05/11 18:20:02 [ERR] raft: Failed to AppendEntries to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refused
2017/05/11 18:20:02 [ERR] raft: Failed to AppendEntries to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refusedLock acquisition failed: failed to read lock: Unexpected response code: 5002017/05/11 18:20:06 [ERR] http: Request GET /v1/kv/locks/consul-replicate/.lock?index=2637&wait=15000ms, error: rpc error: EOF from=127.0.0.1:50638
2017/05/11 18:20:08 [WARN] raft: Heartbeat timeout from "192.168.99.103:8300" reached, starting election
2017/05/11 18:20:08 [INFO] raft: Node at 192.168.99.105:8300 [Candidate] entering Candidate state in term 61
2017/05/11 18:20:08 [ERR] raft: Failed to make RequestVote RPC to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refused
2017/05/11 18:20:08 [INFO] memberlist: Suspect dc2consul1 has failed, no acks received
2017/05/11 18:20:09 [WARN] raft: Election timeout reached, restarting election
2017/05/11 18:20:09 [INFO] raft: Node at 192.168.99.105:8300 [Candidate] entering Candidate state in term 62
2017/05/11 18:20:09 [ERR] raft: Failed to make RequestVote RPC to {Voter 192.168.99.103:8300 192.168.99.103:8300}: dial tcp 192.168.99.103:8300: getsockopt: connection refused
2017/05/11 18:20:10 [INFO] raft: Node at 192.168.99.105:8300 [Follower] entering Follower state (Leader: "")
2017/05/11 18:20:10 [INFO] consul: New leader elected: dc2consul2
2017/05/11 18:20:12 [INFO] memberlist: Suspect dc2consul1 has failed, no acks received
2017/05/11 18:20:13 [INFO] memberlist: Marking dc2consul1 as failed, suspect timeout reached (0 peer confirmations)
2017/05/11 18:20:13 [INFO] serf: EventMemberFailed: dc2consul1 192.168.99.103
2017/05/11 18:20:13 [INFO] consul: Removing LAN server dc2consul1 (Addr: tcp/192.168.99.103:8300) (DC: dc2)
2017/05/11 18:20:14 [INFO] memberlist: Suspect dc2consul1 has failed, no acks received
2017/05/11 18:20:27 [INFO] memberlist: Suspect dc2consul1.dc2 has failed, no acks received
2017/05/11 18:20:50 [INFO] serf: EventMemberFailed: dc2consul1.dc2 192.168.99.103
2017/05/11 18:20:50 [INFO] consul: Removing WAN server dc2consul1.dc2 (Addr: tcp/192.168.99.103:8300) (DC: dc2)
2017/05/11 18:20:52 [INFO] serf: attempting reconnect to dc2consul1 192.168.99.103:8301
2017/05/11 18:21:02 [INFO] memberlist: Suspect dc2consul1.dc2 has failed, no acks received
2017/05/11 18:21:22 [INFO] serf: attempting reconnect to dc2consul1 192.168.99.103:8301
2017/05/11 18:21:22 [INFO] serf: attempting reconnect to dc2consul1.dc2 192.168.99.103:8302Lock acquisition failed: failed to read lock: Unexpected response code: 500