Component stuck on device without deployment

0

Related to this previous post that did not entirely solve the issue: https://repost.aws/questions/QUVlaGuW0NRX-AXrSUJlvWHQ/can-t-update-nucelus-due-to-dependency

I have some devices that have an old version of the component aws.greengrass.Cli. That component is preventing me from updating nucleus. There is a deployment on the group for that device, which does not include the CLI component. As advised in the linked post, I tried deploying an empty deployment to the core device, which successfully removed the component from the list of components in the web interface. Unfortunately the component is still present on the device and still prevents me from deploying an update.

I can see it when I log onto the device and run /greengrass/v2/bin/greengrass-cli component list:

Component Name: aws.greengrass.Cli
    Version: 2.9.4
    State: RUNNING
    Configuration: {"AuthorizedPosixGroups":null,"AuthorizedWindowsGroups":null}

I have this issue on many devices, so it would be great if I had a way to delete this component without having to SSH into each one of them, but at this point any way to remove the component be great

TSpark
質問済み 10ヶ月前250ビュー
1回答
1
承認された回答

Hello TSpark,

Please ensure the component was not deployed via a different thing group or using an individual deployment to the thing. I'd recommend creating a deployment to this individual device which contains no components, this would remove the CLI if the CLI is deployed via a thing deployment earlier.

You can find why the CLI is still installed by looking at config/effectiveConfig.yaml and looking for "aws.greengrass.Cli", you should find it under the "ComponentToGroups".

Cheers,

Michael

AWS
エキスパート
回答済み 10ヶ月前
  • Thanks for the quick answer. It turns out the empty deployments that I made to the devices (individually) had failed, which is why the CLI component was still there. Revising the empty deployment did fix the issue

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ