# Azure IoT Edge stuck restarting

https://jaredrhodes.com/blog/azure-iot-edge-stuck-restarting/

## NOTE: This is for the private preview version of Azure IoT Edge

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

`IoT Edge Status: RESTARTING<br></br>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.
