{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1043","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1043/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1043/events","html_url":"https://github.com/hashicorp/consul/issues/1043","id":88959419,"number":1043,"title":"Consul agent does not respond","user":{"login":"astrekalova","id":764265,"avatar_url":"https://avatars.githubusercontent.com/u/764265?v=3","gravatar_id":"","url":"https://api.github.com/users/astrekalova","html_url":"https://github.com/astrekalova","followers_url":"https://api.github.com/users/astrekalova/followers","following_url":"https://api.github.com/users/astrekalova/following{/other_user}","gists_url":"https://api.github.com/users/astrekalova/gists{/gist_id}","starred_url":"https://api.github.com/users/astrekalova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrekalova/subscriptions","organizations_url":"https://api.github.com/users/astrekalova/orgs","repos_url":"https://api.github.com/users/astrekalova/repos","events_url":"https://api.github.com/users/astrekalova/events{/privacy}","received_events_url":"https://api.github.com/users/astrekalova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T08:53:30Z","updated_at":"2015-06-18T02:26:47Z","closed_at":null,"body":"I have a problem with the behaviour of a consul agent. The consul agent is listed as alive in the cluster members information, but it does not register a service or respond to queries via HTTP interface. There is an error in the log but I can not interpret it:\r\n```2015/06/16 16:09:42 [INFO] agent: Joining cluster...\r\n2015/06/16 16:09:42 [INFO] agent: (LAN) joining: [10.10.100.226]\r\n2015/06/16 16:09:42 [INFO] agent: (LAN) joined: 1 Err: <nil>\r\n2015/06/16 16:09:42 [INFO] agent: Join completed. Synced with 1 initial agents```\r\n\r\nI tried restarting this agent but it returns to the same state. The server seems to have outdated information because it shows the service as healthy although it does not pass the health check.\r\n\r\nHere is the configuration of the consul agent that runs on this server:\r\n```{\"data_dir\":\"/opt/consul\",\"datacenter\":\"dc\",\"log_level\":\"INFO\",\"node_name\":\"app01\",\"retry_join\":[\"10.10.100.226\"]}```\r\n\r\nAnd the configuration of the server. The cluster has 3 server agents.\r\n```{\"client_addr\":\"0.0.0.0\",\"data_dir\":\"/opt/consul\",\"datacenter\":\"ovh-rbx\",\"log_level\":\"INFO\",\"node_name\":\"consul-server\",\"server\":true,\"ui_dir\":\"/opt/consul/ui\"}```\r\n\r\nVersion of consul is 0.5.0"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/113015916","html_url":"https://github.com/hashicorp/consul/issues/1043#issuecomment-113015916","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/1043","id":113015916,"user":{"login":"ryanuber","id":1642288,"avatar_url":"https://avatars.githubusercontent.com/u/1642288?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanuber","html_url":"https://github.com/ryanuber","followers_url":"https://api.github.com/users/ryanuber/followers","following_url":"https://api.github.com/users/ryanuber/following{/other_user}","gists_url":"https://api.github.com/users/ryanuber/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanuber/subscriptions","organizations_url":"https://api.github.com/users/ryanuber/orgs","repos_url":"https://api.github.com/users/ryanuber/repos","events_url":"https://api.github.com/users/ryanuber/events{/privacy}","received_events_url":"https://api.github.com/users/ryanuber/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T02:26:47Z","updated_at":"2015-06-18T02:26:47Z","body":"This was also asked on the mailing list, so pasting in my response from that avenue:\r\n\r\nThe log message that you pasted with the error, which says \"Err: <nil>\", is actually fine. We always dump any error on that step, even if there was none. The message following that one, \"Join completed\", confirms that the join was successful, so this shouldn't be anything to worry about.\r\n\r\nI noticed that you don't have any bootstrap options set in the server configuration. Bootstrapping a Consul cluster is a required step. Did you pass any bootstrap options on the command line during start? You can read about bootstrapping here: https://consul.io/docs/guides/bootstrapping.html, but basically if you don't already, you should just add \"bootstrap_expect\": 3 to your configuration on the server nodes.\r\n\r\nI am not sure I understand the problem with the services. If they are not able to register at all, then I would try solving the above bootstrap issue first as that would definitely be a problem. If the services are registered, providing us the service and health check definitions, along with logs (changing the log_level to debug preferred) would be a big help in diagnosing the problem."}}