cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.27k stars 2.95k forks source link

Not able to host on public domain #8417

Closed CheeseNG523 closed 1 week ago

CheeseNG523 commented 1 week ago

Actions before raising this issue

Steps to Reproduce

I try to install on Window 10 with Ubuntu 22.04.3 LTS and Docker Desktop v4.33.1.

  1. Docker: WSL Integration Enabled
  2. Change disk image location to second hard drive and restart docker.
  3. Follow the guideline on Installation Guideline
  4. export CVAT_HOST=localhost
  5. sudo -E docker-compose up -d
  6. Visit localhost:8080, the page is accessible.
  7. sudo -E docker-compose down
  8. export CVAT_HOST=mydomain.ddns.net
  9. sudo -E docker-compose up -d
  10. Visit mydomain.ddns.net:8080, the page showing the site is not reachable.

Below is the logs and other info: sudo docker exec -t cvat_server python manage.py health_check

Cache backend: default   ... working
Cache backend: media     ... working
DatabaseBackend          ... working
DiskUsage                ... working
MemoryUsage              ... working
OPAHealthCheck           ... working

sudo docker ps

CONTAINER ID   IMAGE                                       COMMAND                  CREATED         STATUS                   PORTS                                                    NAMES
8788af2579d4   cvat/ui:dev                                 "/docker-entrypoint.…"   3 minutes ago   Up 2 minutes             80/tcp                                                   cvat_ui
f74ba0a9e508   timberio/vector:0.26.0-alpine               "/usr/local/bin/vect…"   3 minutes ago   Up 2 minutes                                                                      cvat_vector
b7b2ec63c032   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_worker_export
2748cbfa8895   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_utils
535fc213dc98   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_worker_annotation
739bda5cf912   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_worker_webhooks
c839e71e9971   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_worker_import
675cb3101a5a   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_worker_quality_reports
fc4d15207e18   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_server
6dc599053980   cvat/server:dev                             "./backend_entrypoin…"   3 minutes ago   Up 2 minutes             8080/tcp                                                 cvat_worker_analytics_reports
a549bd0afa5c   clickhouse/clickhouse-server:23.11-alpine   "/entrypoint.sh"         3 minutes ago   Up 3 minutes             8123/tcp, 9000/tcp, 9009/tcp                             cvat_clickhouse
9f3035e4c865   redis:7.2.3-alpine                          "docker-entrypoint.s…"   3 minutes ago   Up 3 minutes             6379/tcp                                                 cvat_redis_inmem
ff00e2dd232d   postgres:15-alpine                          "docker-entrypoint.s…"   3 minutes ago   Up 3 minutes             5432/tcp                                                 cvat_db
e3146d98dffd   grafana/grafana-oss:10.1.2                  "sh -euc 'mkdir -p /…"   3 minutes ago   Up 3 minutes             3000/tcp                                                 cvat_grafana
015b7a82c28f   apache/kvrocks:2.7.0                        "kvrocks -c /var/lib…"   3 minutes ago   Up 3 minutes (healthy)   6666/tcp                                                 cvat_redis_ondisk
cc5bda22a3c1   openpolicyagent/opa:0.63.0                  "/opa run --server -…"   3 minutes ago   Up 3 minutes                                                                      cvat_opa
e9c6cc16ce7f   traefik:v2.10                               "/entrypoint.sh trae…"   3 minutes ago   Up 3 minutes             0.0.0.0:8080->8080/tcp, 80/tcp, 0.0.0.0:8090->8090/tcp   traefik

sudo docker logs cvat_db

2024-09-09 14:46:32 
2024-09-09 14:46:32 PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-09-09 14:46:32 
2024-09-09 14:46:32 2024-09-09 06:46:32.676 UTC [1] LOG:  starting PostgreSQL 15.8 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
2024-09-09 14:46:32 2024-09-09 06:46:32.676 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-09-09 14:46:32 2024-09-09 06:46:32.676 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-09-09 14:46:33 2024-09-09 06:46:33.195 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-09-09 14:46:33 2024-09-09 06:46:33.709 UTC [29] LOG:  database system was shut down at 2024-09-09 06:46:01 UTC
2024-09-09 14:46:34 2024-09-09 06:46:34.105 UTC [1] LOG:  database system is ready to accept connections
2024-09-09 14:46:39 2024-09-09 06:46:39.922 UTC [33] LOG:  incomplete startup packet
2024-09-09 14:46:40 2024-09-09 06:46:40.392 UTC [34] LOG:  incomplete startup packet
2024-09-09 14:46:45 2024-09-09 06:46:45.559 UTC [37] LOG:  incomplete startup packet
2024-09-09 14:46:45 2024-09-09 06:46:45.755 UTC [38] LOG:  incomplete startup packet
2024-09-09 14:46:45 2024-09-09 06:46:45.756 UTC [39] LOG:  incomplete startup packet
2024-09-09 14:46:45 2024-09-09 06:46:45.877 UTC [40] LOG:  incomplete startup packet
2024-09-09 14:46:46 2024-09-09 06:46:46.819 UTC [41] LOG:  incomplete startup packet
2024-09-09 14:46:47 2024-09-09 06:46:47.350 UTC [42] LOG:  incomplete startup packet
2024-09-09 14:46:48 2024-09-09 06:46:48.584 UTC [43] LOG:  incomplete startup packet
2024-09-09 14:46:48 2024-09-09 06:46:48.809 UTC [44] LOG:  incomplete startup packet
2024-09-09 14:46:49 2024-09-09 06:46:49.221 UTC [45] LOG:  incomplete startup packet
2024-09-09 14:46:51 2024-09-09 06:46:51.763 UTC [49] LOG:  incomplete startup packet
2024-09-09 14:46:51 2024-09-09 06:46:51.764 UTC [50] LOG:  incomplete startup packet
2024-09-09 14:46:52 2024-09-09 06:46:52.781 UTC [53] LOG:  incomplete startup packet
2024-09-09 14:46:52 2024-09-09 06:46:52.784 UTC [54] LOG:  incomplete startup packet
2024-09-09 14:46:53 2024-09-09 06:46:53.053 UTC [55] LOG:  incomplete startup packet
2024-09-09 14:46:53 2024-09-09 06:46:53.060 UTC [56] LOG:  incomplete startup packet
2024-09-09 14:46:53 2024-09-09 06:46:53.065 UTC [57] LOG:  incomplete startup packet
2024-09-09 14:46:54 2024-09-09 06:46:54.369 UTC [59] LOG:  incomplete startup packet
2024-09-09 14:46:54 2024-09-09 06:46:54.994 UTC [60] LOG:  incomplete startup packet
2024-09-09 14:46:57 2024-09-09 06:46:57.054 UTC [61] LOG:  incomplete startup packet
2024-09-09 14:47:01 2024-09-09 06:47:01.583 UTC [63] LOG:  incomplete startup packet
2024-09-09 14:47:01 2024-09-09 06:47:01.584 UTC [64] LOG:  incomplete startup packet
2024-09-09 14:51:33 2024-09-09 06:51:33.697 UTC [27] LOG:  checkpoint starting: time
2024-09-09 14:51:34 2024-09-09 06:51:34.804 UTC [27] LOG:  checkpoint complete: wrote 6 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.536 s, sync=0.219 s, total=1.107 s; sync files=5, longest=0.152 s, average=0.044 s; distance=1 kB, estimate=1 kB

sudo docker logs traefik

2024-09-09 14:46:35 time="2024-09-09T06:46:35Z" level=info msg="Configuration loaded from environment variables."
2024-09-09 14:46:36 {"entryPointName":"websecure","level":"error","msg":"entryPoint \"websecure\" doesn't exist","routerName":"grafana_https@file","time":"2024-09-09T06:46:36Z"}
2024-09-09 14:46:36 {"level":"error","msg":"no valid entryPoint for this router","routerName":"grafana_https@file","time":"2024-09-09T06:46:36Z"}
2024-09-09 14:46:36 {"entryPointName":"websecure","level":"error","msg":"entryPoint \"websecure\" doesn't exist","routerName":"grafana_https@file","time":"2024-09-09T06:46:36Z"}
2024-09-09 14:46:36 {"level":"error","msg":"no valid entryPoint for this router","routerName":"grafana_https@file","time":"2024-09-09T06:46:36Z"}
2024-09-09 14:46:50 {"entryPointName":"websecure","level":"error","msg":"entryPoint \"websecure\" doesn't exist","routerName":"grafana_https@file","time":"2024-09-09T06:46:50Z"}
2024-09-09 14:46:50 {"level":"error","msg":"no valid entryPoint for this router","routerName":"grafana_https@file","time":"2024-09-09T06:46:50Z"}
2024-09-09 14:46:50 {"entryPointName":"websecure","level":"error","msg":"entryPoint \"websecure\" doesn't exist","routerName":"grafana_https@file","time":"2024-09-09T06:46:50Z"}
2024-09-09 14:46:50 {"level":"error","msg":"no valid entryPoint for this router","routerName":"grafana_https@file","time":"2024-09-09T06:46:50Z"}
2024-09-09 14:46:53 {"entryPointName":"websecure","level":"error","msg":"entryPoint \"websecure\" doesn't exist","routerName":"grafana_https@file","time":"2024-09-09T06:46:53Z"}
2024-09-09 14:46:53 {"level":"error","msg":"no valid entryPoint for this router","routerName":"grafana_https@file","time":"2024-09-09T06:46:53Z"}
2024-09-09 14:46:53 {"entryPointName":"websecure","level":"error","msg":"entryPoint \"websecure\" doesn't exist","routerName":"grafana_https@file","time":"2024-09-09T06:46:53Z"}
2024-09-09 14:46:53 {"level":"error","msg":"no valid entryPoint for this router","routerName":"grafana_https@file","time":"2024-09-09T06:46:53Z"}
2024-09-09 14:47:14 {"ClientAddr":"172.18.0.1:50656","ClientHost":"172.18.0.1","ClientPort":"50656","ClientUsername":"-","DownstreamContentSize":19,"DownstreamStatus":404,"Duration":23401,"GzipRatio":0,"OriginContentSize":0,"OriginDuration":0,"OriginStatus":0,"Overhead":23401,"RequestAddr":"localhost:8080","RequestContentSize":0,"RequestCount":1,"RequestHost":"localhost","RequestMethod":"GET","RequestPath":"/projects","RequestPort":"8080","RequestProtocol":"HTTP/1.1","RequestScheme":"http","RetryAttempts":0,"StartLocal":"2024-09-09T06:47:14.614904533Z","StartUTC":"2024-09-09T06:47:14.614904533Z","entryPointName":"web","level":"info","msg":"","time":"2024-09-09T06:47:14Z"}

sudo docker logs cvat_server

2024-09-09 14:46:52 Operations to perform:
2024-09-09 14:46:52   Apply all migrations: account, admin, analytics_report, auth, authtoken, contenttypes, dataset_repo, db, django_rq, engine, organizations, quality_control, sessions, sites, socialaccount, webhooks
2024-09-09 14:46:52 Running migrations:
2024-09-09 14:46:52   No migrations to apply.
2024-09-09 14:46:56 
2024-09-09 14:46:56 163 static files copied to '/home/django/static'.
2024-09-09 14:46:57 waiting for migrations to complete...
2024-09-09 14:47:00 2024-09-09 06:47:00,558 INFO Creating socket unix:///tmp/uvicorn.sock
2024-09-09 14:47:00 2024-09-09 06:47:00,558 INFO Closing socket unix:///tmp/uvicorn.sock
2024-09-09 14:47:00 2024-09-09 06:47:00,560 INFO RPC interface 'supervisor' initialized
2024-09-09 14:47:00 2024-09-09 06:47:00,560 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-09-09 14:47:00 2024-09-09 06:47:00,561 INFO supervisord started with pid 1
2024-09-09 14:47:01 2024-09-09 06:47:01,563 INFO spawned: 'clamav_update' with pid 293
2024-09-09 14:47:01 2024-09-09 06:47:01,565 INFO spawned: 'nginx-0' with pid 294
2024-09-09 14:47:01 2024-09-09 06:47:01,567 INFO spawned: 'smokescreen' with pid 295
2024-09-09 14:47:01 2024-09-09 06:47:01,567 INFO Creating socket unix:///tmp/uvicorn.sock
2024-09-09 14:47:01 2024-09-09 06:47:01,568 DEBG fd 20 closed, stopped monitoring <PInputDispatcher at 140480091632928 for <Subprocess at 140480091621552 with name uvicorn-0 in state STARTING> (stdin)>
2024-09-09 14:47:01 2024-09-09 06:47:01,569 INFO spawned: 'uvicorn-0' with pid 296
2024-09-09 14:47:01 2024-09-09 06:47:01,570 DEBG fd 24 closed, stopped monitoring <PInputDispatcher at 140480091633504 for <Subprocess at 140480091621408 with name uvicorn-1 in state STARTING> (stdin)>
2024-09-09 14:47:01 2024-09-09 06:47:01,571 INFO spawned: 'uvicorn-1' with pid 297
2024-09-09 14:47:01 2024-09-09 06:47:01,571 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 140480091173504 for <Subprocess at 140480091173408 with name clamav_update in state STARTING> (stdout)>
2024-09-09 14:47:01 2024-09-09 06:47:01,571 DEBG fd 9 closed, stopped monitoring <POutputDispatcher at 140480091631344 for <Subprocess at 140480091173408 with name clamav_update in state STARTING> (stderr)>
2024-09-09 14:47:01 2024-09-09 06:47:01,572 INFO exited: clamav_update (exit status 0; expected)
2024-09-09 14:47:01 2024-09-09 06:47:01,572 DEBG received SIGCHLD indicating a child quit
2024-09-09 14:47:01 2024-09-09 06:47:01,572 DEBG 'nginx-0' stderr output:
2024-09-09 14:47:01 nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,576 DEBG 'smokescreen' stderr output:
2024-09-09 14:47:01 {"level":"info","msg":"starting","time":"2024-09-09T06:47:01Z"}
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,580 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,581 DEBG fd 14 closed, stopped monitoring <POutputDispatcher at 140480091631584 for <Subprocess at 140480091620832 with name nginx-0 in state STARTING> (stderr)>
2024-09-09 14:47:01 2024-09-09 06:47:01,581 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,584 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,585 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,591 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: waiting for cvat_redis_inmem:6379 without a timeout
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,592 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: waiting for cvat_redis_inmem:6379 without a timeout
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,595 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: cvat_redis_inmem:6379 is available after 0 seconds
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,596 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: cvat_redis_inmem:6379 is available after 0 seconds
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,601 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: waiting for cvat_redis_ondisk:6666 without a timeout
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,602 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: waiting for cvat_redis_ondisk:6666 without a timeout
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,605 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:01 wait-for-it.sh: cvat_redis_ondisk:6666 is available after 0 seconds
2024-09-09 14:47:01 
2024-09-09 14:47:01 2024-09-09 06:47:01,606 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:46:48 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-09-09 14:46:48 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-09-09 14:46:57 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-09-09 14:46:57 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-09-09 14:47:01 wait-for-it.sh: cvat_redis_ondisk:6666 is available after 0 seconds
2024-09-09 14:47:01 
2024-09-09 14:47:02 2024-09-09 06:47:02,607 INFO success: nginx-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-09 14:47:02 2024-09-09 06:47:02,608 INFO success: smokescreen entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-09 14:47:02 2024-09-09 06:47:02,608 INFO success: uvicorn-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-09 14:47:02 2024-09-09 06:47:02,608 INFO success: uvicorn-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-09-09 14:47:04 2024-09-09 06:47:04,266 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:04 INFO:     Started server process [296]
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,267 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:04 INFO:     Waiting for application startup.
2024-09-09 14:47:04 INFO:     ASGI 'lifespan' protocol appears unsupported.
2024-09-09 14:47:04 INFO:     Application startup complete.
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,267 DEBG 'uvicorn-0' stderr output:
2024-09-09 14:47:04 INFO:     Uvicorn running on socket /tmp/uvicorn.sock (Press CTRL+C to quit)
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,272 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:04 INFO:     Started server process [297]
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,272 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:04 INFO:     Waiting for application startup.
2024-09-09 14:47:04 INFO:     ASGI 'lifespan' protocol appears unsupported.
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,272 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:04 INFO:     Application startup complete.
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,273 DEBG 'uvicorn-1' stderr output:
2024-09-09 14:47:04 INFO:     Uvicorn running on socket /tmp/uvicorn.sock (Press CTRL+C to quit)
2024-09-09 14:47:04 
2024-09-09 14:47:04 2024-09-09 06:47:04,516 DEBG 'uvicorn-0' stdout output:
2024-09-09 14:47:04 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-09-09 14:47:04 
2024-09-09 14:47:17 2024-09-09 06:47:17,152 DEBG 'uvicorn-1' stdout output:
2024-09-09 14:47:17 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-09-09 14:47:17 
2024-09-09 14:47:26 2024-09-09 06:47:26,862 DEBG 'uvicorn-1' stdout output:
2024-09-09 14:47:26 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-09-09 14:47:26 
2024-09-09 14:47:33 2024-09-09 06:47:33,601 DEBG 'uvicorn-0' stdout output:
2024-09-09 14:47:33 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-09-09 14:47:33 
2024-09-09 14:47:44 2024-09-09 06:47:44,259 DEBG 'uvicorn-1' stdout output:
2024-09-09 14:47:44 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-09-09 14:47:44 
2024-09-09 14:47:56 2024-09-09 06:47:56,992 DEBG 'uvicorn-0' stdout output:
2024-09-09 14:47:56 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-09-09 14:47:56 
2024-09-09 14:48:02 2024-09-09 06:48:02,353 DEBG 'uvicorn-1' stdout output:
2024-09-09 14:48:02 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-09-09 14:48:02 
2024-09-09 14:48:11 2024-09-09 06:48:11,994 DEBG 'uvicorn-1' stdout output:
2024-09-09 14:48:11 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-09-09 14:48:11 
2024-09-09 14:48:26 2024-09-09 06:48:26,128 DEBG 'uvicorn-0' stdout output:
2024-09-09 14:48:26 INFO:     172.18.0.3:0 - "GET /api/auth/rules HTTP/1.0" 200 OK

sudo docker logs cvat_opa

{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp: lookup cvat-server on 127.0.0.11:53: no such host","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:33Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp: lookup cvat-server on 127.0.0.11:53: no such host","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:37Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp: lookup cvat-server on 127.0.0.11:53: no such host","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:40Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp: lookup cvat-server on 127.0.0.11:53: no such host","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:44Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.16:8080: connect: no route to host","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:47Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:48Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:49Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:51Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:54Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-09-09T06:46:58Z"}

sudo docker network inspect cvat_cvat

[
    {
        "Name": "cvat_cvat",
        "Id": "10647229c1e325387590fcb2be4c208235301293bce6e692482559045fb3d41e",
        "Created": "2024-09-09T06:46:18.712742443Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.18.0.0/16",
                    "Gateway": "172.18.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "015b7a82c28f9aa98525e3fbdf5021f35f3dc94870c31385dd86c41d939236e2": {
                "Name": "cvat_redis_ondisk",
                "EndpointID": "3f7f78c5194d84892776ec7b494d5d7476ab642975e50a7d299fe84ca69d000a",
                "MacAddress": "02:42:ac:12:00:02",
                "IPv4Address": "172.18.0.2/16",
                "IPv6Address": ""
            },
            "2748cbfa88950b285cb67ccaedf0a4c7f5e82d363514d99e99855dc9d42aeb4d": {
                "Name": "cvat_utils",
                "EndpointID": "28cd6a01f81db882bf700c57b78207cef4206f40153f7e0ab3950da56e7bf3b9",
                "MacAddress": "02:42:ac:12:00:0e",
                "IPv4Address": "172.18.0.14/16",
                "IPv6Address": ""
            },
            "535fc213dc9811ae51e0a5a2d7a52c79371e84c314aefe351aedfc54df3edd6f": {
                "Name": "cvat_worker_annotation",
                "EndpointID": "71501efbed850a27fafc6114b5f6b43e66031772d7e7f3073570581ac4fe3b83",
                "MacAddress": "02:42:ac:12:00:0a",
                "IPv4Address": "172.18.0.10/16",
                "IPv6Address": ""
            },
            "675cb3101a5acf09beefad612f045a4210fe6632025c91672e68b03b8a92d69a": {
                "Name": "cvat_worker_quality_reports",
                "EndpointID": "18905c883104d1ef5f901e014c15a8bda5a2452ea8ed8c05650d6aefec903d0d",
                "MacAddress": "02:42:ac:12:00:11",
                "IPv4Address": "172.18.0.17/16",
                "IPv6Address": ""
            },
            "6dc5990539809bdaf6efd59de30031b0d848e6c2cdcf9cb7b7d559cd0124ae44": {
                "Name": "cvat_worker_analytics_reports",
                "EndpointID": "debd731734a08b63d032d8f3f369870956352cb90145a142eaad0bc16b5f5696",
                "MacAddress": "02:42:ac:12:00:0d",
                "IPv4Address": "172.18.0.13/16",
                "IPv6Address": ""
            },
            "739bda5cf912fb6ab4b3bb6d86f9b24259d7db7153af654180e2f72fb9746ce6": {
                "Name": "cvat_worker_webhooks",
                "EndpointID": "122a5bdc4838061c80657ee15306aade486084baa1e5c801c019b487a7648ad4",
                "MacAddress": "02:42:ac:12:00:0f",
                "IPv4Address": "172.18.0.15/16",
                "IPv6Address": ""
            },
            "8788af2579d49d12a90e40a24f509b31be9253c12cf0199282f981291a98bb54": {
                "Name": "cvat_ui",
                "EndpointID": "56bdd7aefeb097f7e803030b5fe7b50209ccff9e16823562531ef4194a46d00c",
                "MacAddress": "02:42:ac:12:00:12",
                "IPv4Address": "172.18.0.18/16",
                "IPv6Address": ""
            },
            "9f3035e4c865b44eb649b73927e15cf19dfad07f995583d58084f0999a2cabe1": {
                "Name": "cvat_redis_inmem",
                "EndpointID": "d562a42bcf18ead2980e6238f7bd8d46aa1b3816f02e08f890ec6cfc4f7c414d",
                "MacAddress": "02:42:ac:12:00:08",
                "IPv4Address": "172.18.0.8/16",
                "IPv6Address": ""
            },
            "a549bd0afa5c8233165962beda4ab5507e4ba42d4cc06489a0132c7da2c7c76a": {
                "Name": "cvat_clickhouse",
                "EndpointID": "9ab486d3bf6dde2a554667cde4c6f135f1c99f5e82eabded8d39d0b9c34d6eed",
                "MacAddress": "02:42:ac:12:00:05",
                "IPv4Address": "172.18.0.5/16",
                "IPv6Address": ""
            },
            "b7b2ec63c0329a9e5595fcd8991526819c9a1e242421764179af31957ffa3393": {
                "Name": "cvat_worker_export",
                "EndpointID": "831f84a44b69edb850e923e54adda9e87a5cdf84c1bcf05db145a8a3af2875fb",
                "MacAddress": "02:42:ac:12:00:0c",
                "IPv4Address": "172.18.0.12/16",
                "IPv6Address": ""
            },
            "c839e71e99718c033d5a1a0daf71869351b1c4219c06865d80be6e3f1af3144c": {
                "Name": "cvat_worker_import",
                "EndpointID": "ad1e980fcdaefef50fbb0a9410a533aebc178a7e35aae889c846581dd082695b",
                "MacAddress": "02:42:ac:12:00:0b",
                "IPv4Address": "172.18.0.11/16",
                "IPv6Address": ""
            },
            "cc5bda22a3c183fb7b199ed845e0401c1a649c5f09d89ded9369dafdb7e978ff": {
                "Name": "cvat_opa",
                "EndpointID": "acb6eb6d3b60b06fb051dfe5f99b48fefa922de195af447832f390a1acf9b941",
                "MacAddress": "02:42:ac:12:00:03",
                "IPv4Address": "172.18.0.3/16",
                "IPv6Address": ""
            },
            "e3146d98dffded1567a91be9b750e3c015e9efa895d992298274e0d84199ff4e": {
                "Name": "cvat_grafana",
                "EndpointID": "cb6f52b5d8c24164dc45a8a8ecc2a1054f084a216d78b5ad2aad110097a9cbaf",
                "MacAddress": "02:42:ac:12:00:06",
                "IPv4Address": "172.18.0.6/16",
                "IPv6Address": ""
            },
            "e9c6cc16ce7f210e986a6832c79e1e440f5c96d97504b17b9babeb26a0d735bd": {
                "Name": "traefik",
                "EndpointID": "d59a3efa338b32a6576df88aa1e4bfbb7e404f9fbb690ecca8445d9709134585",
                "MacAddress": "02:42:ac:12:00:07",
                "IPv4Address": "172.18.0.7/16",
                "IPv6Address": ""
            },
            "f74ba0a9e5087f7a9b2a56e05ff7274852798a8d61384ffc3a70e61cc20c6748": {
                "Name": "cvat_vector",
                "EndpointID": "b6aa97ae569cad8691635be4e6fd5b8914226864ecfbfbfb7a5b5fd37d7dce29",
                "MacAddress": "02:42:ac:12:00:09",
                "IPv4Address": "172.18.0.9/16",
                "IPv6Address": ""
            },
            "fc4d15207e18ac2eb8475bf50ea84d412e7bc018f8203cef915a80b8b56a4261": {
                "Name": "cvat_server",
                "EndpointID": "dae89eae61c01c0571f035cc8c442ab671ca9f6045fca11c6af02417e2dc935d",
                "MacAddress": "02:42:ac:12:00:10",
                "IPv4Address": "172.18.0.16/16",
                "IPv6Address": ""
            },
            "ff00e2dd232d43334530b8f738c3428f4bc060d94ded6a6c49e17686711197ba": {
                "Name": "cvat_db",
                "EndpointID": "0c2f1c383a5ee0d344d81bf318cc2b5267509501d7aafc8249cad008172c5b76",
                "MacAddress": "02:42:ac:12:00:04",
                "IPv4Address": "172.18.0.4/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {
            "com.docker.compose.network": "cvat",
            "com.docker.compose.project": "cvat",
            "com.docker.compose.version": "2.29.1"
        }
    }
]

sudo docker exec -it cvat_opa bash

OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

Expected Behavior

The mydomain.ddns.net:8080 should show the CVAT UI.

Possible Solution

Could be docker network error.

Context

-

Environment

Window 10
Ubuntu 22.04.3 LTS 
Docker Desktop v4.33.1 (161083)
CVAT Develop
azhavoro commented 1 week ago

I understand from your description that it works from localhost, but fails from the internet with the error site is not reachable. This seems not a CVAT related problem. In any case, even with the HOST header mismatch, you should be getting some sort of http response, but you're not. What is output of curl -Lv mydomain.ddns.net:8080 ? Your case indicates that you have not properly configured the accessibility of your server from the internet. I would suggest deploying any simple nginx container using docker run --name some-nginx -d -p 8080:80 nginx firslty and configure the network properly.

CheeseNG523 commented 1 week ago

Here is the output of curl -Lv mydomain.ddns.net:8080

*   Trying **.***.***.**:8080...
* connect to **.***.***.** port 8080 failed: Connection timed out
* Failed to connect to iradarcvat.ddns.net port 8080 after 130008 ms: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to iradarcvat.ddns.net port 8080 after 130008 ms: Connection timed out
CheeseNG523 commented 1 week ago

I would suggest deploying any simple nginx container using docker run --name some-nginx -d -p 8080:80 nginx firslty and configure the network properly.

Actually I'm new to docker, I have no idea how to configure the network. Any links for me to refer to?

azhavoro commented 1 week ago

Actually I'm new to docker, I have no idea how to configure the network. Any links for me to refer to?

This is not related to the docker. Unfortunately, I can't advise much due to the missing information about your network configuration. In the simplest case of home network, you need to configure port forwarding on the router and open a port on the end computer for inbound connections.