Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data is not getting cleared, even after deleting the Task from Django Admin App #1925

Closed
2 tasks done
dev225reddys opened this issue Jul 22, 2020 · 3 comments · Fixed by #2179
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@dev225reddys
Copy link

dev225reddys commented Jul 22, 2020

My actions before raising this issue

Expected Behaviour

Data Related to the Specific Task should be cleared if Task is Deleted

Current Behaviour

Data from Docker Container "CVAT" /data/data and /data/tasks not getting Cleared even after deleting a task from Django Admin App.

Possible Solution

Delete the Task Specific Data from Container if Task itself is deleted

Steps to Reproduce (for bugs)

  1. Delete a Task from Django Admin App
  2. Data is still present in CVAT Container

Context

Deleting a Task is to Clear the Data, to save some space. In this Scenario, The Data is not being Cleared as i clear the Task.

Your Environment

  • Docker version docker version (e.g. Docker 17.0.05): Docker version 19.03.8, build afacb8b7f0
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 20.04 LTS
@azhavoro azhavoro self-assigned this Jul 22, 2020
@azhavoro azhavoro added the bug Something isn't working label Jul 22, 2020
@dmitryagapov dmitryagapov linked a pull request Sep 16, 2020 that will close this issue
8 tasks
@katab
Copy link

katab commented Nov 3, 2020

Hi, I experienced the same issue when deleting tasks from the Admin site. I understand that you will fix this in a coming release. However, how do I get rid of the data belonging to these tasks that have already been deleted via the Admin site? I have (successfully) deleted the data entries from engine_data and related tables, but the data is not deleted from the disk. Is this expected?
BR Katarina

@sonuranjitjacob
Copy link

Hi, I'm facing the same issue. On navigating to the cvat_cvat_data folder on my system, I can still see the job ids of the tasks I had already deleted as shown below and this takes up most of the space on my system as well.

root@user:/var/lib/docker/volumes/cvat_cvat_data/_data# sudo du -chd 1 | sort -h
4.0K	./models
48K  	./projects
324K	./cache
181M	./tasks
155G	.
155G	./data
155G	total


root@user:/var/lib/docker/volumes/cvat_cvat_data/_data/data# ls
100  102  104  106  108  115  117  119  121  123  44  46  48  50  52  72  74  76  78  80  82  84  86  88  90  92  94  96  98
101  103  105  107  113  116  118  120  122  43   45  47  49  51  71  73  75  77  79  81  83  85  87  89  91  93  95  97  99

@vroooomm
Copy link

try docker system prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants