After deleting this 24GB file , the issue was resolved.
While this situation seems abnormal, I would like to know the reason behind it.
Additionally, if anyone knows how to prevent this issue from occurring again, I would appreciate your advice."
If you’re running Anthias on a device running Raspberry Pi OS Lite (which is essentially Debian) or Debian, you can SSH to the device and run the following:
docker system prune -f # Prefix `sudo` if you're having permission-related issues.
For reference, we also support cleaning up of Docker artifacts (uused containers and images, for instance) when the install/upgrade script is executed, but feel free to run the prune command whenever you need it.
I haven’t tested it yet, but it shouldn’t affect Anthias. For good measures, you can go to the web UI, click Settings, then click Get Backup, which you can recover later if data (assets and assets metadata) gets lost.
Thank you for your response. I tried the command, and it seems that some files were deleted. However, the files in /var/lib/docker/overlay2/ were not removed.
To delete the files in /var/lib/docker/overlay2/, do I need to stop docker, delete them with rm -rf, and then restart docker?
@nicomiguelino, thank you for your question. When I deleted the previous 24GB file, the assets and metadata were not removed, and there were no issues.
I’d like to delete everything under /var/lib/docker/overlay2/*, but I’m hesitant as I’m concerned about the potential impact.
To avoid any issues with Anthias, I feel it’s better to delete only when oversized files appear. However, I would like to delete everything under /var/lib/docker/overlay2/* if it’s safe, but I’m unsure.
I’m commenting here in case you might have some insights.
@nicomiguelino,Thank you.
It’s difficult to test because it’s a production environment, but I’ll try to do what I can. If you can confirm that deleting everything under /overlay2/ will not cause any issues, I would appreciate it if you could let me know.
TL;DR: Please don’t remove the entire /var/lib/docker/overlay2 directory.
I tried removing the overlay2/ directory just now. After that, I cannot restart the Docker containers successfully. I keep getting error messages that /var/lib/docker/overlay2/<hex_value> cannot be found. Removing it made my Pi 4 unusable.