【以下的问题经过翻译处理】 你好,
我按照这个指南做了一切准备https://docs.aws.amazon.com/greengrass/v2/developerguide/fleet-provisioning.html,但是执行时出现错误。
sudo -E java -Droot="/greengrass/v2" -Dlog.store=FILE \
-jar ./GreengrassInstaller/lib/Greengrass.jar \
--trusted-plugin ./GreengrassInstaller/aws.greengrass.FleetProvisioningByClaim.jar \
--init-config ./GreengrassInstaller/config.yaml \
--component-default-user ggc_user:ggc_group \
--setup-system-service true
结果,iot在$aws/events/presence/connected/4df1e0dd-c0ab-4fae-8642-f5c30中返回CLIENT ERROR,因此我检查了IP,发现是我的设备IP。
{
"clientId": "4df1e0dd-c0ab-4fae-8642-f5c307",
"timestamp": 1646954873555,
"eventType": "connected",
"sessionIdentifier": "da85a477-c309-4ed6-92e0-ccdf1fa",
"principalIdentifier": "de56ae093b3d75481acf40b3d30e38053ad2e8219fa925e8b9ecc",
"ipAddress": "",
"versionNumber": 0
}
{
"clientId": "4df1e0dd-c0ab-4fae-8642-f5c307",
"timestamp": 1646954873704,
"eventType": "disconnected",
"clientInitiatedDisconnect": false,
"sessionIdentifier": "da85a477-c309-4ed6-92e0-ccdf1fa",
"principalIdentifier": "de56ae093b3d75481acf40b3d30e38053ad2e8219fa925e8b9ecc",
"disconnectReason": "CLIENT_ERROR",
"versionNumber": 0
}
感谢您的帮助。