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

Cannot export or backup task - shared_path in Windows #5840

Closed
2 tasks done
arman258 opened this issue Mar 10, 2023 · 2 comments
Closed
2 tasks done

Cannot export or backup task - shared_path in Windows #5840

arman258 opened this issue Mar 10, 2023 · 2 comments

Comments

@arman258
Copy link

arman258 commented Mar 10, 2023

My actions before raising this issue

Steps to Reproduce (for bugs)

  1. Mount the shared path using how to mount a share path for the big dataset in windows os. #1472 (comment)
    docker volume create --name cvat_cvat_share --opt type=none --opt device=C:\Users\Arman\Downloads\Compressed --opt o=bind
  2. Import the images, create a task, and start annotating
  3. Export or backup task with images included gives the error:
    Error: Request failed with status code 500. "datumaro.components.errors.ItemExportError: Failed to export item ('spk_airport/RW12/221020_134008_012_FH_frame_2361', 'default')\n".

Expected Behaviour

Although the images are loaded correctly, when exporting, CVAT is looking in '/home/django/share/[image_path]'\n". which is not the correct directory C:\Users\Arman\Downloads\Compressed[image_path]

Your Environment

@arman258
Copy link
Author

arman258 commented Mar 11, 2023

Okay, I figured it out.

For anyone on Windows, use #1472 and make sure to use PowerShell when entering the windows path, e.g.,
docker volume create --name cvat_cvat_share --opt type=none --opt device=dir_path --opt o=bind

Create your docker-compose.override.yml as:

services:
  cvat_server:
    volumes:
      - cvat_share:/home/django/share:ro
  cvat_worker_import:
    volumes:
      - cvat_share:/home/django/share:ro
  cvat_worker_export:
    volumes:
      - cvat_share:/home/django/share:ro

volumes:
  cvat_share:

Adding the cvat_worker_export did the trick.

@bsekachev
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants