question

CaiazzoCiroDonato-2932 avatar image
0 Votes"
CaiazzoCiroDonato-2932 asked asergaz answered

Azure IoT Edge does not start containers

After rebooting a VM with Azure IoT Edge 1.2.1, it seems that the containers cannot start.
Seeing the iotedge system logs there are the following messages

 aziot-edged[1127]: 2021-08-25T05:15:01Z [WARN] - The daemon could not start up successfully: Could not retrieve device information
 aziot-edged[1127]: 2021-08-25T05:15:01Z [WARN] -         caused by: HTTP response error: [400 Bad Request] {"message":"device identity not found"}
 aziot-identityd[1165]: 2021-08-25T05:15:01Z [INFO] - <-- POST /identities/device?api-version=2020-09-01 {"content-type": "application/json", "host": "2f72756e2f617a696f742f6964656e74697479642e736f636b:0", "content-length": "16"}
 aziot-identityd[1165]: 2021-08-25T05:15:01Z [INFO] - !!! device identity not found
 aziot-identityd[1165]: 2021-08-25T05:15:01Z [INFO] - --> 400 {"content-type": "application/json"}
 aziot-edged[1127]: 2021-08-25T05:15:06Z [WARN] - Retrying getting edge device provisioning information.
 aziot-edged[1127]: 2021-08-25T05:15:06Z [INFO] - Obtaining edge device provisioning data...


Everything returns to working fine if the command iotedge config apply run manually.

Any idea to solve this issue?

azure-iot-hubazure-iot-edgeazure-iot
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI @CaiazzoCiroDonato-2932 ,
To help us troubleshoot, did you follow the quickstart and using the VM created based on ARM template here?

https://docs.microsoft.com/en-us/azure/iot-edge/quickstart-linux?view=iotedge-2020-11#deploy-the-iot-edge-device

128205-image.png

Thanks!

0 Votes 0 ·
image.png (29.4 KiB)

Hi @asergaz ,

the VM is not on Azure but it is hosted on a NAS with its own hypervisor.
The VM was created starting from a fresh installation of Ubuntu 18.04 server OS then it was installed docker (moby), IoT Edge, etc.

Another thing is that after each reboot there is a command that align the NTP in order to set the right time on the VM.

0 Votes 0 ·
asergaz avatar image asergaz CaiazzoCiroDonato-2932 ·

Hello @CaiazzoCiroDonato-2932 I can see that you already leveraged iotedge github repo for filing this issue. Let us continue the investigation there and update this thread when the answer is found.

https://github.com/Azure/iotedge/issues/5439

Thanks!

0 Votes 0 ·

1 Answer

asergaz avatar image
0 Votes"
asergaz answered

Hello @CaiazzoCiroDonato-2932 from the related issue on github this was the solution confirmed by you:

"on a fresh installation of IoT Edge 1.2.3. It seems that work."

Thank you!

Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.