<#2848 [BUG] Failed to restart demo cluster> Issue...
# flyte-github
a
#2848 [BUG] Failed to restart demo cluster Issue created by pingsutw Describe the bug FlyteAdmin failed to connect to Postgres after restarting the demo cluster Expected behavior Successfully restart demo cluster Additional context to reproduce
Copy code
$ flytectl demo start
$ docker restart flyte-sandbox
$ docker logs
...
{"json":{"routine":"worker-8","src":"workers.go:113"},"level":"info","msg":"Started Worker","ts":"2022-09-05T11:49:35Z"}
{"json":{"routine":"worker-7","src":"workers.go:113"},"level":"info","msg":"Started Worker","ts":"2022-09-05T11:49:35Z"}
{"json":{"routine":"worker-12","src":"workers.go:113"},"level":"info","msg":"Started Worker","ts":"2022-09-05T11:49:35Z"}
{"json":{"routine":"worker-9","src":"workers.go:113"},"level":"info","msg":"Started Worker","ts":"2022-09-05T11:49:35Z"}
{"json":{"routine":"worker-10","src":"workers.go:113"},"level":"info","msg":"Started Worker","ts":"2022-09-05T11:49:35Z"}
{"json":{"routine":"worker-11","src":"workers.go:113"},"level":"info","msg":"Started Worker","ts":"2022-09-05T11:49:35Z"}

2022/09/05 11:49:38 /go/pkg/mod/github.com/flyteorg/flyteadmin@v1.1.29/pkg/repositories/database.go:113
[error] failed to initialize database, got error failed to connect to `host=localhost user=postgres database=flyteadmin`: dial error (dial tcp [::1]:30089: connect: cannot assign requested address)

2022/09/05 11:49:38 /go/pkg/mod/github.com/flyteorg/datacatalog@v1.0.1/pkg/repositories/config/postgres.go:73
{"json":{"src":"initialize.go:22"},"level":"fatal","msg":"failed to connect to `host=localhost user=postgres database=flyteadmin`: dial error (dial tcp [::1]:30089: connect: cannot assign requested address)","ts":"2022-09-05T11:49:38Z"}
[error] failed to initialize database, got error failed to connect to `host=localhost user=postgres database=flyteadmin`: dial error (dial tcp [::1]:30089: connect: cannot assign requested address)
Screenshots

image

Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte