cvat: CVAT fails health check using >90% disk
My actions before raising this issue
Clone latest develop.
docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
docker-compose up -d
Expected Behaviour
Startup and run application.
Current Behaviour
Computer runs very slowly as CVAT uses significant resources. When trying to login, the following occurs:
get http://10.0.253.33:9001/api/server/health/?format=json&org=
{"Cache backend: default": "working", "DatabaseBackend": "working", "DiskUsage": "warning: 86c1cd71866c 92.4% disk usage exceeds 90%", "MemoryUsage": "working", "MigrationsHealthCheck": "working"}
Server logs:
2022-12-12 04:54:32,063 DEBG 'runserver' stderr output:
[Mon Dec 12 04:54:32.063061 2022] [wsgi:error] [pid 178:tid 139765320791808] ERROR:health-check:warning: 35a75041c750 92.4% disk usage exceeds 90%
[Mon Dec 12 04:54:32.063076 2022] [wsgi:error] [pid 178:tid 139765320791808] Traceback (most recent call last):
[Mon Dec 12 04:54:32.063085 2022] [wsgi:error] [pid 178:tid 139765320791808] File "/opt/venv/lib/python3.8/site-packages/health_check/backends.py", line 30, in run_check
2022-12-12 04:54:32,063 DEBG 'runserver' stderr output:
[Mon Dec 12 04:54:32.063125 2022] [wsgi:error] [pid 178:tid 139765320791808] self.check_status()
2022-12-12 04:54:32,063 DEBG 'runserver' stderr output:
[Mon Dec 12 04:54:32.063420 2022] [wsgi:error] [pid 178:tid 139765320791808] File "/opt/venv/lib/python3.8/site-packages/health_check/contrib/psutil/backends.py", line 21, in check_status
[Mon Dec 12 04:54:32.063422 2022] [wsgi:error] [pid 178:tid 139765320791808] raise ServiceWarning(
[Mon Dec 12 04:54:32.063422 2022] [wsgi:error] [pid 178:tid 139765320791808] health_check.exceptions.ServiceWarning: warning: 35a75041c750 92.4% disk usage exceeds 90%
2022-12-12 04:54:32,082 DEBG 'runserver' stderr output:
[Mon Dec 12 04:54:32.082022 2022] [wsgi:error] [pid 178:tid 139767587452672] [remote 172.27.0.4:39110] [2022-12-12 04:54:32,081] ERROR django.request: Internal Server Error: /api/server/health/
[Mon Dec 12 04:54:32.082094 2022] [wsgi:error] [pid 178:tid 139767587452672] [remote 172.27.0.4:39110] ERROR:django.request:Internal Server Error: /api/server/health/
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 15 (5 by maintainers)
@harrystuart , you can adjust health check limits (https://github.com/revsys/django-health-check/blob/master/health_check/conf.py)
Please try to define in cvat/settings/base.py the following variable:
@harrystuart, @Harsturomai, @Ghaitharar, hi, could you please share and check the output of the following commands in the terminal:
@Ghaitharar, it can be related to video frame unpacking. If I understand correctly, you’re trying to export a task with images. In this case the video images will be saved on disk and then packed into an archive. If you’re exporting a task, please try to turn off the
Save imagesoption.In general, I see few ways to handle the problem:
Save imagescheckbox offuse chunksswitch during task creationrm: cannot remove 'data/*/*/export_cache/': No such file or directory, everything is OK)Are these settings somehow injectable without baking a new cvat docker image? I am “suffering” from the same issue, since my K8s nodes have little disk space, thus running into the limit preventing the webserver to start, even though cvat-backend-data volume is placed on another machine via nfs volume and has plenty space.
Unfortunately, no. I can suggest you to export the annotations without images, and then you can download images separately using SDK or CLI:
cvat-cli frames --quality original --outdir task_<N>_images <task_id>(modify the command to fit your case).