- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hi,
Thanks for reaching out. Yes, lack of internet connectivity can result in components such as SystemsManagerAgent that depend on it becoming Broken due to repeatedly failure to start. As of today's date, we do not have a component that can detect internet availability and manage components respectively.
Given these issues occur frequently after startup, one possible workaround is to have an intermediate bash/terminal process that controls Greengrass startup. The process will use a time delay (after calculating the average time it takes for internet to be available and add a buffer) before it runs a system command to start the Greengrass process itself. This assumes that all components depend on the internet to operate.
If there are components on the core device that are critical and can operate without the use of the internet and so need these to be running as soon as possible, you can potentially build your own custom component using one of the supported SDKs [1]. The component will monitor network availability and once it identifies that internet is available, it can then call the RestartComponent greengrass-cli command to restart the component. You can read more about this at [2]. Please take note of the requirements towards using the cli command.
References
[1] Use the AWS IoT Device SDK to communicate with the Greengrass nucleus, other components, and AWS IoT Core - Supported SDKs for interprocess communication - https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-requirements
[2] Manage local deployments and components - https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-local-deployments-components.html
Honorable Mentions
PauseComponent, ResumeComponent - [] Interact with component lifecycle - https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-component-lifecycle.html
Contenus pertinents
- demandé il y a 2 ans
- demandé il y a 2 ans
- demandé il y a 9 mois
- demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
Thank you for bringing this up, I will forward this to the Systems Manager team for resolution.
I'd recommend that you install SSM manually (without Greengrass) which would avoid this problem until it can be addressed. https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-manual-agent-install.html