{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/993","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/993/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/993/events","html_url":"https://github.com/hashicorp/consul/issues/993","id":83963535,"number":993,"title":"Consul servers won't elect a leader","user":{"login":"eirslett","id":1872593,"avatar_url":"https://avatars.githubusercontent.com/u/1872593?v=3","gravatar_id":"","url":"https://api.github.com/users/eirslett","html_url":"https://github.com/eirslett","followers_url":"https://api.github.com/users/eirslett/followers","following_url":"https://api.github.com/users/eirslett/following{/other_user}","gists_url":"https://api.github.com/users/eirslett/gists{/gist_id}","starred_url":"https://api.github.com/users/eirslett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eirslett/subscriptions","organizations_url":"https://api.github.com/users/eirslett/orgs","repos_url":"https://api.github.com/users/eirslett/repos","events_url":"https://api.github.com/users/eirslett/events{/privacy}","received_events_url":"https://api.github.com/users/eirslett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"milestone":null,"comments":39,"created_at":"2015-06-02T10:40:25Z","updated_at":"2016-02-06T23:46:21Z","closed_at":null,"body":"I have 3 consul servers running (+ a handful of other nodes), and they can all speak to each other - or so I think; at least they're sending UDP messages between themselves.\r\nThe logs still show `[ERR] agent: failed to sync remote state: No cluster leader`, so even if the servers know about each other, it looks like they fail to perform an actual leader election...\r\nIs there a way to trigger a leader election manually?\r\n\r\nI'm running consul 0.5.2 on all nodes."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/180887561","html_url":"https://github.com/hashicorp/consul/issues/993#issuecomment-180887561","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/993","id":180887561,"user":{"login":"sean-","id":349516,"avatar_url":"https://avatars.githubusercontent.com/u/349516?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-","html_url":"https://github.com/sean-","followers_url":"https://api.github.com/users/sean-/followers","following_url":"https://api.github.com/users/sean-/following{/other_user}","gists_url":"https://api.github.com/users/sean-/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-/subscriptions","organizations_url":"https://api.github.com/users/sean-/orgs","repos_url":"https://api.github.com/users/sean-/repos","events_url":"https://api.github.com/users/sean-/events{/privacy}","received_events_url":"https://api.github.com/users/sean-/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T23:46:21Z","updated_at":"2016-02-06T23:46:21Z","body":"To be clear, you could restart the leader first, there is nothing wrong\nwith that, however from a \"measure twice, cut once\" kind of conservatism\nre: ops, I bounce the followers first because I know I have a binary and\ndata directory that is the latest and a working config.\n\nAs for ansible parallel executing jobs, that is almost certainly your\nproblem. You need to make the restarts sequential and you should add a\npause or poll the status URL until a leader is found before proceeding.\nCheers. -sc\n\n>\n\n-- \nSean Chittenden\nsean@hashicorp.com\n"}}