我能够启动一个实例,并让它由系统管理器管理。也就是说,直到它自动更新SSM代理。更新是成功的,从3.0.161.0更新到3.0.854.0。操作系统是Ubuntu20.04。
尽管会话管理器没有出现在托管实例列表中,但我仍然可以使用它连接到实例。
不确定这是否相关,但这里是/var/log/amazon/ssm/errors.log
2021-03-21 03:56:50 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [MessagingDeliveryService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:50 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [OfflineService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:51 ERROR [Process @ backend.go.139] [ssm-document-worker] [28785d7e-bfaf-414b-bd02-fc3a1746610b] [DataBackend] failed to unmarshal plugin config: json: cannot unmarshal object into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type string
2021-03-21 03:56:51 ERROR [Messaging @ messaging.go.145] [ssm-document-worker] [28785d7e-bfaf-414b-bd02-fc3a1746610b] messaging pipeline process datagram encountered error: json: cannot unmarshal object into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditionsof type string
2021-03-21 03:56:50 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [MessageGatewayService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:50 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [MessagingDeliveryService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:50 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [OfflineService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:50 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [MessageGatewayService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:51 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [MessagingDeliveryService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:51 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [OfflineService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b
2021-03-21 03:56:51 ERROR [GetDocumentState @ docmanager.go.147] [ssm-agent-worker] [MessageGatewayService] encountered error with message json: cannot unmarshal string into Go struct field Configuration.InstancePluginsInformation.Configuration.Preconditions of type contracts.PreconditionArgument while reading Interim state of command from file - 28785d7e-bfaf-414b-bd02-fc3a1746610b知道这个问题的原因是什么吗?
发布于 2021-03-21 10:02:17
我相信这是AWS的窃听器。我使用Terraform,和我昨天测试过的完全相同的吐露,现在它就像预期的那样工作。
https://stackoverflow.com/questions/66728791
复制相似问题