db-sync icon indicating copy to clipboard operation
db-sync copied to clipboard

running DB sync with Docker can use all Linux Inodes

Open HugoP27 opened this issue 3 years ago • 1 comments

/var/lib/docker/overlay2/$long-string$/diff/tmp/dbsyc/.mergin/work-packages directory is not cleaned in docker container and can easily reach up to a million+ diff files which uses up inodes on Linux, so although I have, for example, 100GiB ssd space of which only 33% is used, I only have 3.7 million inodes of which 90% are used by mergin-db-sync docker containers which stops the Linux machine from working. a good fix would be to delete previous diff's when a new one is downloaded

HugoP27 avatar Sep 28 '21 12:09 HugoP27

It looks like the underlying issue is in mergin python client - https://github.com/lutraconsulting/mergin-py-client/issues/47 - and when used in mergin-db-sync for a longer time, the directory just grows and grows...

wonder-sk avatar Sep 28 '21 13:09 wonder-sk