Greengrass switches the deployment version without executing the startup script

0

Operation steps:

Through aws greengrass v2 create-deployment -- cli-input-json locally file://update-component.json Mode deployment

  1. The local deployment of version 28 is successful

  2. The local deployment of version 0 is incomplete

  3. Re-deploy version 28 locally

Phenomenon:

Start script will not be executed after step 3

Q: How to make step 3 execute the startup script

  • What do you mean by "incomplete"? What is the exact status of the deployment?

    If the deployment rolled back, which Greengrass will do automatically in some circumstances, then it will run the startup again (if necessary). If no changes were made which require the startup script to run, then it will not run.

preguntada hace un año195 visualizaciones
1 Respuesta
0

Hello,

This is Tom from AWS Support.

As mentioned through the comment, IoT GreenGrass will roll back deployment automatically in some circumstances, then it will run the startup again (if necessary). If no changes were made which require the startup script to run, then it will not run.

If there is an issue with current deployment startup script, I would recommend to check and see if there are any status codes from devices' file system logs (e.g. STARTUP_ERROR or STARTUP_TIMEOUT):

https://docs.aws.amazon.com/greengrass/v2/developerguide/troubleshooting-component.html

I hope the above information helps for further troubleshooting. Have a nice day.

AWS
INGENIERO DE SOPORTE
Tom_T
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas