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.

asked a year ago189 views
1 Answer
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 ENGINEER
Tom_T
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions