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

Error in Create project from backup for Standard 3D Annotation #4105

Closed
3 tasks done
PWZING opened this issue Jan 4, 2022 · 1 comment · Fixed by #4160
Closed
3 tasks done

Error in Create project from backup for Standard 3D Annotation #4105

PWZING opened this issue Jan 4, 2022 · 1 comment · Fixed by #4160
Assignees
Labels
bug Something isn't working

Comments

@PWZING
Copy link

PWZING commented Jan 4, 2022

My actions before raising this issue

  • Read/searched the docs
  • Searched past issues
  • Tested create project from backup for a 2D Annotation project succesfull

I tried to backup and restore a project for a Standard 3D annotation mode and the import of the backup failed.
I was able to export the backup without any issues.

Expected Behaviour

The project should be proberly recreated from the backup

Current Behaviour

After selecting the zipped backup and load it, an error is raised:
Could not restore the project
Error: Request failed with status code 500. "Exception: Invalid manifest was uploaded\n".

Possible Solution

Steps to Reproduce (for bugs)

  1. Clone the repo and build the docker images from source from actual commit on develop branch (see commit hash bellow)
  2. Create a demo project (just on label at this moment)
  3. Create a new task for Standard 3D annotation with following demo sample structure (Task creation was succesfull and Pointcloud and context image are displayed correctly):
    data/
    im1/
    im.pcd
    imp.png
  4. Add a single demo annotation.
  5. Export Backup of the project
  6. Delete the original demo project
  7. Tried to import the backup to create the project again.
  8. The import failed with following error message in the UI:
    Could not restore the project
    Error: Request failed with status code 500. "Exception: Invalid manifest was uploaded\n".

Context

Try to test the backup process befor starting larger projects.

Your Environment

  • Git hash commit (git log -1):
    commit f915385 (HEAD -> develop, origin/develop, origin/HEAD)
    Author: AmitN1212 [email protected]
    Date: Fri Dec 31 07:08:00 2021 +0200

    Update documentation (Development Environment section) (#4082)
    
  • Docker version docker version (e.g. Docker 17.0.05):
    Docker version 20.10.11, build dea9396

  • Are you using Docker Swarm or Kubernetes?
    No

  • Operating System and version (e.g. Linux, Windows, MacOS):
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04.3 LTS
    Release: 20.04
    Codename: focal

  • Code example or link to GitHub repo or gist to reproduce problem:

  • Other diagnostic information / logs:

    Logs from `cvat` container

^[[36mcvat |^[[0m 2022-01-04 01:46:01,492 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m INFO - 2022-01-04 01:46:01,492 - worker - default: cvat.apps.engine.backup._import_project('/tmp/cvat_p7f_jegy', 2, 1) (User@/api/v1/projects/cfd57a53-9bab-4197-bf03-f27219c99a61/import)
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,492 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m DEBUG - 2022-01-04 01:46:01,492 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,501 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m DEBUG - 2022-01-04 01:46:01,501 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 90 seconds.
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,549 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m [2022-01-04 01:46:01,549] INFO cvat.server: create task #32
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,549 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m INFO - 2022-01-04 01:46:01,549 - task - create task #32
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,551 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m [2022-01-04 01:46:01,551] WARNING cvat.server: Skip 'index.json' file (its mime type doesn't correspond to supported MIME file type)
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,551 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m WARNING - 2022-01-04 01:46:01,551 - task - Skip 'index.json' file (its mime type doesn't correspond to supported MIME file type)
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,553 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m DEBUG - 2022-01-04 01:46:01,553 - worker - Handling failed execution of job user@/api/v1/projects/cfd57a53-9bab-4197-bf03-f27219c99a61/import
^[[36mcvat |^[[0m
^[[36mcvat |^[[0m 2022-01-04 01:46:01,555 DEBG 'rqworker_default_0' stderr output:
^[[36mcvat |^[[0m ERROR - 2022-01-04 01:46:01,555 - worker - Traceback (most recent call last):
^[[36mcvat |^[[0m File "/opt/venv/lib/python3.8/site-packages/rq/worker.py", line 936, in perform_job
^[[36mcvat |^[[0m rv = job.perform()
^[[36mcvat |^[[0m File "/opt/venv/lib/python3.8/site-packages/rq/job.py", line 684, in perform
^[[36mcvat |^[[0m self._result = self._execute()
^[[36mcvat |^[[0m File "/opt/venv/lib/python3.8/site-packages/rq/job.py", line 690, in _execute
^[[36mcvat |^[[0m return self.func(*self.args, **self.kwargs)
^[[36mcvat |^[[0m File "/usr/lib/python3.8/contextlib.py", line 75, in inner
^[[36mcvat |^[[0m return func(*args, **kwds)
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 652, in _import_project
^[[36mcvat |^[[0m db_project = project_importer.import_project()
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 644, in import_project
^[[36mcvat |^[[0m self._import_tasks()
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 634, in _import_tasks
^[[36mcvat |^[[0m TaskImporter(
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 527, in import_task
^[[36mcvat |^[[0m self._import_task()
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 510, in _import_task
^[[36mcvat |^[[0m _create_thread(self._db_task.pk, data.copy(), True)
^[[36mcvat |^[[0m File "/usr/lib/python3.8/contextlib.py", line 75, in inner
^[[36mcvat |^[[0m return func(*args, **kwds)
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/task.py", line 262, in _create_thread
^[[36mcvat |^[[0m manifest_file = _validate_manifest(manifest_files, manifest_root)
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/task.py", line 203, in _validate_manifest
^[[36mcvat |^[[0m raise Exception('Invalid manifest was uploaded')
^[[36mcvat |^[[0m Exception: Invalid manifest was uploaded
^[[36mcvat |^[[0m Traceback (most recent call last):
^[[36mcvat |^[[0m File "/opt/venv/lib/python3.8/site-packages/rq/worker.py", line 936, in perform_job
^[[36mcvat |^[[0m rv = job.perform()
^[[36mcvat |^[[0m File "/opt/venv/lib/python3.8/site-packages/rq/job.py", line 684, in perform
^[[36mcvat |^[[0m self._result = self._execute()
^[[36mcvat |^[[0m File "/opt/venv/lib/python3.8/site-packages/rq/job.py", line 690, in _execute
^[[36mcvat |^[[0m return self.func(*self.args, **self.kwargs)
^[[36mcvat |^[[0m File "/usr/lib/python3.8/contextlib.py", line 75, in inner
^[[36mcvat |^[[0m return func(*args, **kwds)
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 652, in _import_project
^[[36mcvat |^[[0m db_project = project_importer.import_project()
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 644, in import_project
^[[36mcvat |^[[0m self._import_tasks()
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 634, in _import_tasks
^[[36mcvat |^[[0m TaskImporter(
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 527, in import_task
^[[36mcvat |^[[0m self._import_task()
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/backup.py", line 510, in _import_task
^[[36mcvat |^[[0m _create_thread(self._db_task.pk, data.copy(), True)
^[[36mcvat |^[[0m File "/usr/lib/python3.8/contextlib.py", line 75, in inner
^[[36mcvat |^[[0m return func(*args, **kwds)
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/task.py", line 262, in _create_thread
^[[36mcvat |^[[0m manifest_file = _validate_manifest(manifest_files, manifest_root)
^[[36mcvat |^[[0m File "/home/django/cvat/apps/engine/task.py", line 203, in _validate_manifest
^[[36mcvat |^[[0m raise Exception('Invalid manifest was uploaded')
^[[36mcvat |^[[0m Exception: Invalid manifest was uploaded

Next steps

You may join our Gitter channel for community support.

@nmanovic
Copy link
Contributor

nmanovic commented Jan 4, 2022

@PWZING , thanks for the report. We will look at the issue.

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.

4 participants