Temporary Export Files Not Deleted Automatically, Leading to Storage Issues
Describe the bug I have been using Label Studio for almost a year for image annotation (object detection, segmentation, etc.). Recently, my remote server has been running out of storage space. Upon investigation, I found that temporary files were not being deleted automatically. This issue seems related to Docker itself.
After running the Label Studio container, I noticed that the directory /var/lib/docker/overlay2/2cba2b496509f78e63274c6b9bcff18eb43c0fbe55c06ecfc684a1f883902aa3/merged/tmp (associated with the Label Studio container layer) contained thousands of zipped files introduced after each export, which were supposed to be deleted automatically.
To Reproduce
- Run Label Studio using the following command:
docker run -d -it -e LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true -p 8080:8080 -v $(pwd)/mydata:/label-studio/data heartexlabs/label-studio:latest - Export any project.
- Observe that the exported images are saved in the mentioned location as zipped files, which are not deleted automatically.
Expected behavior Temporary files created during the export process should be deleted automatically to prevent storage issues.
Screenshots
Environment (please complete the following information):
- OS: Ubuntu 22.04
- Label Studio Version: latest
Hi @MosbehBarhoumi - we've made some changes in this area relatively recently: https://github.com/HumanSignal/label-studio/pull/5612 - it is possible that a bug could have been introduced. We'll investigate!