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

Unable to mount share file #6924

Closed
Q-Tran opened this issue Sep 28, 2023 · 2 comments
Closed

Unable to mount share file #6924

Q-Tran opened this issue Sep 28, 2023 · 2 comments
Labels
question Further information is requested

Comments

@Q-Tran
Copy link

Q-Tran commented Sep 28, 2023

My actions before raising this issue

[√] Read/searched [the docs](https://github.com/cvat-ai/cvat/tree/master#documentation)
[√] Searched [past issues](https://github.com/issues)

Expected Behaviour

mount local volume to cvat_share
Current Behaviour

I followed the tutorial to create the override file at "https://opencv.github.io/cvat/docs/administration/basics/installation/#share-path". However, when running I seem to still getting the following error:

Error response from daemon: failed to mount local volume: mount /mnt/share:/var/lib/docker/volumes/cvat_cvat_share/_data, flags: 0x1000: no such file or directory.

I'm not really sure why the file still shows /mnt/share as the path is neither in the original yml or override yml file. I have edited the override yml file to be invalid and it will throw me an error, so the override file is being processed, but somehow it isn't reading the right mount volume. Any ideas on why or how to fix this?

Here is my docker-compose.override.yml file and it is in the cvat folder with docker-compose.yml file.

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
  cvat_worker_annotation:
    volumes:
      - cvat_share:/home/django/share:ro

volumes:
    cvat_share:
        driver_opts:
            type: none
            device: /f/Videos/share
            o: bind
@Q-Tran
Copy link
Author

Q-Tran commented Sep 28, 2023

For now I created a symlink between the device file and /mnt/share, but a real solution would be nice.

@azhavoro
Copy link
Contributor

azhavoro commented Oct 3, 2023

You must first delete the created volume using the docker volume rm cvat_cvat_share. Docker compose doesn't recreate the volume when the bind path is changed.

@azhavoro azhavoro added the question Further information is requested label Oct 3, 2023
@Q-Tran Q-Tran closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants