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

Connected file share folder doesn't work #3938

Closed
jstefanis opened this issue Nov 23, 2021 · 4 comments
Closed

Connected file share folder doesn't work #3938

jstefanis opened this issue Nov 23, 2021 · 4 comments
Labels
question Further information is requested

Comments

@jstefanis
Copy link

My actions before raising this issue

Problem mounting existing folders as connected

Expected Behaviour

Connected file share folder mounted and working as proposed to the documentation.

Current Behaviour

Hello newbie here. I installed cvat release 1.70 and also tried 1.6.0, but there is one serious problem.
I cannot access connected file share. I have followed the example of
the manual: https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/#share-path
and I created the file docker-compose.override.yml for binding an existing folder and also creating a volume and mounting it as external. Both volumes are not empty, but populated with image files. In both cases when I login into the container, using "docker exec" command, I can see the existing files I have in both volumes with success, but cvat refuses to display them into the tab. It still shows the message: "No Data
Please, be sure you had mounted share before you built CVAT and the shared storage contains files".
I have to say that I've checked the permissions of the folders and the files, and the owner is the superuser of cvat (default: "django"). I have also searched into the issues section in github but no solution until now.

Steps for reproduction:
I create the docker-compose.override.yml and start the container.

I invoke docker-compose for starting the container with the command:
docker-compose -f docker-compose.yml -f docker-compose.override.yml up

My docker- compose.override.yml file:

#docker-compose.override.yml
version: "3.3"
services:
cvat:
environment:
CVAT_SHARE_URL: "Here we share!"
volumes:

  • cvat_share:/home/django/my_shared_folder:ro # external
  • cvat_shared:/home/django/sharedfiles:ro # binded folder
    volumes:
    cvat_share:
    external: true
    cvat_shared:
    driver_opts:
    type: none
    device: /home/myuser/cvat_shared/
    o: bind

System Information:
My system is a Linux Mint 20.2 Cinnamon. My docker version is Community 20.10.4 . i don't use Docker Swarm.
My linux kernel is 5.11.0-40-generic.
The output of git log -1 is:
commit 2bb8643 (HEAD -> release-1.7.0, origin/release-1.7.0)

There is no error logs concerning volumes in cvat container. Docker mounts them correctly.

Possible Solution

Fix the bug or modify the documentation.

Next steps

You may join our Gitter channel for community support.

@nmanovic nmanovic added the question Further information is requested label Nov 23, 2021
@azhavoro
Copy link
Contributor

@jstefanis Hi, it looks like your configuration is wrong:

cvat_shared:/home/django/sharedfiles:ro

container path must be /home/django/share. If you want to mount 2 volumes try to use /home/django/share/my_shared_folder and /home/django/share/sharedfiles.

@jstefanis
Copy link
Author

Hello.
You are right. It finally worked!
The connected folders can be mounted under "/home/django/share/" to be available.
I think that it is not really clear in the documentation and a newbie could make mistakes.
Thank you for your time.

@KDD2018
Copy link

KDD2018 commented Feb 16, 2023

Hello, I have a same problem.

docker-compose.yml file:

`cvat_server:
container_name: cvat_server
image: cvat/server:${CVAT_VERSION:-dev}
restart: always
depends_on:
- cvat_redis
- cvat_db
- cvat_opa
environment:
DJANGO_MODWSGI_EXTRA_ARGS: ''
ALLOWED_HOSTS: '*'
CVAT_REDIS_HOST: 'cvat_redis'
CVAT_POSTGRES_HOST: 'cvat_db'
CVAT_SHARE_URL: ''
ADAPTIVE_AUTO_ANNOTATION: 'false'
IAM_OPA_BUNDLE: '1'
no_proxy: elasticsearch,kibana,logstash,nuclio,opa,${no_proxy:-}
NUMPROCS: 1
USE_ALLAUTH_SOCIAL_ACCOUNTS:
command: -c supervisord/server.conf
volumes:
- cvat_data:/home/django/data
- cvat_keys:/home/django/keys
- cvat_logs:/home/django/logs
- cvat_share:/home/django/share:ro

cvat_worker_import:
container_name: cvat_worker_import
image: cvat/server:${CVAT_VERSION:-dev}
restart: always
depends_on:
- cvat_redis
- cvat_db
environment:
CVAT_REDIS_HOST: 'cvat_redis'
CVAT_POSTGRES_HOST: 'cvat_db'
no_proxy: elasticsearch,kibana,logstash,nuclio,opa,${no_proxy:-}
NUMPROCS: 2
command: -c supervisord/worker.import.conf
volumes:
- cvat_data:/home/django/data
- cvat_keys:/home/django/keys
- cvat_logs:/home/django/logs
- cvat_share:/home/django/share:ro
networks:
- cvat

volumes:
cvat_db:
cvat_data:
cvat_keys:
cvat_logs:
cvat_share:
driver_opts:
type: none
device: /mnt/share
o: bind

`
It doesn't work and has no error, can you help me?

@Monlter
Copy link

Monlter commented Nov 7, 2024

Hello, I have a same problem.

docker-compose.override.yml file:
services:
cvat_server:
labels:
- traefik.http.routers.cvat.rule=(Host(10.10.10.114) &&
PathPrefix(/api/, /git/, /opencv/, /static/, /admin, /documentation/, /django-rq)
volumes:
- cvat_share:/home/django/share:ro
cvat_worker_import:
volumes:
- cvat_share:/home/django/share:ro
cvat_ui:
labels:
- traefik.http.routers.cvat-ui.rule=(Host(10.10.10.114)
traefik:
ports:
- 8019:8080
- 8090:8090
cvat_vector:
ports:
- '8282:80'

cvat_clickhouse:
ports:
- '8123:8123'

volumes:
cvat_share:
driver_opts:
type: none
device: /data/cvat
o: bind

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

5 participants