为什么我部署到 AWS Greengrass Core 的组件在部署后立即失败?
Why the component I deploy to AWS Greengrass Core fails immediately after being deployed?
我开发了一个组件,它订阅了我的 Greengrass 核心设备中的本地代理,还订阅了核心设备的设备影子并使用来自本地代理的数据更新它。
很好,在我部署它之前它在本地对我有用,但是一旦部署它就崩溃了,在 CloudWatch 中我可以看到以下错误:
{
"timestamp": "2022-04-22 20:25:49.139",
"logLevel": "ERROR",
"traceId": "05e6b233-1b52-d773-d061-3c74057655ea",
"accountId": "***********",
"status": "Failure",
"eventType": "GetThingShadow",
"protocol": "MQTT",
"deviceShadowName": "MyName",
"topicName": "$aws/things/MyName/shadow/name/AWSManagedGreengrassV2Deployment/get",
"details": "No shadow exists with name: 'MyName~AWSManagedGreengrassV2Deployment'"
}
第二个:
{
"timestamp": "2022-04-22 20:26:08.479",
"logLevel": "ERROR",
"accountId": "********",
"status": "Success",
"eventType": "UpdateJobExecution",
"protocol": "MQTT",
"clientId": "MyName",
"jobId": "d1a10592-7d03-4cc8-aeca-1a615dc562e0",
"topicName": "$aws/things/MyName/jobs/d1a10592-7d03-4cc8-aeca-1a615dc562e0/namespace-aws-gg-deployment/update",
"details": "The destination status is FAILED. The request status is SUCCESS."
}
什么可能导致这些问题?有人可以给我线索吗?
我找到了问题的答案。
事实上,我部署的组件与 Greengrass Core 的 运行 版本相比具有不同的 Java 版本。
希望对大家有所帮助。
我开发了一个组件,它订阅了我的 Greengrass 核心设备中的本地代理,还订阅了核心设备的设备影子并使用来自本地代理的数据更新它。
很好,在我部署它之前它在本地对我有用,但是一旦部署它就崩溃了,在 CloudWatch 中我可以看到以下错误:
{
"timestamp": "2022-04-22 20:25:49.139",
"logLevel": "ERROR",
"traceId": "05e6b233-1b52-d773-d061-3c74057655ea",
"accountId": "***********",
"status": "Failure",
"eventType": "GetThingShadow",
"protocol": "MQTT",
"deviceShadowName": "MyName",
"topicName": "$aws/things/MyName/shadow/name/AWSManagedGreengrassV2Deployment/get",
"details": "No shadow exists with name: 'MyName~AWSManagedGreengrassV2Deployment'"
}
第二个:
{
"timestamp": "2022-04-22 20:26:08.479",
"logLevel": "ERROR",
"accountId": "********",
"status": "Success",
"eventType": "UpdateJobExecution",
"protocol": "MQTT",
"clientId": "MyName",
"jobId": "d1a10592-7d03-4cc8-aeca-1a615dc562e0",
"topicName": "$aws/things/MyName/jobs/d1a10592-7d03-4cc8-aeca-1a615dc562e0/namespace-aws-gg-deployment/update",
"details": "The destination status is FAILED. The request status is SUCCESS."
}
什么可能导致这些问题?有人可以给我线索吗?
我找到了问题的答案。
事实上,我部署的组件与 Greengrass Core 的 运行 版本相比具有不同的 Java 版本。
希望对大家有所帮助。