Hi, I'm trying to get AWS GreenGrass V2 core working on an install of OpenWRT. I currently have OpenWRT running in a virtual machine running as x86_64. I have satisfied all the requirements listed here:
https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html
and I have installed OpenJDK 11 for Alpine Linux. I am able to get greengrass to successfully install with this command:
java -Droot="/greengrass/v2" -Dlog.store=FILE -jar ./GreengrassInstaller/lib/Greengrass.jar --aws-region us-east-2 --thing-name test --thing-group-name test --component-default-user ggc_user:ggc_group --provision true --setup-system-service true --deploy-dev-tools true
But when I check greengrass.log, I see this error regarding nucleus failing to start:
2023-09-19T20:32:04.267Z [ERROR] (main) com.aws.greengrass.easysetup.GreengrassSetup: Error while trying to setup Greengrass Nucleus. {}
java.lang.ExceptionInInitializerError
at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:104)
at com.aws.greengrass.ipc.IPCEventStreamService.startup(IPCEventStreamService.java:97)
at com.aws.greengrass.lifecyclemanager.KernelLifecycle.launch(KernelLifecycle.java:150)
at com.aws.greengrass.lifecyclemanager.Kernel.launch(Kernel.java:251)
at com.aws.greengrass.easysetup.GreengrassSetup.performSetup(GreengrassSetup.java:349)
at com.aws.greengrass.easysetup.GreengrassSetup.main(GreengrassSetup.java:274)
Caused by: software.amazon.awssdk.crt.CrtRuntimeException: software.amazon.awssdk.crt.CrtRuntimeException: Unable to unpack AWS CRT library UNKNOWN(-1) UNKNOWN(-1)
at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:255)
at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:35)
... 6 more
Any help with solving is issue is greatly appreciated.
Thank you!
Hi Michael, thanks for the info. I just reread this post here: https://aws.amazon.com/about-aws/whats-new/2019/06/aws-iot-greengrass-support-openwrt-aws-iot-device-tester-available/ and realized it was referencing GreenGrass V1.9.2 and excluded x86_64 CPU architectures. Would I be able to run Greengrass V1 (or preferably V2) on OpenWRT on say ARMv8 hardware (assuming I can install glibc)? Thank you!
Greengrass V2 does not support OpenWRT. It does not matter what CPU you have.
Greengrass V1 is no longer supported and you must not use it for new development. https://docs.aws.amazon.com/greengrass/v1/developerguide/maintenance-policy.html
You can use any other supported OS, such as Ubuntu