Skip to content

Error when retrieving credentials from container-role in Greengrass component

0

I have a Greengrass component run with docker-compose lifecycle. However, I sometimes see an error: Error when retrieving credentials from container-role: Error retrieving metadata: Received non 200 response 500 from container metadata: Failed to get connection.

The following environment variables are passed to docker compose.

  1. AWS_CONTAINER_CREDENTIALS_FULL_URI: ${AWS_CONTAINER_CREDENTIALS_FULL_URI}
  2. AWS_CONTAINER_AUTHORIZATION_TOKEN: ${AWS_CONTAINER_AUTHORIZATION_TOKEN}
  3. AWS_IOT_THING_NAME: ${AWS_IOT_THING_NAME}
  4. AWS_REGION: ${AWS_REGION}

Do you have any idea?

asked a year ago268 views
1 Answer
0

Is this the error from the greengrass log file? Check (/greengrass/v2/logs/greengrass.log) to see the problem. Device will fetch for the credentials, and will need to have access to AWS services with an internet connection established.

AWS
answered a year ago
  • This log comes from inside the component: "botocore.exceptions.CredentialRetrievalError: Error when retrieving credentials from container-role"

  • Is there an error inside of greengrass.log?

  • Here is the error: botocore.exceptions.MetadataRetrievalError: Error retrieving metadata: Received non 200 response 500 from container metadata: Failed to get connection.

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.