- 최신
- 최다 투표
- 가장 많은 댓글
Answering this myself since although helpful @MichaelDombrowski-AWS's answer does not respond the original question directly.
First of all I think it's not possible to mount a file as I'm getting permission denied errors even when using a dir that does not exist:
error mounting "/local/path/to/my/library/librfidapi32.so" to rootfs at "/usr/zebra_lib/librfidapi32.so": mkdir /path/to/greengrass/v2/work/component-name/work/worker/2m7-vhzx_NF0BmR4iCS-VDoZAh5eZ1Ct5D5BcWk_duQ/rootfs/merged/usr/zebra_lib: permission denied. {serviceInstance=0, serviceName=component-name, currentState=STARTING}
The workaround was to mount the underlying directory and set LD_LIBRARY_PATH environment variable to it:
"linuxProcessParams": {
"containerParams": {
"volumes": [
{
"sourcePath": "/local/path/to/my/libraries",
"destinationPath": "/zebra_libs",
"addGroupOwner": false,
"permission": "ro"
}
]
}
},
"environmentVariables": {
"LD_LIBRARY_PATH": "/zebra_libs"
}
Hi,
When you make a new component version that has a changed DefaultConfiguration (this includes anytime you make a new Lambda component with different settings), you must use RESET: [""]
in the deployment to use the new defaults. Reset will remove the configuration currently on the device and instead use the new default values. Default configuration is only applied when there is no configuration present (eg. you're deploying the component for the first time on a given device).
Use MERGE
to update the configuration without making a new component version and changing the defaults.
Read more in:
- https://docs.aws.amazon.com/greengrass/v2/developerguide/troubleshooting.html#update-component-configuration-to-default-configuration
- https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html
Cheers,
Michael
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
Please make sure that you reset the configuration in the deployment after changing it: https://docs.aws.amazon.com/greengrass/v2/developerguide/troubleshooting.html#update-component-configuration-to-default-configuration.
I would recommend using native Greengrass components instead of lambda if you are not migrating from Greengrass v1. Native components allow you to do anything at all.
We are indeed migrating from Greengrass v1...
Ok that's great then. Please make sure you follow the troubleshooting entry to use reset when changing configuration. After you do that, please report back if the issue is resolved.
I did notice configuration not updating but don't quite understand. Every time I make a change to the lambda function or component configuration I use a different version for the component. Then I deploy this new version of the component. So, do I need both "reset" and "merge" in the "configurationUpdate" in order to force greengrass to pick it up?