SiteWise Greengrass gateway deployment failure for IMX8 Debian 11 Linux 5.15 board

0

Had been testing SiteWise with Greengrass v2 gateway to connect to a OPCUA server, worked OK on my Ubuntu 22/x86 laptop but when I try to deploy on a gateway board, I get error ..

Sorry for the 'mess' below but this is what I have in my greengrass.log but unable to determine what course of action required due to simplicity of the deployment options i.e. "Linux".

root@device:/AWS# ./Gateway-nG5.deploy.sh The SiteWise Edge installation log is available at: /tmp/swe-install-20230822075705.log Created temporary installation directory /tmp/tmp.6o0NcBZn6j Following dependencies are missing:

  • unzip
  • openjdk-11-jre-headless

Proceed with the installation? [y/N] y Updating package manager ... Installing unzip... Installing openjdk-11-jre-headless... Creating user ggc_user ggc_user created Creating group ggc_group ggc_group created Added ggc_user to ggc_group Successfully set up Nucleus as a system service root@device:/AWS# systemctl status greengrass ● greengrass.service - Greengrass Core Loaded: loaded (/etc/systemd/system/greengrass.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2023-08-22 08:00:19 UTC; 1min 54s ago Main PID: 3125 (sh) Tasks: 47 (limit: 3466) Memory: 179.3M CPU: 23.534s CGroup: /system.slice/greengrass.service ├─3125 /bin/sh /greengrass/v2/alts/current/distro/bin/loader └─3133 java -Dlog.store=FILE -Dlog.store=FILE -Droot=/greengrass/v2 -jar /greengrass/v2/alts/curre>

Aug 22 08:00:19 device sh[3125]: Java executable: java Aug 22 08:00:19 device sh[3125]: JVM options: -Dlog.store=FILE -Droot=/greengrass/v2 Aug 22 08:00:19 device sh[3125]: Nucleus options: --setup-system-service false Aug 22 08:00:23 device sh[3133]: Launching Nucleus... Aug 22 08:00:24 device sh[3133]: Launched Nucleus successfully. Aug 22 08:00:39 device sh[3133]: WARNING: An illegal reflective access operation has occurred Aug 22 08:00:39 device sh[3133]: WARNING: Illegal reflective access by com.google.gson.internal.reflect.Reflect> Aug 22 08:00:39 device sh[3133]: WARNING: Please consider reporting this to the maintainers of com.google.gson.> Aug 22 08:00:39 device sh[3133]: WARNING: Use --illegal-access=warn to enable warnings of further illegal refle> Aug 22 08:00:39 device sh[3133]: WARNING: All illegal access operations will be denied in a future release

LOG : greengrass.log

2023-08-22T08:00:44.840Z [ERROR] (pool-2-thread-6) com.aws.greengrass.deployment.DeploymentService: Error occurred while processing deployment. {deploymentId=150825a7-d51d-4ab5-8dac-a35db221732c, serviceName=DeploymentService, currentState=RUNNING} java.util.concurrent.ExecutionException: com.aws.greengrass.componentmanager.exceptions.PackagingException: An error occurred while negotiating component version with cloud at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at com.aws.greengrass.deployment.DefaultDeploymentTask.call(DefaultDeploymentTask.java:127) at com.aws.greengrass.deployment.DefaultDeploymentTask.call(DefaultDeploymentTask.java:50) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: com.aws.greengrass.componentmanager.exceptions.PackagingException: An error occurred while negotiating component version with cloud at com.aws.greengrass.componentmanager.ComponentManager.negotiateVersionWithCloud(ComponentManager.java:240) at com.aws.greengrass.componentmanager.ComponentManager.resolveComponentVersion(ComponentManager.java:165) at com.aws.greengrass.componentmanager.DependencyResolver.lambda$resolveDependencies$1(DependencyResolver.java:121) at com.aws.greengrass.componentmanager.DependencyResolver.resolveComponentDependencies(DependencyResolver.java:218) at com.aws.greengrass.componentmanager.DependencyResolver.resolveDependencies(DependencyResolver.java:118) at com.aws.greengrass.deployment.DefaultDeploymentTask.lambda$call$2(DefaultDeploymentTask.java:125) ... 4 more Caused by: com.aws.greengrass.componentmanager.exceptions.IncompatiblePlatformClaimByComponentException: The version of component requested does not claim platform compatibility. Check whether the platform constraints conflict and that the component platform mentioned in the recipe matches the platform constraints. If the platform constraints conflict, revise deployments to resolve the conflict. Component aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator claimed platform: os linux, architecture aarch64. at com.aws.greengrass.componentmanager.ComponentServiceHelper.resolveComponentVersion(ComponentServiceHelper.java:104) at com.aws.greengrass.componentmanager.ComponentManager.lambda$negotiateVersionWithCloud$0(ComponentManager.java:209) at com.aws.greengrass.util.RetryUtils.runWithRetry(RetryUtils.java:50) at com.aws.greengrass.componentmanager.ComponentManager.negotiateVersionWithCloud(ComponentManager.java:208) ... 9 more

2023-08-22T08:00:54.959Z [INFO] (pool-2-thread-12) com.aws.greengrass.deployment.DeploymentService: Current deployment finished. {DeploymentId=arn:aws:greengrass:ap-southeast-2:752800691949:configuration:thing/Gateway-nG5:1, GreengrassDeploymentId=150825a7-d51d-4ab5-8dac-a35db221732c, serviceName=DeploymentService, currentState=RUNNING} 2023-08-22T08:00:54.978Z [ERROR] (pool-2-thread-12) com.aws.greengrass.deployment.DeploymentService: Deployment task failed with following errors. {DeploymentId=arn:aws:greengrass:ap-southeast-2:752800691949:configuration:thing/Gateway-nG5:1, detailed-deployment-status=FAILED_NO_STATE_CHANGE, deployment-error-types=[REQUEST_ERROR], GreengrassDeploymentId=150825a7-d51d-4ab5-8dac-a35db221732c, serviceName=DeploymentService, currentState=RUNNING, deployment-error-stack=[DEPLOYMENT_FAILURE, NO_AVAILABLE_COMPONENT_VERSION, COMPONENT_VERSION_REQUIREMENTS_NOT_MET]} com.aws.greengrass.componentmanager.exceptions.PackagingException: An error occurred while negotiating component version with cloud at com.aws.greengrass.componentmanager.ComponentManager.negotiateVersionWithCloud(ComponentManager.java:240) at com.aws.greengrass.componentmanager.ComponentManager.resolveComponentVersion(ComponentManager.java:165) at com.aws.greengrass.componentmanager.DependencyResolver.lambda$resolveDependencies$1(DependencyResolver.java:121) at com.aws.greengrass.componentmanager.DependencyResolver.resolveComponentDependencies(DependencyResolver.java:218) at com.aws.greengrass.componentmanager.DependencyResolver.resolveDependencies(DependencyResolver.java:118) at com.aws.greengrass.deployment.DefaultDeploymentTask.lambda$call$2(DefaultDeploymentTask.java:125) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: com.aws.greengrass.componentmanager.exceptions.IncompatiblePlatformClaimByComponentException: The version of component requested does not claim platform compatibility. Check whether the platform constraints conflict and that the component platform mentioned in the recipe matches the platform constraints. If the platform constraints conflict, revise deployments to resolve the conflict. Component aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator claimed platform: os linux, architecture aarch64. at com.aws.greengrass.componentmanager.ComponentServiceHelper.resolveComponentVersion(ComponentServiceHelper.java:104) at com.aws.greengrass.componentmanager.ComponentManager.lambda$negotiateVersionWithCloud$0(ComponentManager.java:209) at com.aws.greengrass.util.RetryUtils.runWithRetry(RetryUtils.java:50) at com.aws.greengrass.componentmanager.ComponentManager.negotiateVersionWithCloud(ComponentManager.java:208) ... 9 more

Stanley
asked 9 months ago252 views
1 Answer
2
Accepted Answer

Hi Stanley, the IMX8 board you use is an armv8 64bit cpu architecture. The aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator component only supports amd64 CPU architecture. You can check what OS and CPU architecture a component supports by checking the component recipe in the AWS console. Here the relevant excerpt:

"Manifests": [
    {
      "Platform": {
        "os": "/windows|linux/",
        "architecture": "amd64"
      },

Remove the aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator component from your deployment and try again.

Hope that helps

profile pictureAWS
EXPERT
Jan_B
answered 9 months ago
AWS
EXPERT
reviewed 9 months ago
profile pictureAWS
EXPERT
Greg_B
reviewed 9 months ago
  • Hi Jan! Thanks mate ... looks like that got the deployment sorted .. will take note these component recipes for sure. Looks sweet now, now we can move on to the portal for the Monitoring part of the project (it's a OPCUA - industrial gateway - AWS SiteWIse Monitor demo for an upcoming trade show in Singapore).

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