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!

demandé il y a un an262 vues
1 réponse
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
répondu il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions