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

Unsuccessful restoration of a TASK from the backup #9247

Open
2 tasks done
AnSMru opened this issue Mar 24, 2025 · 1 comment
Open
2 tasks done

Unsuccessful restoration of a TASK from the backup #9247

AnSMru opened this issue Mar 24, 2025 · 1 comment
Labels
bug Something isn't working need info Need more information to investigate the issue

Comments

@AnSMru
Copy link

AnSMru commented Mar 24, 2025

Actions before raising this issue

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

Steps to Reproduce

After every unsuccessful restoration of a TASK from the backup, raw images are created in the docker cvat_server/~/data/data/number_job.
How can this be avoided? And how to ensure that the directory is deleted after a failed restoration to prevent disk space clutter?
I had corrupted image files (broken ones) that were previously backed up in version 1.92. Now, when attempting restoration in 2.31.1, multiple attempts were made, and each attempt created its own job directory, copied files from the archive, but ultimately resulted in an error.

Import Backup
Started by admin on Mar 24th 25, 15:02
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Incorrect file mapping to manifest content', code='invalid')]

Expected Behavior

No response

Possible Solution

No response

Context

No response

Environment

@AnSMru AnSMru added the bug Something isn't working label Mar 24, 2025
@bsekachev
Copy link
Member

Hello,

All data are expected to be deleted in case of unsuccessful restore, it is enforced by django signals mechanism. When corresponding Task/Data model removed from the database, server should remove corresponding data from the filesystem (data/data/<data_id>, data/tasks/<task_id).

May you provide a minimal backup file, reproducing the issue?

@bsekachev bsekachev added the need info Need more information to investigate the issue label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need info Need more information to investigate the issue
Projects
None yet
Development

No branches or pull requests

2 participants