cvat: Upgrading from 2.22.0 to 2.23.1 fails with broken assets.

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

  1. Created a backup following https://docs.cvat.ai/docs/administration/advanced/backup_guide/
  2. Updated from github from 2.22.0 to the latest being 2.23.0 following the postgres upgrade just in case described in https://docs.cvat.ai/docs/administration/advanced/upgrade_guide/

Images and video data are missing. Reverting to 2.22.0 and restoring from backup works fine.

Expected Behavior

I would expect to be able upgrade without loosing all the images/videos.

Possible Solution

No response

Context

No response

Environment

Local installation.
- Git was on `v2.22.0` tag as well as the `v2.23.1` tag.
- Ubuntu 24
- Updated from github from 2.22.0 to the latest being 2.23.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 20 (8 by maintainers)

Most upvoted comments

@ggozad try to clear the cache with docker exec cvat_redis_ondisk redis-cli -p 6666 flushall

I don’t think so, it should be handled correctly in the code. Unfortunately, I missed this point in the PR. In any case, it can be fixed either by clearing the cache, or it would work without any action in no more than 24 hours, after the cache item would have expired

I did verify on another mirror I had set up for testing that indeed after 24h the cache keys are expired and everything works fine.

@ggozad try to clear the cache with docker exec cvat_redis_ondisk redis-cli -p 6666 flushall

FYI, on K8s:

kubectl exec -it cvat-kvrocks-0 -- redis-cli -a 'cvat_kvrocks' -p 6666 flushall

is there any workaround in the event that clearing the redis cache (both in mem and on disk) does not help? I spun up a testing copy of our current environment and left it for 24 hours to no avail

should this be spun off as a separate issue?

Do you have a setup with a shared or otherwise mounted volume for images? If yes, ensure made this volume available for cvat_worker_chunks in docker-compose.override.yml as well: https://github.com/cvat-ai/cvat/pull/8812

PS: My issue posted above (https://github.com/cvat-ai/cvat/issues/8803#issuecomment-2529928535) was resolved after doing so AND flush redis cache.

@azhavoro this seems to resolve the issue! Thank you! Should it be perhaps part of the upgrade?

@ggozad Ok, looks like a slightly different problem. Should I therefore file a separate issue for my problem or will it suitable to handle both problems in this issue?

PS: The documentation currently does not mention the cvat_worker_chunks container within the share path section. I “discovered” this required configuration change by reading the pull request itself.

You are right, we definitely need to update the documentation.