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.

已提問 1 年前檢視次數 195 次
1 個回答
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
支援工程師
Tom_T
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南