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

Development Environment Documentation results in error(health check 403 forbidden) #7642

Closed
2 tasks done
HaleyCH opened this issue Mar 20, 2024 · 8 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@HaleyCH
Copy link

HaleyCH commented Mar 20, 2024

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

I found some similar issues like #7396 #5449 and #6629 but none of them can solve my problem.

  1. followed steps in docs: https://opencv.github.io/cvat/docs/contributing/development-environment/
  2. set up docker service by: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build cvat_opa cvat_db cvat_redis_inmem cvat_redis_ondisk cvat_server
  3. launch server:debug and server:chrome
  4. start UI server yarn start:cvat-ui
截屏2024-03-20 12 03 06

I've checked my storage usage and it's below 90%.

截屏2024-03-20 12 05 42

Expected Behavior

I can connect to the server

Possible Solution

No response

Context

docker ps

CONTAINER ID   IMAGE                                 COMMAND                   CREATED        STATUS                  PORTS                              NAMES
ddc68a54606f   cvat/server:v2.11.2                   "./backend_entrypoin…"   13 hours ago   Up 13 hours             8080/tcp, 0.0.0.0:9090->9090/tcp   cvat_server
a57194d1021f   redis:7.2.3-alpine                    "docker-entrypoint.s…"   13 hours ago   Up 13 hours             0.0.0.0:6379->6379/tcp             cvat_redis_inmem
a8bc1a7794e7   apache/kvrocks:2.7.0                  "kvrocks -c /var/lib…"   13 hours ago   Up 13 hours (healthy)   0.0.0.0:6666->6666/tcp             cvat_redis_ondisk
8a0e249e8fb1   openpolicyagent/opa:0.45.0-rootless   "/opa run --server -…"   13 hours ago   Up 13 hours             0.0.0.0:8181->8181/tcp             cvat_opa
9bbc9912e631   postgres:15-alpine                    "docker-entrypoint.s…"   13 hours ago   Up 13 hours             0.0.0.0:5432->5432/tcp             cvat_db

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

docker logs cvat_server

wait-for-it.sh: waiting for cvat_db:5432 without a timeout
wait-for-it.sh: cvat_db:5432 is available after 0 seconds
Operations to perform:
  Apply all migrations: account, admin, analytics_report, auth, authtoken, contenttypes, dataset_repo, db, django_rq, engine, organizations, quality_control, sessions, sites, socialaccount, webhooks
Running migrations:
  No migrations to apply.

163 static files copied to '/home/django/static'.
wait-for-it.sh: waiting for cvat_db:5432 without a timeout
wait-for-it.sh: cvat_db:5432 is available after 0 seconds
waiting for migrations to complete...
2024-03-19 15:28:45,933 INFO Creating socket unix:///tmp/uvicorn.sock
2024-03-19 15:28:45,934 INFO Closing socket unix:///tmp/uvicorn.sock
2024-03-19 15:28:45,935 INFO RPC interface 'supervisor' initialized
2024-03-19 15:28:45,935 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-03-19 15:28:45,935 INFO supervisord started with pid 1
2024-03-19 15:28:46,937 INFO spawned: 'clamav_update' with pid 86
2024-03-19 15:28:46,939 INFO spawned: 'nginx-0' with pid 87
2024-03-19 15:28:46,940 INFO spawned: 'smokescreen' with pid 88
2024-03-19 15:28:46,941 INFO Creating socket unix:///tmp/uvicorn.sock
2024-03-19 15:28:46,942 DEBG fd 20 closed, stopped monitoring <PInputDispatcher at 281472970306704 for <Subprocess at 281472970295328 with name uvicorn-0 in state STARTING> (stdin)>
2024-03-19 15:28:46,942 INFO spawned: 'uvicorn-0' with pid 89
2024-03-19 15:28:46,943 DEBG fd 24 closed, stopped monitoring <PInputDispatcher at 281472970307280 for <Subprocess at 281472970295184 with name uvicorn-1 in state STARTING> (stdin)>
2024-03-19 15:28:46,944 INFO spawned: 'uvicorn-1' with pid 90
2024-03-19 15:28:46,944 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 281472969830896 for <Subprocess at 281472969830800 with name clamav_update in state STARTING> (stdout)>
2024-03-19 15:28:46,944 DEBG fd 9 closed, stopped monitoring <POutputDispatcher at 281472970305120 for <Subprocess at 281472969830800 with name clamav_update in state STARTING> (stderr)>
2024-03-19 15:28:46,945 INFO exited: clamav_update (exit status 0; expected)
2024-03-19 15:28:46,945 DEBG received SIGCHLD indicating a child quit
2024-03-19 15:28:46,945 DEBG 'nginx-0' stderr output:
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)

2024-03-19 15:28:46,947 DEBG 'smokescreen' stderr output:
{"level":"info","msg":"starting","time":"2024-03-19T15:28:46Z"}

2024-03-19 15:28:46,949 DEBG 'uvicorn-0' stderr output:
wait-for-it.sh: waiting for cvat_db:5432 without a timeout

2024-03-19 15:28:46,952 DEBG 'uvicorn-0' stderr output:
wait-for-it.sh: cvat_db:5432 is available after 0 seconds

2024-03-19 15:28:46,955 DEBG fd 14 closed, stopped monitoring <POutputDispatcher at 281472970305360 for <Subprocess at 281472970294608 with name nginx-0 in state STARTING> (stderr)>
2024-03-19 15:28:46,956 DEBG 'uvicorn-0' stderr output:
wait-for-it.sh: waiting for cvat_redis_inmem:6379 without a timeout

2024-03-19 15:28:46,956 DEBG 'uvicorn-1' stderr output:
wait-for-it.sh: waiting for cvat_db:5432 without a timeout

2024-03-19 15:28:46,959 DEBG 'uvicorn-0' stderr output:
wait-for-it.sh: cvat_redis_inmem:6379 is available after 0 seconds

2024-03-19 15:28:46,959 DEBG 'uvicorn-1' stderr output:
wait-for-it.sh: cvat_db:5432 is available after 0 seconds

2024-03-19 15:28:46,964 DEBG 'uvicorn-0' stderr output:
wait-for-it.sh: waiting for cvat_redis_ondisk:6666 without a timeout

2024-03-19 15:28:46,964 DEBG 'uvicorn-1' stderr output:
wait-for-it.sh: waiting for cvat_redis_inmem:6379 without a timeout

2024-03-19 15:28:46,967 DEBG 'uvicorn-0' stderr output:
wait-for-it.sh: cvat_redis_ondisk:6666 is available after 0 seconds

2024-03-19 15:28:46,967 DEBG 'uvicorn-1' stderr output:
wait-for-it.sh: cvat_redis_inmem:6379 is available after 0 seconds

2024-03-19 15:28:46,973 DEBG 'uvicorn-1' stderr output:
wait-for-it.sh: waiting for cvat_redis_ondisk:6666 without a timeout

2024-03-19 15:28:46,977 DEBG 'uvicorn-1' stderr output:
wait-for-it.sh: cvat_redis_ondisk:6666 is available after 0 seconds

2024-03-19 15:28:47,980 INFO success: nginx-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-19 15:28:47,981 INFO success: smokescreen entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-19 15:28:47,981 INFO success: uvicorn-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-19 15:28:47,981 INFO success: uvicorn-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-19 15:28:48,259 DEBG 'uvicorn-0' stderr output:
INFO:     Started server process [89]
INFO:     Waiting for application startup.

2024-03-19 15:28:48,260 DEBG 'uvicorn-0' stderr output:
INFO:     ASGI 'lifespan' protocol appears unsupported.
INFO:     Application startup complete.

2024-03-19 15:28:48,260 DEBG 'uvicorn-0' stderr output:
INFO:     Uvicorn running on socket /tmp/uvicorn.sock (Press CTRL+C to quit)

2024-03-19 15:28:48,898 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 200 OK

2024-03-19 15:28:50,078 DEBG 'uvicorn-1' stderr output:
INFO:     Started server process [90]
INFO:     Waiting for application startup.

2024-03-19 15:28:50,078 DEBG 'uvicorn-1' stderr output:
INFO:     ASGI 'lifespan' protocol appears unsupported.
INFO:     Application startup complete.

2024-03-19 15:28:50,079 DEBG 'uvicorn-1' stderr output:
INFO:     Uvicorn running on socket /tmp/uvicorn.sock (Press CTRL+C to quit)

2024-03-19 15:28:55,132 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:29:09,082 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:29:19,037 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:29:30,502 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:29:42,173 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:29:56,739 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:30:02,588 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:30:11,503 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:30:17,054 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:30:29,405 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:30:41,808 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:30:53,958 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:31:01,070 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:31:14,126 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:31:20,559 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:31:31,284 DEBG 'uvicorn-0' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:31:40,820 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:31:47,849 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

2024-03-19 15:32:00,693 DEBG 'uvicorn-1' stdout output:
INFO:     172.18.0.2:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

Environment

- OS:  macOS 14.4 beta(23E5205c)
@HaleyCH HaleyCH added the bug Something isn't working label Mar 20, 2024
@HaleyCH
Copy link
Author

HaleyCH commented Mar 20, 2024

I tried using export DOCKER_DEFAULT_PLATFORM=linux/amd64 && docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build instead

here is output of docker ps

> docker ps
CONTAINER ID   IMAGE                                       COMMAND                   CREATED          STATUS                    PORTS                                                    NAMES
e61142aaf5f0   timberio/vector:0.26.0-alpine               "/usr/local/bin/vect…"   2 minutes ago    Up 2 minutes              0.0.0.0:8282->80/tcp                                     cvat_vector
71e1c1bbb0e5   traefik:v2.10                               "/entrypoint.sh trae…"   3 minutes ago    Up 2 minutes              0.0.0.0:8080->8080/tcp, 80/tcp, 0.0.0.0:8090->8090/tcp   traefik
001975a905d7   clickhouse/clickhouse-server:23.11-alpine   "/entrypoint.sh"          3 minutes ago    Up 2 minutes              9000/tcp, 0.0.0.0:8123->8123/tcp, 9009/tcp               cvat_clickhouse
46bc29e11bcb   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9092->9092/tcp                         cvat_worker_export
46a693d43b90   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9095->9095/tcp                         cvat_worker_analytics_reports
b363008e3c4b   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9091->9091/tcp                         cvat_worker_annotation
d259d4152ca0   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9093->9093/tcp                         cvat_worker_import
bfab9a3b156b   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp                                                 cvat_worker_webhooks
1f9d54979d15   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9094->9094/tcp                         cvat_worker_quality_reports
321abe8152f1   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp                                                 cvat_utils
6382306f6a15   cvat/ui:v2.11.2                             "/docker-entrypoint.…"   4 minutes ago    Up 2 minutes              80/tcp                                                   cvat_ui
7a678ffb2ff6   grafana/grafana-oss:10.1.2                  "sh -euc 'mkdir -p /…"   23 minutes ago   Up 23 minutes             3000/tcp                                                 cvat_grafana
fe5b63fcf9a4   cvat/server:v2.11.2                         "./backend_entrypoin…"   40 minutes ago   Up 40 minutes             8080/tcp, 0.0.0.0:9090->9090/tcp                         cvat_server
e9e17c39c575   postgres:15-alpine                          "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes             0.0.0.0:5432->5432/tcp                                   cvat_db
cd9396a86d56   openpolicyagent/opa:0.45.0-rootless         "/opa run --server -…"   40 minutes ago   Up 40 minutes             0.0.0.0:8181->8181/tcp                                   cvat_opa
82691d95d32c   redis:7.2.3-alpine                          "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes             0.0.0.0:6379->6379/tcp                                   cvat_redis_inmem
bf3c06535e2a   apache/kvrocks:2.7.0                        "kvrocks -c /var/lib…"   40 minutes ago   Up 40 minutes (healthy)   0.0.0.0:6666->6666/tcp                                   cvat_redis_ondisk

but still it can't work

@syedbarimanjan
Copy link
Contributor

I tried using export DOCKER_DEFAULT_PLATFORM=linux/amd64 && docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build instead

here is output of docker ps

> docker ps
CONTAINER ID   IMAGE                                       COMMAND                   CREATED          STATUS                    PORTS                                                    NAMES
e61142aaf5f0   timberio/vector:0.26.0-alpine               "/usr/local/bin/vect…"   2 minutes ago    Up 2 minutes              0.0.0.0:8282->80/tcp                                     cvat_vector
71e1c1bbb0e5   traefik:v2.10                               "/entrypoint.sh trae…"   3 minutes ago    Up 2 minutes              0.0.0.0:8080->8080/tcp, 80/tcp, 0.0.0.0:8090->8090/tcp   traefik
001975a905d7   clickhouse/clickhouse-server:23.11-alpine   "/entrypoint.sh"          3 minutes ago    Up 2 minutes              9000/tcp, 0.0.0.0:8123->8123/tcp, 9009/tcp               cvat_clickhouse
46bc29e11bcb   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9092->9092/tcp                         cvat_worker_export
46a693d43b90   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9095->9095/tcp                         cvat_worker_analytics_reports
b363008e3c4b   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9091->9091/tcp                         cvat_worker_annotation
d259d4152ca0   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9093->9093/tcp                         cvat_worker_import
bfab9a3b156b   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp                                                 cvat_worker_webhooks
1f9d54979d15   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9094->9094/tcp                         cvat_worker_quality_reports
321abe8152f1   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp                                                 cvat_utils
6382306f6a15   cvat/ui:v2.11.2                             "/docker-entrypoint.…"   4 minutes ago    Up 2 minutes              80/tcp                                                   cvat_ui
7a678ffb2ff6   grafana/grafana-oss:10.1.2                  "sh -euc 'mkdir -p /…"   23 minutes ago   Up 23 minutes             3000/tcp                                                 cvat_grafana
fe5b63fcf9a4   cvat/server:v2.11.2                         "./backend_entrypoin…"   40 minutes ago   Up 40 minutes             8080/tcp, 0.0.0.0:9090->9090/tcp                         cvat_server
e9e17c39c575   postgres:15-alpine                          "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes             0.0.0.0:5432->5432/tcp                                   cvat_db
cd9396a86d56   openpolicyagent/opa:0.45.0-rootless         "/opa run --server -…"   40 minutes ago   Up 40 minutes             0.0.0.0:8181->8181/tcp                                   cvat_opa
82691d95d32c   redis:7.2.3-alpine                          "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes             0.0.0.0:6379->6379/tcp                                   cvat_redis_inmem
bf3c06535e2a   apache/kvrocks:2.7.0                        "kvrocks -c /var/lib…"   40 minutes ago   Up 40 minutes (healthy)   0.0.0.0:6666->6666/tcp                                   cvat_redis_ondisk

but still it can't work

Can you provide the logs of cvat_opa container.

@Viditagarwal7479
Copy link
Contributor

Viditagarwal7479 commented Mar 23, 2024

Hey @HaleyCH,
The command for running the docker container is this,

export DOCKER_DEFAULT_PLATFORM=linux/amd64 &&  docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build \
  cvat_opa cvat_db cvat_redis_inmem cvat_redis_ondisk cvat_server

Also first execute

yarn run start:cvat-ui

Then launch the server: debug

@HaleyCH
Copy link
Author

HaleyCH commented Mar 24, 2024

I tried using export DOCKER_DEFAULT_PLATFORM=linux/amd64 && docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build instead
here is output of docker ps

> docker ps
CONTAINER ID   IMAGE                                       COMMAND                   CREATED          STATUS                    PORTS                                                    NAMES
e61142aaf5f0   timberio/vector:0.26.0-alpine               "/usr/local/bin/vect…"   2 minutes ago    Up 2 minutes              0.0.0.0:8282->80/tcp                                     cvat_vector
71e1c1bbb0e5   traefik:v2.10                               "/entrypoint.sh trae…"   3 minutes ago    Up 2 minutes              0.0.0.0:8080->8080/tcp, 80/tcp, 0.0.0.0:8090->8090/tcp   traefik
001975a905d7   clickhouse/clickhouse-server:23.11-alpine   "/entrypoint.sh"          3 minutes ago    Up 2 minutes              9000/tcp, 0.0.0.0:8123->8123/tcp, 9009/tcp               cvat_clickhouse
46bc29e11bcb   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9092->9092/tcp                         cvat_worker_export
46a693d43b90   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9095->9095/tcp                         cvat_worker_analytics_reports
b363008e3c4b   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9091->9091/tcp                         cvat_worker_annotation
d259d4152ca0   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9093->9093/tcp                         cvat_worker_import
bfab9a3b156b   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp                                                 cvat_worker_webhooks
1f9d54979d15   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp, 0.0.0.0:9094->9094/tcp                         cvat_worker_quality_reports
321abe8152f1   cvat/server:v2.11.2                         "./backend_entrypoin…"   4 minutes ago    Up 2 minutes              8080/tcp                                                 cvat_utils
6382306f6a15   cvat/ui:v2.11.2                             "/docker-entrypoint.…"   4 minutes ago    Up 2 minutes              80/tcp                                                   cvat_ui
7a678ffb2ff6   grafana/grafana-oss:10.1.2                  "sh -euc 'mkdir -p /…"   23 minutes ago   Up 23 minutes             3000/tcp                                                 cvat_grafana
fe5b63fcf9a4   cvat/server:v2.11.2                         "./backend_entrypoin…"   40 minutes ago   Up 40 minutes             8080/tcp, 0.0.0.0:9090->9090/tcp                         cvat_server
e9e17c39c575   postgres:15-alpine                          "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes             0.0.0.0:5432->5432/tcp                                   cvat_db
cd9396a86d56   openpolicyagent/opa:0.45.0-rootless         "/opa run --server -…"   40 minutes ago   Up 40 minutes             0.0.0.0:8181->8181/tcp                                   cvat_opa
82691d95d32c   redis:7.2.3-alpine                          "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes             0.0.0.0:6379->6379/tcp                                   cvat_redis_inmem
bf3c06535e2a   apache/kvrocks:2.7.0                        "kvrocks -c /var/lib…"   40 minutes ago   Up 40 minutes (healthy)   0.0.0.0:6666->6666/tcp                                   cvat_redis_ondisk

but still it can't work

Can you provide the logs of cvat_opa container.

Thanks for your reply.
I read the log and find it strange that the OPA is receiving 127.0.0.11 and 172.19.0.0/8 addresses. I also checked the /etc/hosts file in case there might be some resolution issues causing this.
And I searched the entire project for 127.0.0.11, but there were no exact text matches found.

  • 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-03-20T09:39:46Z"}
{"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-03-20T09:39:46Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.14:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-20T09:39:47Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.14:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-20T09:39:47Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.14:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-20T09:39:47Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.14:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-20T09:39:48Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.14:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-20T09:39:49Z"}
-etc-
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-24T05:13:36Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-24T05:13:39Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-24T05:13:43Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.19.0.16:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-24T05:13:50Z"}
  • cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost

185.199.108.133 raw.githubusercontent.com
127.0.0.1 *.example.com

@HaleyCH
Copy link
Author

HaleyCH commented Mar 24, 2024

Hey @HaleyCH, The command for running the docker container is this,

export DOCKER_DEFAULT_PLATFORM=linux/amd64 &&  docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build \
  cvat_opa cvat_db cvat_redis_inmem cvat_redis_ondisk cvat_server

Also first execute

yarn run start:cvat-ui

Then launch the server: debug

Thanks for your advice. I tried the Docker command, but when I ran docker ps, it did not show port 3000 as open, which I believe is required by the API service. So I directly ran export DOCKER_DEFAULT_PLATFORM=linux/amd64 && docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build to start all relevant containers directly.

@syedbarimanjan
Copy link
Contributor

syedbarimanjan commented Mar 24, 2024 via email

@HaleyCH
Copy link
Author

HaleyCH commented Mar 29, 2024

Sorry for my delay.

I modified the cvat_opa in the docker-compose.dev.yml file as shown below:

  cvat_opa:
    ports:
      - '8181:8181'
    volumes:
      - ${PWD}/cvat/apps/iam/rules:/rules
    command:
      - run
      - --server
      - --log-level=error
      - --set=services.cvat.url=http://cvat-server:8080
      - --set=bundles.cvat.service=cvat
      - --set=bundles.cvat.resource=/api/auth/rules
      - --set=bundles.cvat.polling.min_delay_seconds=5
      - --set=bundles.cvat.polling.max_delay_seconds=15
      - --set=decision_logs.console=true

After modifying, I ran the container using the command docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build cvat_opa cvat_db cvat_redis_inmem cvat_redis_ondisk cvat_server.

Based on the logs below, it seems that the cvat_opa (172.18.0.5) is unable to connect to the cvat_server (172.18.0.6). However, the cvat_server is actually returning a "304 Not Modified" response.

Here is the log for cvat_opa:

2024-03-29 16:36:36 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:36Z"}
2024-03-29 16:36:36 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:36Z"}
2024-03-29 16:36:36 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:36Z"}
2024-03-29 16:36:36 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:36Z"}
2024-03-29 16:36:36 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:36Z"}
2024-03-29 16:36:37 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:37Z"}
2024-03-29 16:36:38 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:38Z"}
2024-03-29 16:36:40 {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp 172.18.0.6:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2024-03-29T08:36:40Z"}

The log for cvat_server is as follows:

2024-03-29 16:36:35 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-03-29 16:36:36 wait-for-it.sh: cvat_db:5432 is available after 1 second
2024-03-29 16:36:39 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-03-29 16:36:39 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-03-29 16:36:38 Operations to perform:
2024-03-29 16:36:38   Apply all migrations: account, admin, analytics_report, auth, authtoken, contenttypes, dataset_repo, db, django_rq, engine, organizations, quality_control, sessions, sites, socialaccount, webhooks
2024-03-29 16:36:38 Running migrations:
2024-03-29 16:36:38   No migrations to apply.
2024-03-29 16:36:39 
2024-03-29 16:36:39 163 static files copied to '/home/django/static'.
2024-03-29 16:36:39 waiting for migrations to complete...
2024-03-29 16:36:40 2024-03-29 08:36:40,844 INFO Creating socket unix:///tmp/uvicorn.sock
2024-03-29 16:36:40 2024-03-29 08:36:40,844 INFO Closing socket unix:///tmp/uvicorn.sock
2024-03-29 16:36:40 2024-03-29 08:36:40,845 INFO RPC interface 'supervisor' initialized
2024-03-29 16:36:40 2024-03-29 08:36:40,845 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-03-29 16:36:40 2024-03-29 08:36:40,845 INFO supervisord started with pid 1
2024-03-29 16:36:41 2024-03-29 08:36:41,847 INFO spawned: 'clamav_update' with pid 88
2024-03-29 16:36:41 2024-03-29 08:36:41,849 INFO spawned: 'nginx-0' with pid 89
2024-03-29 16:36:41 2024-03-29 08:36:41,851 INFO spawned: 'smokescreen' with pid 90
2024-03-29 16:36:41 2024-03-29 08:36:41,851 INFO Creating socket unix:///tmp/uvicorn.sock
2024-03-29 16:36:41 2024-03-29 08:36:41,852 DEBG fd 20 closed, stopped monitoring <PInputDispatcher at 281473830597776 for <Subprocess at 281473830586400 with name uvicorn-0 in state STARTING> (stdin)>
2024-03-29 16:36:41 2024-03-29 08:36:41,853 INFO spawned: 'uvicorn-0' with pid 91
2024-03-29 16:36:41 2024-03-29 08:36:41,854 DEBG fd 24 closed, stopped monitoring <PInputDispatcher at 281473830598352 for <Subprocess at 281473830586256 with name uvicorn-1 in state STARTING> (stdin)>
2024-03-29 16:36:41 2024-03-29 08:36:41,855 INFO spawned: 'uvicorn-1' with pid 92
2024-03-29 16:36:41 2024-03-29 08:36:41,855 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 281473830121968 for <Subprocess at 281473830121872 with name clamav_update in state STARTING> (stdout)>
2024-03-29 16:36:41 2024-03-29 08:36:41,856 DEBG fd 9 closed, stopped monitoring <POutputDispatcher at 281473830596192 for <Subprocess at 281473830121872 with name clamav_update in state STARTING> (stderr)>
2024-03-29 16:36:41 2024-03-29 08:36:41,856 INFO exited: clamav_update (exit status 0; expected)
2024-03-29 16:36:41 2024-03-29 08:36:41,856 DEBG received SIGCHLD indicating a child quit
2024-03-29 16:36:41 2024-03-29 08:36:41,857 DEBG 'nginx-0' stderr output:
2024-03-29 16:36:41 nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,860 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,860 DEBG 'smokescreen' stderr output:
2024-03-29 16:36:41 {"level":"info","msg":"starting","time":"2024-03-29T08:36:41Z"}
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,860 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,862 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,862 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,865 DEBG fd 14 closed, stopped monitoring <POutputDispatcher at 281473830596432 for <Subprocess at 281473830585680 with name nginx-0 in state STARTING> (stderr)>
2024-03-29 16:36:41 2024-03-29 08:36:41,865 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: waiting for cvat_redis_inmem:6379 without a timeout
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,867 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: waiting for cvat_redis_inmem:6379 without a timeout
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,868 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: cvat_redis_inmem:6379 is available after 0 seconds
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,869 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: cvat_redis_inmem:6379 is available after 0 seconds
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,872 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: waiting for cvat_redis_ondisk:6666 without a timeout
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,872 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: waiting for cvat_redis_ondisk:6666 without a timeout
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,874 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: cvat_redis_ondisk:6666 is available after 0 seconds
2024-03-29 16:36:41 
2024-03-29 16:36:41 2024-03-29 08:36:41,875 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:41 wait-for-it.sh: cvat_redis_ondisk:6666 is available after 0 seconds
2024-03-29 16:36:41 
2024-03-29 16:36:42 2024-03-29 08:36:42,740 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:42 INFO:     Started server process [92]
2024-03-29 16:36:42 INFO:     Waiting for application startup.
2024-03-29 16:36:42 
2024-03-29 16:36:42 2024-03-29 08:36:42,740 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:42 INFO:     ASGI 'lifespan' protocol appears unsupported.
2024-03-29 16:36:42 INFO:     Application startup complete.
2024-03-29 16:36:42 
2024-03-29 16:36:42 2024-03-29 08:36:42,740 DEBG 'uvicorn-1' stderr output:
2024-03-29 16:36:42 INFO:     Uvicorn running on socket /tmp/uvicorn.sock (Press CTRL+C to quit)
2024-03-29 16:36:42 
2024-03-29 16:36:42 2024-03-29 08:36:42,770 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:42 INFO:     Started server process [91]
2024-03-29 16:36:42 INFO:     Waiting for application startup.
2024-03-29 16:36:42 
2024-03-29 16:36:42 2024-03-29 08:36:42,770 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:42 INFO:     ASGI 'lifespan' protocol appears unsupported.
2024-03-29 16:36:42 INFO:     Application startup complete.
2024-03-29 16:36:42 
2024-03-29 16:36:42 2024-03-29 08:36:42,770 DEBG 'uvicorn-0' stderr output:
2024-03-29 16:36:42 INFO:     Uvicorn running on socket /tmp/uvicorn.sock (Press CTRL+C to quit)
2024-03-29 16:36:42 
2024-03-29 16:36:42 2024-03-29 08:36:42,824 DEBG 'uvicorn-1' stdout output:
2024-03-29 16:36:42 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 200 OK
2024-03-29 16:36:42 
2024-03-29 16:36:43 2024-03-29 08:36:43,826 INFO success: nginx-0 entered RUNNING state, process has stayed up for more than 1 second (startsecs)
2024-03-29 16:36:43 2024-03-29 08:36:43,827 INFO success: smokescreen entered RUNNING state, process has stayed up for more than 1 second (startsecs)
2024-03-29 16:36:43 2024-03-29 08:36:43,827 INFO success: uvicorn-0 entered RUNNING state, process has stayed up for more than 1 second (startsecs)
2024-03-29 16:36:43 2024-03-29 08:36:43,831 INFO success: uvicorn-1 entered RUNNING state, process has stayed up for more than 1 second (startsecs)
2024-03-29 16:36:57 2024-03-29 08:36:57,029 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:36:57 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:36:57 
2024-03-29 16:37:04 2024-03-29 08:37:04,457 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:37:04 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:37:04 
2024-03-29 16:37:11 2024-03-29 08:37:11,152 DEBG 'uvicorn-1' stdout output:
2024-03-29 16:37:11 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:37:11 
2024-03-29 16:37:20 2024-03-29 08:37:20,114 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:37:20 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:37:20 
2024-03-29 16:37:28 2024-03-29 08:37:28,846 DEBG 'uvicorn-1' stdout output:
2024-03-29 16:37:28 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:37:28 
2024-03-29 16:37:43 2024-03-29 08:37:43,389 DEBG 'uvicorn-1' stdout output:
2024-03-29 16:37:43 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:37:43 
2024-03-29 16:37:50 2024-03-29 08:37:50,250 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:37:50 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:37:50 
2024-03-29 16:38:00 2024-03-29 08:38:00,722 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:38:00 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:38:00 
2024-03-29 16:38:12 2024-03-29 08:38:12,277 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:38:12 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:38:12 
2024-03-29 16:38:20 2024-03-29 08:38:20,918 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:38:20 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:38:20 
2024-03-29 16:38:32 2024-03-29 08:38:32,793 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:38:32 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:38:32 
2024-03-29 16:38:41 2024-03-29 08:38:41,964 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:38:41 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:38:41 
2024-03-29 16:38:53 2024-03-29 08:38:53,256 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:38:53 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:38:53 
2024-03-29 16:39:02 2024-03-29 08:39:02,531 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:39:02 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:39:02 
2024-03-29 16:39:07 2024-03-29 08:39:07,906 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:39:07 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified
2024-03-29 16:39:07 
2024-03-29 16:39:17 2024-03-29 08:39:17,720 DEBG 'uvicorn-0' stdout output:
2024-03-29 16:39:17 INFO:     172.18.0.5:0 - "GET /api/auth/rules HTTP/1.0" 304 Not Modified

Based on the logs, it seems that the cvat_opa (172.18.0.5) is unable to connect to the cvat_server (172.18.0.6). However, the cvat_server is actually returning a "304 Not Modified" response.

Here are the network configurations for cvat_server and cvat_opa:

cvat_server:

"Networks": {
    "cvat_cvat": {
        "IPAMConfig": {},
        "Links": null,
        "Aliases": [
            "cvat_server",
            "cvat-server",
            "053559131c2f"
        ],
        "MacAddress": "02:42:ac:12:00:06",
        "NetworkID": "4b0123a8654b3ec8ba09bc12cf1af667defbd5b8e98ccde80a356954eb31c06c",
        "EndpointID": "fbc78bf6e66fa885fc9612113b218f62ed4160dbc475f697929d5c62d7219611",
        "Gateway": "172.18.0.1",
        "IPAddress": "172.18.0.6",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "DriverOpts": null,
        "DNSNames": [
            "cvat_server",
            "cvat-server",
            "053559131c2f"
        ]
    }
}

cvat_opa:

"Networks": {
    "cvat_cvat": {
        "IPAMConfig": {},
        "Links": null,
        "Aliases": [
            "cvat_opa",
            "opa",
            "ce52559e78cd"
        ],
        "MacAddress": "02:42:ac:12:00:05",
        "NetworkID": "4b0123a8654b3ec8ba09bc12cf1af667defbd5b8e98ccde80a356954eb31c06c",
        "EndpointID": "7ad507db905b18b9f7cbfc6507b075d0fcb357f376d8536a60a231455948575e",
        "Gateway": "172.18.0.1",
        "IPAddress": "172.18.0.5",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "DriverOpts": null,
        "DNSNames": [
            "cvat_opa",
            "opa",
            "ce52559e78cd"
        ]
}

@HaleyCH
Copy link
Author

HaleyCH commented Mar 30, 2024

The connection refused error I encountered was likely due to OPA starting before the server had fully started. Upon reviewing the logs carefully, I realized that this issue shouldn't be directly related to the problem occurring during actual runtime.

@HaleyCH HaleyCH closed this as completed Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants