Hello @António Sérgio Azevedo ,
I tried to execute it using the sudo command in Debian in a clean environment.
However, there is no change in the result of the first execution.
--- Execute Command
habe@debian:~$ sudo dpkg -i aziot-edge_1.2.3-1_debian10_amd64.deb aziot-identity-service_1.2.2-1_debian10_amd64.deb
Selecting previously unselected package aziot-edge.
(Reading database ... 26277 files and directories currently installed.)
Preparing to unpack aziot-edge_1.2.3-1_debian10_amd64.deb ...
Unpacking aziot-edge (1.2.3-1) ...
Selecting previously unselected package aziot-identity-service.
Preparing to unpack aziot-identity-service_1.2.2-1_debian10_amd64.deb ...
Unpacking aziot-identity-service (1.2.2-1) ...
Setting up aziot-identity-service (1.2.2-1) ...
Created symlink /etc/systemd/system/sockets.target.wants/aziot-certd.socket → /lib/systemd/system/aziot-certd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/aziot-identityd.socket → /lib/systemd/system/aziot-identityd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/aziot-keyd.socket → /lib/systemd/system/aziot-keyd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/aziot-tpmd.socket → /lib/systemd/system/aziot-tpmd.socket.
Setting up aziot-edge (1.2.3-1) ...
===============================================================================
Azure IoT Edge
IMPORTANT: Please configure the device with provisioning information.
Please create a new system configuration.
You can quickly configure the device for manual provisioning with
a connection string using:
sudo iotedge config mp --connection-string '...'
For other provisioning options, copy the template file
at /etc/aziot/config.toml.edge.template to /etc/aziot/config.toml,
update it with your device information, then apply the configuration to
the IoT Edge services with:
sudo iotedge config apply
===============================================================================
Created symlink /etc/systemd/system/sockets.target.wants/aziot-edged.mgmt.socket → /lib/systemd/system/aziot-edged.mgmt.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/aziot-edged.service → /lib/systemd/system/aziot-edged.service.
Created symlink /etc/systemd/system/sockets.target.wants/aziot-edged.workload.socket → /lib/systemd/system/aziot-edged.workload.socket.
habe@debian:~$ sudo iotedge config mp --force --connection-string '<CONNECTION_STRING>'
Azure IoT Edge has been configured successfully!
The configuration has been written to /etc/aziot/config.toml
To apply the new configuration to services, run:
sudo iotedge config apply -c '/etc/aziot/config.toml'
WARNING: This configuration is not suitable when using IoT Edge as a gateway.
habe@debian:~$ sudo iotedge config apply -c '/etc/aziot/config.toml'
Note: Symmetric key will be written to /var/secrets/aziot/keyd/device-id
Azure IoT Edge has been configured successfully!
Restarting service for configuration to take effect...
Stopping aziot-edged.service...Stopped!
Stopping aziot-identityd.service...Stopped!
Stopping aziot-keyd.service...Stopped!
Stopping aziot-certd.service...Stopped!
Stopping aziot-tpmd.service...Stopped!
Starting aziot-edged.mgmt.socket...Started!
Starting aziot-edged.workload.socket...Started!
Starting aziot-identityd.socket...Started!
Starting aziot-keyd.socket...Started!
Starting aziot-certd.socket...Started!
Starting aziot-tpmd.socket...Started!
Starting aziot-edged.service...Started!
Done.
habe@debian:~$ sudo iotedge system status
System services:
aziot-edged Running
aziot-identityd Ready
aziot-keyd Ready
aziot-certd Ready
aziot-tpmd Ready
Use 'iotedge system logs' to check for non-fatal errors.
Use 'iotedge check' to diagnose connectivity and configuration issues.
habe@debian:~$ sudo iotedge system logs
-- Journal begins at Fri 2021-09-03 16:29:25 JST, ends at Fri 2021-09-03 16:41:11 JST. --
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Starting Azure IoT Edge Module Runtime
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Version - 1.2.3
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Initializing the module runtime...
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Initializing module runtime...
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Using runtime network id azure-iot-edge
Sep 03 16:41:00 debian systemd[1]: Started Azure IoT Edge daemon.
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Successfully initialized module runtime
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Finished initializing the module runtime.
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [INFO] - Obtaining edge device provisioning data...
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [WARN] - The daemon could not start up successfully: Could not retrieve device information
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [WARN] - caused by: HTTP request error
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [WARN] - caused by: error trying to connect: Permission denied (os error 13)
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [WARN] - Requesting device reprovision.
Sep 03 16:41:00 debian aziot-edged[1165]: 2021-09-03T07:41:00Z [WARN] - The reprovisioning operation failed
Sep 03 16:41:05 debian aziot-edged[1165]: 2021-09-03T07:41:05Z [INFO] - Obtaining edge device provisioning data...
Sep 03 16:41:05 debian aziot-edged[1165]: 2021-09-03T07:41:05Z [WARN] - The daemon could not start up successfully: Could not retrieve device information
Sep 03 16:41:05 debian aziot-edged[1165]: 2021-09-03T07:41:05Z [WARN] - caused by: HTTP request error
Sep 03 16:41:05 debian aziot-edged[1165]: 2021-09-03T07:41:05Z [WARN] - caused by: error trying to connect: Permission denied (os error 13)
Sep 03 16:41:05 debian aziot-edged[1165]: 2021-09-03T07:41:05Z [WARN] - Requesting device reprovision.
Sep 03 16:41:05 debian aziot-edged[1165]: 2021-09-03T07:41:05Z [WARN] - The reprovisioning operation failed
Sep 03 16:41:10 debian aziot-edged[1165]: 2021-09-03T07:41:10Z [INFO] - Obtaining edge device provisioning data...
Sep 03 16:41:10 debian aziot-edged[1165]: 2021-09-03T07:41:10Z [WARN] - The daemon could not start up successfully: Could not retrieve device information
Sep 03 16:41:10 debian aziot-edged[1165]: 2021-09-03T07:41:10Z [WARN] - caused by: HTTP request error
Sep 03 16:41:10 debian aziot-edged[1165]: 2021-09-03T07:41:10Z [WARN] - caused by: error trying to connect: Permission denied (os error 13)
Sep 03 16:41:10 debian aziot-edged[1165]: 2021-09-03T07:41:10Z [WARN] - Requesting device reprovision.
Sep 03 16:41:10 debian aziot-edged[1165]: 2021-09-03T07:41:10Z [WARN] - The reprovisioning operation failed