1 回答
- 最新
- 投票最多
- 评论最多
1
Hi. It's a permission issue. Assuming you are running Device Client as user pi, it doesn't have permissions to create the /var/log/aws-iot-device-client
directory. (If you accepted the default configuration, that's where the log file will go.)
I have Device Client running on an RPi4. I can't remember if I took a few steps not documented in that tutorial. However, if you run the following commands, I think you will be able to progress (assuming you are user pi):
sudo mkdir /var/log/aws-iot-device-client
sudo chmod 745 /var/log/aws-iot-device-client
sudo chown pi:pi /var/log/aws-iot-device-client
That will create the directory and make pi the owner. The 745 is as documented here: https://github.com/awslabs/aws-iot-device-client/blob/main/docs/PERMISSIONS.md
Then Device Client will be able to write logs there if you run Device Client as user pi.
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
Hi Greg, Thanks for your answer, it worked!