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.

feita há um ano195 visualizações
1 Resposta
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
ENGENHEIRO DE SUPORTE
Tom_T
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas