1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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
,以彻底绕过此文件检查和创建。
관련 콘텐츠
- 질문됨 2일 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 일 년 전