Hi,
I'm using iotghub for our iot running on Ubuntu linux machine. This is the second time that after an abrupt power cut, the iotedge completely fails on boot, while complaining about some issue with read-only file system (see logs below). I have tried several options but nothing helped. Eventually only after completely removing and reinstalling the iotedge I could get the system back to life.
Anyone experienced the same? Any suggestions?
sudo apt-get autoremove --purge aziot-edge
and then
sudo apt-get update; sudo apt-get install aziot-edge defender-iot-micro-agent-edge
Logs:
$ sudo iotedge system logs -- -f
-- Logs begin at Tue 2023-02-28 02:37:19 UTC. --
May 10 05:34:36 aziot-edged[2779421]: 2023-05-10T05:34:36Z [WARN] - container runtime error
May 10 05:34:36 aziot-edged[2779421]: Caused by:
May 10 05:34:36 aziot-edged[2779421]: HTTP 500 Internal Server Error: error while creating mount source path '/var/lib/aziot/edged/mnt/edgeAgent.sock': mkdir /var/lib/aziot: read-only file system
May 10 05:34:36 aziot-edged[2779421]: 2023-05-10T05:34:36Z [WARN] - Error in watchdog: Failed to start Edge runtime: runtime operation error: start module "edgeAgent"
May 10 05:35:31 aziot-edged[2779421]: 2023-05-10T05:35:31Z [INFO] - Watchdog checking Edge runtime status
May 10 05:35:31 aziot-edged[2779421]: 2023-05-10T05:35:31Z [INFO] - Edge runtime status is stopped, starting module now...
May 10 05:35:31 aziot-edged[2779421]: 2023-05-10T05:35:31Z [INFO] - Starting module edgeAgent...
May 10 05:35:31 aziot-edged[2779421]: 2023-05-10T05:35:31Z [INFO] - Starting new listener for module edgeAgent
May 10 05:35:31 aziot-edged[2779421]: 2023-05-10T05:35:31Z [INFO] - Starting workload API...
May 10 05:35:31 aziot-edged[2779421]: 2023-05-10T05:35:31Z [INFO] - Workload API stopped
May 10 05:35:48 aziot-edged[2779421]: 2023-05-10T05:35:48Z [WARN] - container runtime error
May 10 05:35:48 aziot-edged[2779421]: Caused by:
May 10 05:35:48 aziot-edged[2779421]: HTTP 500 Internal Server Error: error while creating mount source path '/var/lib/aziot/edged/mnt/edgeAgent.sock': mkdir /var/lib/aziot: read-only file system
May 10 05:35:48 aziot-edged[2779421]: 2023-05-10T05:35:48Z [WARN] - Error in watchdog: Failed to start Edge runtime: runtime operation error: start module "edgeAgent"
^
Thanks,
Pavel