Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greengrass doesn't run on Yocto scarthgap due to no execute permissions on ${GG_BASENAME}/alts/current/distro/bin/loader #10914

Open
jrdeck opened this issue Dec 20, 2024 · 1 comment
Assignees

Comments

@jrdeck
Copy link

jrdeck commented Dec 20, 2024

On a fresh build of Yocto scarthgap, using the poky reference distro, Greengrass wouldn't run. It didn't create the logs folder, which made troubleshooting slightly challenging.

Manually chmoding the /greengrass directly to 755 solved the problem. In further troubleshooting, I resolved the issue by changing line 82 in greengrass-bin_2.14.0.bb from:

install -m 0640 ${S}/bin/loader ${GG_ROOT}/packages/artifacts-unarchived/aws.greengrass.Nucleus/${PV}/aws.greengrass.nucleus/bin/loader

to:

install -m 0750 ${S}/bin/loader ${GG_ROOT}/packages/artifacts-unarchived/aws.greengrass.Nucleus/${PV}/aws.greengrass.nucleus/bin/loader

@thomas-roos thomas-roos self-assigned this Dec 20, 2024
@thomas-roos
Copy link
Contributor

thomas-roos commented Dec 20, 2024

Hi James,
thanks a lot for this - while still investigating the correct solution - if you use the installer file permissions will also 640 during installation and then changed to 755 - my guess (that I figure out now) during start of the loader.
I was using systemd before, so my guess is you do not use it. Here are some demo image that use poky-altcfg distro, systemd: https://github.com/aws4embeddedlinux/meta-aws-demos/blob/e362dcb0115b31d6e9f8344a53fc71fb072db727/meta-aws-demos/recipes-core/images/aws-iot-greengrass-demo-simple-image/config.conf#L1
Coming back with the correct solution, but might - because of xmas vacation - will take some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants