1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
【以下的回答经过翻译处理】 你好,Subham。我按照教程操作成功了。你遇到的错误在这里发生:https://github.com/awslabs/aws-iot-device-client/blob/main/source/SharedCrtResourceManager.cpp#L135
if (!FileUtils::FileExists(logFilePath))
{
// Create an empty file with the expected permissions.
if (!FileUtils::CreateEmptyFileWithPermissions(logFilePath, S_IRUSR | S_IWUSR))
{
return false;
}
}
FileExists()返回false,但文件似乎确实存在。我认为FileExists()方法可能会遇到failbit、badbit或eofbit。
我认为你应该重新启动RPi,让它运行fsck。如果问题仍然存在,请删除日志并尝试再次运行:rm /var/log/aws-iot-device-client/sdk.log
您还可以在配置中将enable-sdk-logging
设置为false
,以彻底绕过此文件检查和创建。
Contenus pertinents
- demandé il y a 4 mois
- demandé il y a 9 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an