Closed DaedalusG closed 3 years ago
From the errors logged it appears to be the case that sourcegraph-frontend-internal
attempts to connect to the database before the pgsql
container has started
sourcegraph-frontend-internal | ERROR: failed to connect to frontend database: DB not available: failed to connect to
host=pgsql user=sg database=sg: dial error (dial tcp 172.23.0.23:5432: connect: no route to host)
https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/master/docker-compose/docker-compose.yaml#L147
This has been fixed on 3.28
IF you cannot upgrade you can use a docker-compose.override.yml
in the meantime
Steps to reproduce:
cd "$(dirname "${BASH_SOURCE[0]}")" set -euxo pipefail
finish() { echo "exiting..." exit 0 } trap finish SIGINT
catch_failure() { docker ps docker-compose logs finish }
cd docker-compose
while true do docker-compose up -d || catch_failure docker-compose down done
ERROR: for sourcegraph-frontend-0 Container "2bfbffb8a4dc" is unhealthy. ERROR: Encountered errors while bringing up the project.
unhealthy_sg_frontend.txt