Azure device update agent unable to connect from device

Simran Singh 61 Reputation points
2022-10-10T05:24:23.45+00:00

Hello,

I'm trying to add the device update agent on my ubuntu 18.04 VM, following the provided reference (https://learn.microsoft.com/en-us/azure/iot-hub-device-update/device-update-ubuntu-agent#manually-prepare-a-device).

I got everything to the point where I need to start the daemon. The device update agent is unable to start on device with the error; Cannot read configuration file: /etc/adu/du-config.json

File(/etc/adu/du-config.json) looks like this:

248863-screenshot-412.png

<Connection String> is obviously the primary connection String from my IoT Hub Device.

Here are the error logs from device update agent service on my ubuntu VM device when I am starting the device update agent service:-

248818-screenshot-411.png

*Please note,
--> My device is already connected to IOT Hub as an edge device.
--> Device optimization service is up and running on my system.
--> Connection string is replaced in file.
--> The edgeAgent and edgeHub are in running state.

248828-screenshot-410.png

Please let me know the possible solutions. Also if any other information needed.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
385 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,136 questions
{count} vote

Accepted answer
  1. chbeier 1,866 Reputation points
    2022-10-10T07:37:45.793+00:00

    Good morning @Simran Singh ,

    You mentioned that you replaced the connection string in the config. Did you also set manufacturer, model, and name to get a valid /etc/adu/du-config.json? You might load the resulting JSON config to vs code to check the syntax. Unfortunately, in my eyes the documentation is not perfectly accurate in step 3.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful