-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cant create task - CVAT served via cloudflare tunnels - Content Mismatch blocks uploads. #6917
Comments
Hi, sorry to bug but, does anyone have any advice for this? I can't upload any images to CVAT! I tried changing I set ╰─❯ docker exec -it cvat_server bash
django@d7a22a83b430:~$ env | grep CVAT
CVAT_HOST=cvat.xxxxxx.com
CVAT_REDIS_HOST=cvat_redis
CVAT_POSTGRES_HOST=cvat_db
CVAT_ANALYTICS=1
CVAT_BASE_URL=https://cvat.xxxxxx.com
django@d7a22a83b430:~$ |
Hi, sorry to bug again but can anyone give me some advice? Is there some source code I can change to configure the protocol for these requests? Any advice or guidance would be extremely appreciated. Thank you. |
Hi, I'm active in that issue thread and have already applied that fix to my cvat setup. I'm the guy who mentioned CVAT_HOST isn't in the docker-compose cvat_server environment config (should be last comment in that issue). This issue only happens on task image upload. Issue 6322 is in relation to the Django admin page and POST. |
The fix in #4843 works for me. I added CloudFlare IP ranges to traefik continer:
|
Should I leave this issue open? My issue is solved with the current solution but there is a mention of a newer fix proposal. I am unsure if I should close this issue or wait until a PR is proposed? |
This is very strange, I was able to create tasks and all of a sudden I am unable to create tasks. I get the
Logs from
I get the same thing when trying to import dataset as well. I am perplexed. Edit:
There is a
Both
|
The only thing that has changed is a did a |
I did have an issue where i am using cvat over a cloudflare tunnel, where a task page was reloading infinitely. I thought it was some problem with CORS as I saw that error come up in the Console of the web browser, but it was a red herring. Turns out the problem was that, I had grafted the task page into another organization when it was part of a separate project, and those tasks were bugged. I just needed to make a new task and then it works. |
My actions before raising this issue
I host CVAT using cloudflared. Cloudflare handles SSL termination and then proxies the request to CVAT over HTTP. I am unable to upload any images to tasks with this setup.
The workaround I am using for now is to setup CVAT locally and create tasks, then proxy it via cloudflared so people have access to annotate images.
Dev console output:
Steps to Reproduce (for bugs)
cvat.<mydomain>.com
docker-compose.yml
and addCVAT_HOST: ${CVAT_HOST:localhost-}
tocvat_server
environment
section.docker compose up -d
Expected Behaviour
I expect that the Task creation is successful. Maybe a way to control the protocol in the URL via an ENV var like CVAT_BASE_URL (As far as I can tell CVAT_BASE_URL doesnt do anything? search CVAT_BASE_URL in cvat repo)
Current Behaviour
Task fails to be created with output from dev tools.
Possible Solution
Allow control of the protocol for the task creation url param. Possibly CVAT_BASE_URL ?
Context
I am trying to upload images and create a tasks. As of now the workaround is to deploy CVAT locally, create tasks then take it all down just to recreate the containers so cloudflared can proxy.
Your Environment
Git hash commit (
git log -1
): ee1d421Docker version
docker version
(e.g. Docker 17.0.05): 24.0.5Are you using Docker Swarm or Kubernetes? docker
Operating System and version (e.g. Linux, Windows, MacOS): Debian 11.7 (Proxmox) - Linux
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
Logs from `cvat` container
The text was updated successfully, but these errors were encountered: