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.

gefragt vor einem Jahr196 Aufrufe
1 Antwort
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
SUPPORT-TECHNIKER
Tom_T
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen