Giter VIP home page Giter VIP logo

Comments (2)

jw-msft avatar jw-msft commented on July 30, 2024

Hi @GauravChoube,

The error from DO is: -1060110323, which is 0xC0D0000D in hex.

This is likely errno error 0xD = 13:
#define EACCES 13 /* Permission denied */

Verify do and adu user

I'm assuming do and adu users and groups exist, but do verify.

# $? should == 0 after each command
getent passwd 'do'
getent group 'do'
getent passwd 'adu'
getent group 'adu'

Troubleshoot and remediate ADU <-> DO related permissions:

do member of adu group

do user needs to be a member of adu group so that DO can write to the ADU download workFolder sandbox directory. Can verify with e.g.

grep ^do: /etc/group | cut -d: -f 4

If do is not in comma-delimited output, then do:

sudo usermod -aG 'adu' 'do'

adu member of do group

Also, adu group must be added to do group to allow ADU agent to set connection string on DO. Can verify with e.g.

grep ^do: /etc/group | cut -d: -f 4

if adu is not in comma-delimited output, then do:

sudo usermod -aG 'do' 'adu'

Restart do agent service

If you had to do above permission fixes, then restart deliveryoptimization-agent service to have do group take affect:

systemctl restart deliveryoptimization-agent

Restart deviceupdate agent service

and then restart ADU agent:

systemctl restart deviceupdate-agent

Did it resolve the issue?

I hope that works for you, but let us know if not.

Thanks,
Jeff

excerpt from the provided logs

Nov 29 17:52:21 raspberrypi AducIotAgent[2245]: 2021-11-29T17:52:16.9321Z [I] Caught DO exception, msg: unrecognized error, code: -1060110323 [Download]
Nov 29 17:52:21 raspberrypi AducIotAgent[2245]: 2021-11-29T17:52:16.9322Z [I] ProgressCallback: workflowId: 211129175145; Id f31c7ff503334d72a; State: Error; Bytes: 0/0 [DownloadProgressCallback]
Nov 29 17:52:21 raspberrypi AducIotAgent[2245]: 2021-11-29T17:52:16.9323Z [I] Download resultCode: 0, extendedCode: -791674867 [Download]

from iot-hub-device-update.

GauravChoube avatar GauravChoube commented on July 30, 2024

Hi @jw-msft
I already resolve the issue same yesterday and I have followed same solution that get to know problem with permission.
Thanks for reply.

Regards
Gaurav

from iot-hub-device-update.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.