ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found

0

I'm starting to get the following errors in the aws-ssm-agent.log file. The errors seem to happen and last for 10-15 minutes, during which time my application stops working and I get the error message "Unable to reach credentials server". It's using an instance role so when this happens no aws service on this server works.

Ubuntu 18.04.5 LTS
amazon-ssm-agent version: 3.0.1124.0
Not Docker

2022-01-25 23:03:05 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": read tcp 10.1.3.220:43346->169.254.169.254:80: read: connection reset by peer 2022-01-25 23:03:05 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:08 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:03:08 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:10 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": read tcp 10.1.3.220:46762->169.254.169.254:80: read: connection reset by peer 2022-01-25 23:03:10 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:12 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": read tcp 10.1.3.220:48406->169.254.169.254:80: read: connection reset by peer 2022-01-25 23:03:12 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:14 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": read tcp 10.1.3.220:49960->169.254.169.254:80: read: connection reset by peer 2022-01-25 23:03:14 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:17 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:03:17 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:19 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:03:19 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:21 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:03:21 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:23 ERROR [ssm-agent-worker] [MessagingDeliveryService] error when calling AWS APIs. error details - GetMessages Error: EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": read tcp 10.1.3.220:55810->169.254.169.254:80: read: connection reset by peer 2022-01-25 23:03:23 INFO [ssm-agent-worker] [MessagingDeliveryService] increasing error count by 1 2022-01-25 23:03:26 ERROR [ssm-agent-worker] [MessagingDeliveryService] MessagingDeliveryService stopped temporarily due to internal failure. We will retry automatically after 15 minutes 2022-01-25 23:05:00 ERROR [ssm-agent-worker] [MessagingDeliveryService] [Association] error when calling AWS APIs. error details - EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:05:00 INFO [ssm-agent-worker] [MessagingDeliveryService] [Association] increasing error count by 1 2022-01-25 23:05:01 ERROR [ssm-agent-worker] [MessagingDeliveryService] [Association] error when calling AWS APIs. error details - EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:05:01 INFO [ssm-agent-worker] [MessagingDeliveryService] [Association] increasing error count by 1 2022-01-25 23:05:01 ERROR [ssm-agent-worker] [MessagingDeliveryService] [Association] Unable to load instance associations, unable to retrieve associations unable to retrieve associations EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:05:33 INFO [ssm-agent-worker] [HealthCheck] HealthCheck reporting agent health. 2022-01-25 23:05:33 ERROR [ssm-agent-worker] [HealthCheck] error when calling AWS APIs. error details - EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:05:33 INFO [ssm-agent-worker] [HealthCheck] increasing error count by 1 2022-01-25 23:05:33 ERROR [ssm-agent-worker] [HealthCheck] error when calling AWS APIs. error details - EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": EOF 2022-01-25 23:05:33 INFO [ssm-agent-worker] [HealthCheck] increasing error count by 1

asked 2 years ago158 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions