Error while downloading file s3://sitewise-edge-component-artifacts-eu-central-1/dynamodb-local/1.1.0/dynamodb_local_latest.zip

0

Hello,

I have a Greengrass environment deployed on a Linux machine with the following deployment:

ComponentVersion
aws.greengrass.Cli2.9.3
aws.greengrass.Nucleus2.9.3
aws.greengrass.SecretManager2.1.4
aws.greengrass.StreamManager2.1.2
aws.greengrass.SystemsManagerAgent1.0.0
aws.iot.SiteWiseEdgeCollectorOpcua2.2.0

This deployment is green and works fine, but when I add the SiteWise Edge Processor and Publisher with following version:

ComponentVersion
aws.iot.SiteWiseEdgeProcessor2.1.29
aws.iot.SiteWiseEdgePublisher2.3.1

I receive the following error:

2023-02-22T11:39:26.251Z [INFO] (Copier) aws.iot.SiteWiseEdgeProcessor: stdout. [2023-02-22] [11:39:26] ERROR - Error while downloading file s3://sitewise-edge-component-artifacts-eu-central-1/dynamodb-local/1.1.0/dynamodb_local_latest.zip. Error: Download failed for /greengrass/v2/work/aws.iot.SiteWiseEdgeProcessor/dynamodb_local_latest.zip: (verification: FAILED):. {scriptName=services.aws.iot.SiteWiseEdgeProcessor.lifecycle.Install.Script, serviceName=aws.iot.SiteWiseEdgeProcessor, currentState=NEW}

Looks like there is an issue installing that file, but I verified the file exists on that bucket and Greengrass has the right to access it from the IAM Role.

Do you know what is the issue about?

Many thanks in advance!

asked a year ago254 views
1 Answer
1

As you are installing SiteWise Edge Gateway with Data processing pack, we highly recommend that you do the entire deployment through the console following steps outlined here using Default setup: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-gateway-ggv2.html

Console will create all the required permissions in the cloud, and the installation script will setup your OS and install missing dependencies. In advanced setup there are a number of steps that you will need to perform manually, like installing Java and creating correct IAM policy which is attached to the gateway. Your current setup is missing correct IAM policy assigned to the Greengrass Core. The policy can be found here at the bottom of the page: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/configure-gateway-ggv2.html

rminliu
answered a year ago
  • Thank you for the reply. I deployed the gateway using Advanced setup since I already have the gateway and the Linux machine configured. I would have preferred to fix this without redeploying the whole thing, otherwise it means I need a clean Linux machine to redeploy everything using the Default setup. It should not be related with permissions, since currently the Greengrass Core is using a role/policy allowing Admin permissions in addition to the ones listed, to exclude issues with permissions, but still the error is there. In case the best option anyway is to redeploy the gateway using the Default setup installer eventually I will do that, because I guess is the only way.

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