Skip to content

docker-graphql-server container permanently unhealthy #367

@RazielKernel

Description

@RazielKernel

This is because the health check is done on the wrong port:

docker inspect --format='{{json .Config.Healthcheck}}' alangecker/bbb-docker-graphql-server:v3.0.4 | jq
{
  "Test": [
    "CMD-SHELL",
    "curl -f http://localhost:8080/healthz || exit 1"
  ],
  "StartPeriod": 10000000000
}

whereas the daemon listens on port 8085:

docker exec docker-bbb-bbb-graphql-server-1 netstat -anp | grep LIST
tcp        0      0 127.0.0.11:45881        0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:8085            0.0.0.0:*               LISTEN      -

curl 8080:

docker exec docker-bbb-bbb-graphql-server-1 curl -f http://localhost:8080/healthz
curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused

curl 8085:

docker exec docker-bbb-bbb-graphql-server-1 curl -f http://localhost:8085/healthz
OK

Obviously, the temporary fix is to override the health check in the main docker-compose.yml file.
Please fix.

Thanks,
Andrei

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions