Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IoTEdge daemon/edgeAgent hit issues from bootup (an error occurred trying to connect: Permission denied (os error 13)) #2395

Closed
Devinwong opened this issue Jan 15, 2020 · 3 comments

Comments

@Devinwong
Copy link

We are working on enabling IoTEdge on Embedded Linux with Ambarella Computer Vision chipset.
Now Moby and IoTEdge daemon are installed But it seems daemon/edgeAgent hit some issues.
Could you help to take a look?

  1. IoTEdgeD brought up by OS service from bootup
    Hit this error.
    an error occurred trying to connect: Permission denied (os error 13)
    Please see attached journallog.iotedge

  2. Iotedge check.
    Everything looks good except EdgeHub.
    Please see iotedge.check.log

  3. Manually run iotedged -c /etc/iotedge/config.yaml.
    Saw this as info. <6>2019-12-23T03:45:58Z [INFO] - Edge runtime status is failed, starting module now...
    Please see iotedged.log.

logs with IoTEdge_1.0.8-1.zip

We are using the following packages.
https://github.com/Azure/azure-iotedge/releases/download/1.0.8/libiothsm-std_1.0.8-2_arm64.deb
https://github.com/Azure/azure-iotedge/releases/download/1.0.8/iotedge_1.0.8-1_arm64.deb
It doesn’t have any package management tool on that embedded linux distribution.
So we put the files to corresponding locations manually.

@veyalla veyalla transferred this issue from Azure/azure-iotedge Jan 28, 2020
@darobs
Copy link
Contributor

darobs commented Jan 28, 2020

Hello @Devinwong,

This is the most likely problem:

× config.yaml has correct URIs for daemon mgmt endpoint - Error
Error: could not execute list-modules request: an error occurred trying to connect: Connection refused (os error 111)
caused by: docker returned exit code: 1, stderr = Error: could not execute list-modules request: an error occurred trying to connect: Connection refused (os error 111)

The first thing to check would be check if the iotedged daemon is running as a specific user (typically iotedge), and make sure that user has access to Docker. We do that in the Debian package by adding iotedge to the docker group.

Some of the additional work that the packaging does is here: edgelet/contrib/debian/preinst

@Devinwong
Copy link
Author

Thanks David. will try it out and get back to you.

@Devinwong
Copy link
Author

Reviewed the iotedge user/group permission but still saw the error.
Finally changing the permission of config.yaml to 777 did the trick.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants