Monday, February 17, 2020
Could not switch roles using the provided information. Please check your settings and try again. If you continue to have problems, contact your administrator.
Could not switch roles using the provided information. Please check your settings and try again. If you continue to have problems, contact your administrator.
If you get this error than there is a big probability the user has no permission to assume a role. Add a new policy to user to allow assuming roles. check the below article:
if it doesn't work leave a comment.
Sunday, February 16, 2020
ECS Fargate ERROR : CannotPullContainerError: Error response from daemon
Last week i was asked to look into an issue faced by the team working on a service deployed in ECS Fargate
ERROR
Details:
The container service was failing to provision and stopping with the above error.
Possible Reasons:
The error indicated that the container is failing during "Pull" event and in this case, the only pull request which is configured is for the docker image maintained in ECS registry.
Most of the times such issue occurs due to lack of access and this case was no different.. There are two possible ares to look at for enabling Fargate resource deployed in private subnet to pull image from ECS registry
ERROR
CannotPullContainerError: Error response from daemon: Get https://xxxxxxxxxxxx.dkr.ecr.us-east-x.amazonaws.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Details:
The container service was failing to provision and stopping with the above error.
Possible Reasons:
The error indicated that the container is failing during "Pull" event and in this case, the only pull request which is configured is for the docker image maintained in ECS registry.
Most of the times such issue occurs due to lack of access and this case was no different.. There are two possible ares to look at for enabling Fargate resource deployed in private subnet to pull image from ECS registry
- If task is launched without an public IP, its it required to configure route table on the subnet with has "0.0.0.0/0" going to a NAT Gateway or NAT instance . This is to ensure it can connect to internet. If task is launched with an public IP, configure route table on the subnet to have "0.0.0.0/0" going to an internet gateway to ensure traffic can flow in.
- Ensure the security groups for the Task allows for outbound access.
if internet access is a concern than another option is to deploy registry inside VPC.
Here is link for one of the option
Subscribe to:
Comments (Atom)
Handle the error “OwnershipControlsNotFoundError” for buckets created prior to April 2023 when the bucket ownership was defaulted to “Object Writer”
Here you go published a python code sample written for migrating S3 bucket ownership controls between AWS accounts. The code is written to ...
-
Ever wanted to have a people picker kind of control in Infopath form and that too in browser mode. Did i heard yes :) , well there is a Acti...
-
Note : In below scenario jenkins was deployed in Linux container Scenario: Jenkins build failed with error. java.io.IOException: error...
-
Am sure lot's of people would be wondering how to hide menu items of a list eg document libraries "Send to " menu item . In o...