【问题标题】:How to permit access to my config.yaml file? (Raspbian, Azure IoT Edge)如何允许访问我的 config.yaml 文件? (Raspbian,Azure IoT Edge)
【发布时间】:2020-11-12 16:58:20
【问题描述】:

我一直在阅读 Azure IoT Edge 文档,以使用 Raspbian Stretch 将 Raspberry Pi 4 连接到 Azure 云。 IoT Edge 守护程序处于“活动(运行)”状态,但是当我运行“iotedge check”时出现以下错误:

pi@raspberrypi:~$iotedge check --verbose
Configuration checks
--------------------
x config.yaml is well-formed - Error
   Could not open file /etc/iotedge/config.yaml. You might need to run this command as a root.
       caused by: Permission denied (os error 13)

0 check(s) succeeded.
1 check(s) raised errors.

我对此相当陌生,因此可能犯了一个明显的错误,但在 google、Azure 或 Stack Overflow 上找不到任何适用的内容。任何帮助将不胜感激!

【问题讨论】:

    标签: azure raspberry-pi raspbian azure-iot-edge


    【解决方案1】:

    尝试运行命令,因为该命令需要权限才能打开文件:

    sudo iotedge check
    

    【讨论】:

    • 啊我误解了错误是什么,感谢您的帮助@kgalic!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-24
    • 1970-01-01
    • 2019-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多