Unable to unpack AWS CRT lib for aws.iot.SiteWiseEdgeCollectorOpcua with Greengrass V2 in Docker Container

0

Hi,

I'm trying to run Greengrass v2 2.9.0 in a Docker Container which have been setup using aws-greengrass-docker.

While setting aws.iot.SiteWiseEdgeCollectorOpcua with version 2.1.3 I'm getting error in logs which says Unable to unpack AWS CRT lib: java.io.IOException: Unable to open library in jar for AWS CRT: /linux/armv8/libaws-crt-jni.so. (Added full logs in last.)

Here is the versions Information:

  • aws.iot.SiteWiseEdgeCollectorOpcua=> 2.1.3
  • Greengrass V2=> 2.9.0
  • Docker =>
Client:
 Cloud integration: v1.0.29
 Version:           20.10.21
 API version:       1.41
 OS/Arch:           darwin/arm64

Server: Docker Desktop 4.15.0 (93002)
 Engine:
  Version:          20.10.21
  API version:      1.41 (minimum version 1.12)
  OS/Arch:          linux/arm64
 containerd:
  Version:          1.6.10
 runc:
  Version:          1.1.4
 docker-init:
  Version:          0.19.0
  • Host OS: MacOS 13.1

Following are the Logs available for aws.iot.SiteWiseEdgeCollectorOpcua

2023-01-18T13:53:32.246Z [INFO] (pool-2-thread-17) aws.iot.SiteWiseEdgeCollectorOpcua: shell-runner-start. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING, command=["java -cp /greengrass/v2/packages/artifacts/aws.iot.SiteWiseEdgeCollectorOpcua/..."]}
2023-01-18T13:53:32.249Z [DEBUG] (pool-2-thread-17) aws.iot.SiteWiseEdgeCollectorOpcua: Created process with pid 464. {serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.407Z [INFO] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stdout. WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.659Z [INFO] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stdout. [INFO ] 2023-01-18 13:53:32.658 [main] OpcUaCollector - {"message":"Initializing OPC-UA Collector Component."}. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. Unable to unpack AWS CRT lib: java.io.IOException: Unable to open library in jar for AWS CRT: /linux/armv8/libaws-crt-jni.so. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. java.io.IOException: Unable to open library in jar for AWS CRT: /linux/armv8/libaws-crt-jni.so. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CRT.extractAndLoadLibrary(CRT.java:155). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:220). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:33). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:104). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.common.factory.GreengrassFactory.getSocketOptionsForIPC(GreengrassFactory.java:105). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.common.factory.GreengrassFactory.provideEventStreamRpcConnection(GreengrassFactory.java:47). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.common.factory.GreengrassFactory.provideGreengrassCoreIPCClient(GreengrassFactory.java:38). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.component.ComponentService.<init>(ComponentService.java:57). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.665Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.component.ComponentService$Builder.build(ComponentService.java:394). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.collector.OpcUaCollector.main(OpcUaCollector.java:23). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. Exception in thread "main" java.lang.ExceptionInInitializerError. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:104). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.common.factory.GreengrassFactory.getSocketOptionsForIPC(GreengrassFactory.java:105). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.common.factory.GreengrassFactory.provideEventStreamRpcConnection(GreengrassFactory.java:47). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.common.factory.GreengrassFactory.provideGreengrassCoreIPCClient(GreengrassFactory.java:38). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.component.ComponentService.<init>(ComponentService.java:57). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.sdk.component.ComponentService$Builder.build(ComponentService.java:394). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at com.amazon.iot.sitewise.component.collector.OpcUaCollector.main(OpcUaCollector.java:23). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. Caused by: software.amazon.awssdk.crt.CrtRuntimeException: software.amazon.awssdk.crt.CrtRuntimeException: Unable to unpack AWS CRT library UNKNOWN(-1) UNKNOWN(-1). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.666Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:230). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.667Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:33). {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.667Z [WARN] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: stderr. ... 7 more. {scriptName=services.aws.iot.SiteWiseEdgeCollectorOpcua.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
2023-01-18T13:53:32.690Z [INFO] (Copier) aws.iot.SiteWiseEdgeCollectorOpcua: Startup script exited. {exitCode=1, serviceName=aws.iot.SiteWiseEdgeCollectorOpcua, currentState=STARTING}
preguntada hace un año536 visualizaciones
1 Respuesta
0
Respuesta aceptada

Please try with the latest version of the aws.iot.SiteWiseEdgeCollectorOpcua component, that is 2.2.0

AWS
EXPERTO
respondido hace un año
  • It worked, Thank you. Could you please let me know what are the changes as this version is not mentioned in Documentation?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas