I recently had a problem where my Home Assistant Raspberry Pi installation lost wifi connection, which I’ve had a few times and I put it down to a bad wifi adapter. So, given there was no way to get in to the system, I unplugged it and plugged it back in.
Then on power up home assistant would not start, although I could see my Pi device on the network. After being able to SSH to root and investigate the supervisor container - which was running - I could see there was an error “bind source path does not exist: /mnt/data/supervisor/cid_files/homeassistant.cid”, and the homeassistant container could not be started.
I could see that the file /mnt/data/supervisor/cid_files/homeassistant.cid did not exist on my host, which would be why the homeassistant container doesn’t start. But reviewing the supervisor manager.py source code, I see that this file should be created every time supervisor starts.
How is it possible that the .cid file could not be added?
For now I have manually created the file with touch and now my homeassistant starts up, but I’m worried this will occur again the future.
