Failed to set DO connection string in Nested Edge scenario while starting device update agent

77 Views Asked by At

I've installed azure identity service on my Ubuntu 18.04 and pasted primary connection string on config.toml. After that I've installed azure device update agent (cloned repo and followed this: https://github.com/Azure/iot-hub-device-update/blob/main/docs/agent-reference/how-to-build-agent-code.md) and configured in du-config.json connection type as AIS and cleaned connection string data.

Now, once trying to start device update agent, I get this message:

[E] Failed to set DO connection string in Nested Edge scenario, result: 0x00000000 [StartupAgent]
[I] Agent exited with code 1 [main]
[I] Agent is shutting down with signal 0. [ShutdownAgent]
[I] De-initializing command listener thread [UninitializeCommandListenerThread]
[I] ADUC agent stopping [AzureDeviceUpdateCoreInterface_Destroy]
[I] Calling ADUC_Unregister [ADUC_MethodCall_Unregister]

followed by:

deviceupdate-agent.service: Main process exited, code=exited, status=1/FAILURE

This page: https://github.com/Azure/iot-hub-device-update/issues/209 says that a dependency (do-client) is not creating the directory "/etc/deliveryoptimization-agent" after it's installation (I've installed dependences by: ./scripts/install-deps.sh -a), so I tried creating that dir by my own:

sudo mkdir /etc/deliveryoptimization-agent
sudo chgrp -R do /etc/deliveryoptimization-agent
sudo chown do:do /etc/deliveryoptimization-agent
sudo chmod 0750 /etc/deliveryoptimization-agent

But even so I still get the same error. Unfortunately there is no other clue on which is the issue.

Can somebody help me with this?

0

There are 0 best solutions below