Comments (2)
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.
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)
- Configuration file deviceupdate-agent.service is marked executable HOT 7
- Yocto Rpi3 Device is restarting again and again in a loop HOT 2
- Failed parse of JSON file in Rpi4 device HOT 6
- /usr/bin/adu-swupdate.sh never runs (swupdate:2 never used even when registered?) HOT 7
- The packages deployed through device update are not reflecting in the device hosted on ubuntu 22.04 HOT 2
- Ignore duplicate deployment workflow not working as expected HOT 5
- Device reporting new Contract Name & ContractId after device update and stays inProgress in ADU HOT 9
- A/B Update Erases ADU Configuration on Yocto Kirkstone Raspberry Pi 4 - 64 bit Example HOT 2
- A/B Update Fails on Yocto Kirkstone Raspberry Pi 4 - 64 bit Example do to invalid update image HOT 2
- Device update agent on bullseye 11 raspberry zero HOT 5
- pthread_mutex_unlock doesn't check whether arguments is NULL for windows, this may cause dos HOT 3
- DeviceManagementClient.GetDeviceModuleAsync does not return the ExtendedResultCode HOT 3
- Update status changes to "In Progress" sometime after "Succeeded". HOT 16
- AducIotAgent cannot find custom step handler HOT 7
- ADUC_Result_Install_RequiredReboot stills reboots immediately after HOT 4
- Seeking Documentation on Retry Behavior HOT 1
- Is_Installed Step runs multiple times in swupdatev2 handler HOT 3
- Registering extensions fails on arm32 due to bug in STRING_construct_sprintf() invocation
- Unable to use additional compatibility information HOT 10
- Inconsistent Deployment status for device HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iot-hub-device-update.