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}
질문됨 일 년 전536회 조회lg...
1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
이 답변이 도움이 되었나요?커뮤니티가 여러분의 지식을 활용할 수 있도록 정답을 찬성하세요.
0
수락된 답변
Please try with the latest version of the aws.iot.SiteWiseEdgeCollectorOpcua component, that is 2.2.0
It worked, Thank you. Could you please let me know what are the changes as this version is not mentioned in Documentation?