{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/216","labels_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/216/comments","events_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/216/events","html_url":"https://github.com/aws/amazon-ecs-agent/issues/216","id":109434591,"number":216,"title":"Agent does not reconnect to Telemetry endpoint on failure","user":{"login":"aaithal","id":1183359,"avatar_url":"https://avatars.githubusercontent.com/u/1183359?v=3","gravatar_id":"","url":"https://api.github.com/users/aaithal","html_url":"https://github.com/aaithal","followers_url":"https://api.github.com/users/aaithal/followers","following_url":"https://api.github.com/users/aaithal/following{/other_user}","gists_url":"https://api.github.com/users/aaithal/gists{/gist_id}","starred_url":"https://api.github.com/users/aaithal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaithal/subscriptions","organizations_url":"https://api.github.com/users/aaithal/orgs","repos_url":"https://api.github.com/users/aaithal/repos","events_url":"https://api.github.com/users/aaithal/events{/privacy}","received_events_url":"https://api.github.com/users/aaithal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/labels/pending%20release","name":"pending release","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T05:42:33Z","updated_at":"2015-10-29T18:32:43Z","closed_at":"2015-10-29T18:32:43Z","body":"A failure/error in the discover-poll-endpoint API causes the agent to never reconnect to the telemetry endpoint resulting in the agent stops sending metrics to backend. \r\n\r\nThe only way to remediate the issue right now is to restart the agent when it stops sending metrics. Some logs that indicate the same:\r\n```\r\n2015-10-02T01:24:47Z [ERROR] Unable to discover poll endpoint module=\"tcs handler\" err=\"RequestError: send request failed caused by: Post https://ecs.ap-northeast-1.amazonaws.com/: net/http: request canceled while waiting for connection\"\r\n2015-10-02T01:24:47Z [WARN] Error starting metrics session with backend module=\"tcs handler\" err=\"RequestError: send request failed\r\n```\r\n\r\nThe agent can be restarted by running the command \r\n```\r\nsudo stop ecs && sudo start ecs\r\n```"}}