Hi,
Took a look at the device’s filesystem. Filling up all available disk space is what is causing this issue. Balena and docker services need a small amount of space free in /var/lib to start up properly. Since there is absolutely no space, the docker engine fails to start saying: failed to start daemon: Unable to get the TempDir under /var/lib/docker: mkdir /var/lib/docker/tmp: no space left on device.
Without the docker engine, the balena stack cannot function, and hence you are not able to purge the device. The VPN (via which SSH works) doesn’t need to allocate any disk space and continues to work.
A solution I can think of is: you could ssh into the device and delete any data that your application has stored in /mnt/data. Once some space (say 10-15MB) is freed up, you could start the docker engine manually or just reboot the device. The device should come up properly and you should be able to use the purge option.
Another option is to clean-up /var/lib/docker manually but I think the above option is simpler.
This resolved my issue. I SSH’d into the Host OS and deleted files in the /mnt/data/docker/volumes/…/…, which then allowed me to reboot and then purge after the system came back online.