Azure IoT Edge Error Unable to process module add or update as the module identity could not be obtained
Hi,
I'm facing a problem since 2 weeks.
Sometime when I want to deploy a new version of a module on the IoT Edge device I have this message in the IoT EdgeAgent logs
"Unable to process module devicemonitor add or update as the module identity could not be obtained" .
Sometimes I have the same problem with the others modules (5 modules ), sometimes all at the same time.
the systemctl restart ioetdge on the device fixes the pb but when I want to deploy a new version, same error.
After restart the edgeAgent logs
Scraping frequency: 01:00:00
Upload Frequency: 1.00:00:00
<6> 2021-06-28 15:56:34.039 +00:00 [INF] - Registering request handler UploadModuleLogs
<6> 2021-06-28 15:56:34.040 +00:00 [INF] - Registering request handler GetModuleLogs
<6> 2021-06-28 15:56:34.041 +00:00 [INF] - Registering request handler UploadSupportBundle
<6> 2021-06-28 15:56:34.042 +00:00 [INF] - Registering request handler RestartModule
<4> 2021-06-28 15:56:40.074 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead
<6> 2021-06-28 15:56:40.179 +00:00 [INF] - Obtained edge agent config from backup config file - /tmp/edgeAgent/backup.json
<6> 2021-06-28 15:56:41.575 +00:00 [INF] - Edge agent connected to IoT Hub via Amqp_Tcp_Only.
<6> 2021-06-28 15:56:41.954 +00:00 [INF] - Initialized new module client with subscriptions enabled
<6> 2021-06-28 15:56:42.120 +00:00 [INF] - Obtained Edge agent twin from IoTHub with desired properties version 42 and reported properties version 358.
<6> 2021-06-28 15:56:49.622 +00:00 [INF] - Plan execution started for deployment 42
<6> 2021-06-28 15:56:49.637 +00:00 [INF] - Executing command: "Saving devicemonitor to store"
<6> 2021-06-28 15:56:49.813 +00:00 [INF] - Executing command: "Command Group: (\n [Command Group: (\n [Prepare update module devicemonitor]\n [Stop module devicemonitor]\n [Update module devicemonitor]\n)]\n [Start module devicemonitor]\n)"
<6> 2021-06-28 15:56:49.821 +00:00 [INF] - Executing command: "Command Group: (\n [Prepare update module devicemonitor]\n [Stop module devicemonitor]\n [Update module devicemonitor]\n)"
<6> 2021-06-28 15:59:13.549 +00:00 [INF] - Executing command: "Start module devicemonitor"
<6> 2021-06-28 15:59:14.907 +00:00 [INF] - Executing command: "Command Group: (\n [Stop module edgeHub]\n [Start module edgeHub]\n [Saving edgeHub to store]\n
My devices are based on raspberry os and connected to IoT Central
Any idea ?
Thanks;