Azure IoT Edge stuck restarting

If your Azure IoT Edge runtime is giving the status of:

IoT Edge Status: RESTARTING
ERROR: Runtime is restarting. Please retry later.

and is not allowing for any of the other commands and you have waited an appropriated amount of time, then try the following:

First stop the edgeAgent container in docker:

sudo docker stop edgeAgent

Then, run the setup script for the iotedgectl again:

sudo iotedgectl setup --connection-string "{device connection string}" --auto-cert-gen-force-no-passwords (make sure to use your parameters)

The edge run-time should restart appropriately.

Leave a Reply