Deployment fail after restarting the core device using bootstrap exit code

0

During the deployment of the components one of the components requires the restart the core device(raspberrypi) so we're using the bootstrap exit 101 inside the component script to accomplish that task but after the device restarted the deployment status is getting failed.

We have tried the deployment without the restart option in that case the deployment is getting successfully completed.

Below is the link to the logs files to the failure deployment : https://pastebin.com/vNCXvPwn

Thanks,
Madhav

Madhav
已提問 3 年前檢視次數 289 次
2 個答案
0
已接受的答案

Hi Madhav,

Thanks for reporting this issue. There is a bug in all released versions of greengrass where the exit code 101 may not work when used in a bootstrap script to signal that the device should restart. Apparently it 'may' work depending on timing of when the loader script executes, but it is "mostly broken".

We have already fixed this issue (link below) which will be released as part of 2.5. For all the released versions this will be fixed with the next patch version.

Pull request that fixes the issue: https://github.com/aws-greengrass/aws-greengrass-nucleus/pull/1041

Best,
Fahad

已回答 3 年前
0

Hi Fahad,
Thanks for the reply.

Best,
Madhav

Madhav
已回答 3 年前

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

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

回答問題指南