deployment stuck "in progress" and docker-login. task failed

0

i am trying to deploy docker image which is stored in ECR using greengrass. but in one of my core i am not able to deploy it Job executions process stuck "In progress". and inside my core i have properly setup Security credentials and core as well. setup core

greengrass logs which is inside my core. Error inside Core located in /greengrass/v2/logs/greengrass.log

AWS status AWS status

So, i am struggling to figure out why this has happened and what i can do. Any ideas?

3개 답변
0

Hello,

I see your Docker images are stored in an Amazon ECR private repository, and you are encountering error when logging into ECR.

  1. Make sure that you installed the latest AWS CLI version 2. We recommend that you use the AWS CLI version 2. For more information, see Installing the AWS CLI in the AWS Command Line Interface User Guide.
  2. Be sure that you have included the token exchange service component as a dependency in the Docker container component. Also, verify the Greengrass device IAM role if it has proper permissions. It must allow the ecr:GetAuthorizationToken, ecr:BatchGetImage, and ecr:GetDownloadUrlForLayer actions, as shown in the following example IAM policy.
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "ecr:GetAuthorizationToken",
        "ecr:BatchGetImage",
        "ecr:GetDownloadUrlForLayer"
      ],
      "Resource": [
        "*"
      ],
      "Effect": "Allow"
    }
  ]
}
AWS
Olawale
답변함 2년 전
0

Hello, the error in your screenshots appears to be due to misconfiguration for docker and Greengrass does not deal with docker installation or configuration, you might try the few suggestions from https://github.com/docker/cli/issues/2229 , as described in this issue you may have golang-docker-credential-helpers installed which also needs pass installed. For your Greengrass deployment I believe this error occurs before the usage of TokenExchangeService for ECR login/image download, so as suggested by others on this question also make sure your policies and roles are correctly configured. Thanks.

AWS
답변함 2년 전
0

First thing I suggest for you to simulate your policy/role that is attached. See if it giving successful and denied. That will give you clue if it stopped in first place. https://policysim.aws.amazon.com/home/index.jsp?#

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인