我正在尝试通过其JavaScript SDK配置一个AWS Greengrass组,并且将所有事情启动并运行到我进行部署的地方。问题在于部署似乎停留在“进行中”,没有cloudwatch日志可以帮助我。
我查看了核心设备,这就是我在/greengrass/ggc/var/logs/system/runtime.log
文件中看到的:
[2019-01-18T03:17:22.64Z][INFO]-Greengrass Root: /greengrass
[2019-01-18T03:17:22.64Z][INFO]-Greengrass Write Directory: /greengrass/ggc
[2019-01-18T03:17:22.64Z][INFO]-Group File Directory: /greengrass/ggc/deployment/group
[2019-01-18T03:17:22.64Z][INFO]-Default Lambda UID: 498 GID: 496
[2019-01-18T03:17:22.64Z][INFO]-===========================================
[2019-01-18T03:17:22.64Z][INFO]-The current core is using the AWS IoT certificates with fingerprint: 7591dcd10e96f86dd2d323d468b84b419b26280bbcfd3c0eee45c5a12c6d2dd7
[2019-01-18T03:17:22.641Z][WARN]-worker process info: /greengrass/ggc/packages/1.7.0/var/worker/processes
[2019-01-18T03:17:22.641Z][WARN]-worker process info: /greengrass/ggc/packages/1.7.0/var/worker/processes
[2019-01-18T03:17:22.641Z][INFO]-Reloading registry
[2019-01-18T03:17:22.642Z][INFO]-The current core is using the AWS IoT certificates with fingerprint: 7591dcd10e96f86dd2d323d468b84b419b26280bbcfd3c0eee45c5a12c6d2dd7
我已经检查过,并且能够使用OpenSSL和我拥有的证书成功命中ATS端点。我正在使用Greengrass教程RSA 2048位密钥中的Amazon推荐的证书:Amazon Root CA 1。
从这里可以找到哪些诊断步骤或线索?
答案 0 :(得分:1)
我以前遇到过这个问题。我相信这只是内部配置因不良部署而受到影响的错误。
我强行挂起部署的方法是创建一个新核心,然后将工作组中的已知工作lamdbas添加到新核心,杀死并重新启动核心设备上的守护进程,然后重新部署。
答案 1 :(得分:0)
So for me, I had 2 things misconfigured which prevented successful deployment
The deployment was stuck "in progress" because the permissions in the policy and role that were attached needed lambda permissions to deploy. Once I did this, the deployment went from "in progress" to "failed deployment" which brought me to the second mistake.
The EC2 instance which was hosting the core software somehow didn't run the setup shell script correctly (probably didn't run it as sudo) and my cgroups were not fully setup for memory (not sure what this means but you need it setup)
Thank you Steve B for the help!
答案 2 :(得分:0)
我已经多次遇到提及问题。就我而言,问题始终与互联网连接有关。
要检查您的系统,请在开始部署过程之前,订阅#(通配符)以侦听所有主题并检查与部署有关的消息。如果看不到任何传入消息,则说明存在网络连接问题。
然后,您可以运行安装了greengrass核心的命令ping greengrass-ats.iot.region.amazonaws.com
来调查问题。如果一切正常,则可以重新开始部署。但是,如果您发现丢失的软件包,则应调查导致网络问题的主要问题。