为什么我部署到AWS Greengrece Core部署后立即部署到AWS Greengrass Core的组件会立即失败?

发布于 2025-01-23 17:47:03 字数 1116 浏览 3 评论 0原文

我已经开发了一个组件,该组件订阅了我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想念有你 2025-01-30 17:47:03

我找到了解决问题的答案。

与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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文