Closed Shadowfear36 closed 1 month ago
Please attach full log from cvat_server container docker logs cvat_server
`docker logs cvat_server wait-for-it.sh: waiting for 192.111.0.11:5432 without a timeout wait-for-it.sh: 192.111.0.11:5432 is available after 0 seconds System check identified some issues:
WARNINGS: ?: (urls.W002) Your URL pattern '/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'. 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 192.111.0.11:5432 without a timeout wait-for-it.sh: 192.111.0.11:5432 is available after 0 seconds waiting for migrations to complete... System check identified some issues:
WARNINGS: ?: (urls.W002) Your URL pattern '/' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'. 2024-09-17 21:35:50,531 INFO Creating socket unix:///tmp/uvicorn.sock 2024-09-17 21:35:50,531 INFO Closing socket unix:///tmp/uvicorn.sock 2024-09-17 21:35:50,532 INFO RPC interface 'supervisor' initialized 2024-09-17 21:35:50,532 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2024-09-17 21:35:50,532 INFO supervisord started with pid 1 2024-09-17 21:35:51,535 INFO spawned: 'clamav_update' with pid 221 2024-09-17 21:35:51,537 INFO spawned: 'nginx-0' with pid 222 2024-09-17 21:35:51,538 INFO spawned: 'smokescreen' with pid 223 2024-09-17 21:35:51,538 INFO Creating socket unix:///tmp/uvicorn.sock 2024-09-17 21:35:51,539 DEBG fd 20 closed, stopped monitoring <PInputDispatcher at 140408520553904 for <Subprocess at 140408520542528 with name uvicorn-0 in state STARTING> (stdin)> 2024-09-17 21:35:51,540 INFO spawned: 'uvicorn-0' with pid 224 2024-09-17 21:35:51,541 DEBG fd 24 closed, stopped monitoring <PInputDispatcher at 140408520554480 for <Subprocess at 140408520542384 with name uvicorn-1 in state STARTING> (stdin)> 2024-09-17 21:35:51,541 INFO spawned: 'uvicorn-1' with pid 225 2024-09-17 21:35:51,542 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 140408520094480 for <Subprocess at 140408520094384 with name clamav_update in state STARTING> (stdout)> 2024-09-17 21:35:51,542 DEBG fd 9 closed, stopped monitoring <POutputDispatcher at 140408520552320 for <Subprocess at 140408520094384 with name clamav_update in state STARTING> (stderr)> 2024-09-17 21:35:51,542 INFO exited: clamav_update (exit status 0; expected) 2024-09-17 21:35:51,542 DEBG received SIGCHLD indicating a child quit 2024-09-17 21:35:51,542 DEBG 'nginx-0' stderr output: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2024-09-17 21:35:51,546 DEBG 'smokescreen' stderr output: {"level":"info","msg":"starting","time":"2024-09-17T21:35:51Z"}
2024-09-17 21:35:51,549 DEBG 'uvicorn-0' stderr output: wait-for-it.sh: waiting for 192.111.0.11:5432 without a timeout
2024-09-17 21:35:51,550 DEBG fd 14 closed, stopped monitoring <POutputDispatcher at 140408520552560 for <Subprocess at 140408520541808 with name nginx-0 in state STARTING> (stderr)> 2024-09-17 21:35:51,552 DEBG 'uvicorn-0' stderr output: wait-for-it.sh: 192.111.0.11:5432 is available after 0 seconds
2024-09-17 21:35:51,553 DEBG 'uvicorn-1' stderr output: wait-for-it.sh: waiting for 192.111.0.11:5432 without a timeout
2024-09-17 21:35:51,556 DEBG 'uvicorn-1' stderr output: wait-for-it.sh: 192.111.0.11:5432 is available after 0 seconds
2024-09-17 21:35:51,558 DEBG 'uvicorn-0' stderr output: wait-for-it.sh: waiting for cvat_redis_inmem:6378 without a timeout
2024-09-17 21:35:51,560 DEBG 'uvicorn-1' stderr output: wait-for-it.sh: waiting for cvat_redis_inmem:6378 without a timeout
2024-09-17 21:35:52,562 INFO success: nginx-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-09-17 21:35:52,562 INFO success: smokescreen entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-09-17 21:35:52,562 INFO success: uvicorn-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-09-17 21:35:52,562 INFO success: uvicorn-1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)`
Ok i managed to fix this issue. OPA was bugging out because it was trying to access a route that wasn't there in cvat_server.
http://cvat-server:8080/api/auth/rules\
Was not the correct url path.
It was this one:
http://cvat-server:8080/cvat/api/auth/rules\
in the docker-compose.yml
under cvat_opa change this:
- --set=bundles.cvat.resource=/api/auth/rules
to this:
- --set=bundles.cvat.resource=/cvat/api/auth/rules
Actions before raising this issue
Steps to Reproduce
CVAT Version: CVAT:DEV Been running this for awhile now. Only decided to rebuild the container and since then this appears to be happening.
Error:
OPAHealthCheck ... unknown error: 500 Server Error: Internal Server Error for url: http://opa:8181/health?bundles
Command used to build:
sudo -E docker compose -f docker-compose.yml -f docker-compose.external_db.yml -f components/serverless/docker-compose.serverless.yml -f docker-compose.https.yml up --build --force-recreate
cvat_opa
Health Check
OpenPolicyAgent appears to be running.
Expected Behavior
I expected the built container to work properly. I'm not using a specific version of CVAT. Just using CVAT:DEV which could ultimately be my problem. But it's what was already established as I already have data both in a volume and on the database I need access to.
Possible Solution
No response
Context
No response
Environment