为什么我部署到AWS Greengrece Core部署后立即部署到AWS Greengrass Core的组件会立即失败?
我已经开发了一个组件,该组件订阅了我的Greengrass Core设备中的本地经纪人,并订阅了核心设备的设备阴影,并通过来自本地经纪人的数据对其进行更新。
一切都很好,它在部署之前对我有用,但是一旦部署它崩溃,在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."
}
可能导致这些问题?有人可以给我一个线索吗?
I have developed a component that subscribes to a local broker in my Greengrass core device and also subscribed to the device shadow of the core device and updates it with data coming from the local broker.
All good, it works for me locally before I deploy it but once deployed it crashes and in CloudWatch I can see the following errors:
{
"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'"
}
The second one:
{
"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."
}
What could cause these issues? Can somebody give me a clue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决问题的答案。
与Greengrass Core一起运行的组件相比,我部署的组件具有不同的Java版本。
我希望对某人有帮助。
I found an answer to my problem.
It was the fact that the component I deployed has a different Java version compared to the one that the Greengrass Core is running.
I hope that helps somebody.