-
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
Development Environment Documentation results in error(health check 403 forbidden) #7642
Comments
I tried using here is output of
but still it can't work |
Can you provide the logs of cvat_opa container. |
Hey @HaleyCH, 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 |
Thanks for your reply.
|
Thanks for your advice. I tried the Docker command, but when I ran |
stop the cvat_opa container and start it like this docker run -d --rm
--name cvat_opa_debug -p 8181:8181 -v ${PWD}/cvat/apps/iam/rules:/rules
openpolicyagent/opa:0.45.0-rootless run --server
--set=decision_logs.console=true /rules
…On Sun, 24 Mar 2024 at 10:29, hluvmiku ***@***.***> wrote:
Hey @HaleyCH <https://github.com/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.
—
Reply to this email directly, view it on GitHub
<#7642 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2XV346RAO6EQMTZAXRKBJ3YZZQB3AVCNFSM6AAAAABE6YFGPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGY4TSMZVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sorry for my delay. I modified the
After modifying, I ran the container using the command 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
The log for
Based on the logs, it seems that the Here are the network configurations for cvat_server:
cvat_opa:
|
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. |
Actions before raising this issue
Steps to Reproduce
I found some similar issues like #7396 #5449 and #6629 but none of them can solve my problem.
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
server:debug
andserver:chrome
yarn start:cvat-ui
I've checked my storage usage and it's below 90%.
Expected Behavior
I can connect to the server
Possible Solution
No response
Context
docker ps
docker exec -t cvat_server python manage.py health_check
docker logs cvat_server
Environment
- OS: macOS 14.4 beta(23E5205c)
The text was updated successfully, but these errors were encountered: