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

Could not check authorization on the server / Could not login on the server (Azure VM) #1249

Closed
KevinSchwarzer opened this issue Mar 11, 2020 · 2 comments

Comments

@KevinSchwarzer
Copy link

Hi, I am trying to set up CVAT on a VM on Azure. I followed the Installation Guide and the AWS-Deployment Guide. My docker-compose.override.yml file has the following in it

version: "2.3"

services:
  cvat:
    environment:
      ALLOWED_HOSTS: "*"
      UI_SCHEME: http
      UI_HOST: <public_ip>
      UI_PORT: 80
    ports:
      - "7080:8080"
  
  cvat_ui:
    build:
      args:
        REACT_APP_API_PROTOCOL: http
        REACT_APP_API_HOST: <public_ip>
        REACT_APP_API_PORT: 7080
    ports:
      - "80:80"

I am able to build with docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d --build, but get a warning saying

[Warning] One or more build-args [REACT_APP_API_PROTOCOL REACT_APP_API_HOST REACT_APP_API_PORT] were not consumed

However, I can connect to my VM on Azure either through <public_ip>:7080 or <public_ip>:80. I see the login page but get an error and cannot log into the superuser. See the image below.

loginpage_error

For reference, I am on the commit 7050ad4 and have opened the following ports on my VM on Azure

azure_inboundportrules

I appreciate any help. Thanks 👋

@azhavoro
Copy link
Contributor

Hi,
oh, I just noticed that AWS installation guide need update... Recently we added cvat_proxy container which simplifies the configuration of CVAT #1177. You need expose only 1 port for the cvat_proxy service (default is 8080) and change CVAT_HOST env variable. Could you please adjust your settings?

@KevinSchwarzer
Copy link
Author

That worked! Thank you very much. 🙏
I tried that already but hadn't exposed the 8080 port, hence it didn't work.

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