Unable to deploy greengrass-cli to new device

0

I set up a raspberry Pi as a greengrass core device following the manually provisioning process. After the core device is registered, I try to deploy greengrass-cli to the device from IoT console, but it always fail with following errors. I don't understand why it is failing to negotiate version because there is no older version.

2021-06-02T21:39:17.230Z [INFO] (pool-2-thread-15) com.aws.greengrass.componentmanager.ComponentManager: negotiate-version-with-cloud-start. Negotiating version with cloud. {}
2021-06-02T21:39:18.901Z [ERROR] (pool-2-thread-15) com.aws.greengrass.componentmanager.ComponentManager: Failed to negotiate version with cloud and no local version to fall back to. {componentName=aws.greengrass.Cli, versionRequirement={thing/gateway_pi64==2.1.0}}
software.amazon.awssdk.services.greengrassv2.model.GreengrassV2Exception: null (Service: GreengrassV2, Status Code: 403, Request ID: f08d99d4-2b93-07ad-57ae-1eada935b967, Extended Request ID: null)
at software.amazon.awssdk.core.internal.http.CombinedResponseHandler.handleErrorResponse(CombinedResponseHandler.java:123)
at software.amazon.awssdk.core.internal.http.CombinedResponseHandler.handleResponse(CombinedResponseHandler.java:79)
at software.amazon.awssdk.core.internal.http.CombinedResponseHandler.handle(CombinedResponseHandler.java:59)
at software.amazon.awssdk.core.internal.http.CombinedResponseHandler.handle(CombinedResponseHandler.java:40)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:40)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:30)
...
2021-06-02T21:39:32.187Z [INFO] (pool-2-thread-13) com.aws.greengrass.deployment.DeploymentService: Current deployment finished. {DeploymentId=arn:aws:greengrass:us-west-2:308868511064:configuration:thing/gateway_pi64:5, serviceName=DeploymentService, currentState=RUNNING}

Edited by: jcai on Jun 2, 2021 3:38 PM

jcai
질문됨 3년 전258회 조회
2개 답변
0

Hi there,
Since you are seeing a 403 error, this means that your IoT policy is not properly configured to allow Greengrass to deploy components. Please see https://docs.aws.amazon.com/greengrass/v2/developerguide/device-auth.html#greengrass-core-minimal-iot-policy for how to properly configure the policy.

Cheers,
Michael Dombrowski

AWS
전문가
답변함 3년 전
0

You are absolute right. I did not specify greengrass permissions in my policy. Thank you very much!

jcai
답변함 3년 전

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

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

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

관련 콘텐츠