docker-consul
docker-consul copied to clipboard
error: No cluster leader when reboot
2015/12/22 02:36:41 [WARN] raft: Election timeout reached, restarting election
2015/12/22 02:36:41 [INFO] raft: Node at 172.17.0.7:8300 [Candidate] entering Candidate state
2015/12/22 02:36:41 [ERR] raft: Failed to make RequestVote RPC to 172.17.0.6:8300: dial tcp 172.17.0.6:8300: connection refused
2015/12/22 02:36:43 [WARN] raft: Election timeout reached, restarting election
2015/12/22 02:36:43 [INFO] raft: Node at 172.17.0.7:8300 [Candidate] entering Candidate state
2015/12/22 02:36:43 [ERR] raft: Failed to make RequestVote RPC to 172.17.0.6:8300: dial tcp 172.17.0.6:8300: connection refused
2015/12/22 02:36:44 [ERR] http: Request /v1/kv/docker/nodes/192.168.60.41:2376, error: No cluster leader
2015/12/22 02:36:44 [ERR] http: Request /v1/kv/docker/nodes/192.168.60.41:2376, error: No cluster leader
2015/12/22 02:36:44 [ERR] http: Request /v1/kv/docker/nodes/192.168.60.41:2376, error: No cluster leader
2015/12/22 02:36:44 [ERR] http: Request /v1/kv/docker/nodes/192.168.60.41:2376, error: No cluster leader
2015/12/22 02:36:44 [ERR] http: Request /v1/kv/docker/nodes/192.168.60.41:2376, error: No cluster leader
:+1: been getting this also on reboot.
Have the same Problem here. Even a restart of the container doesn't help.
Recreating the container works, but it's a nasty solution.
Linked to this issue: https://github.com/hashicorp/consul/issues/1580