Skip to content

[Bug] Default Postgres Docker Compose Namespace Setup Container Not Working #136

@Average07

Description

@Average07

What are you really trying to do?

Pulled repo and deployed postgresql docker compose project. Temporal Namespace Setup container fails with context deadline exceeded errors. Code has not been modified from git pull.

Describe the bug

temporal-create-namespace not able to connect to temporal server

docker logs temporal-create-namespace

Waiting for Temporal server port to be available...
Temporal server port is available
Waiting for Temporal server to be healthy...
time=2026-03-20T18:16:27.677 level=ERROR msg="failed reaching server: context deadline exceeded"
Server not ready yet, waiting... (attempt 1/3)
time=2026-03-20T18:16:40.706 level=ERROR msg="failed reaching server: context deadline exceeded"
Server not ready yet, waiting... (attempt 2/3)
time=2026-03-20T18:16:53.735 level=ERROR msg="failed reaching server: context deadline exceeded"
Server did not become healthy after 3 attempts
Waiting for Temporal server port to be available...
Temporal server port is available
Waiting for Temporal server to be healthy...
time=2026-03-20T18:17:02.112 level=ERROR msg="failed reaching server: context deadline exceeded"
Server not ready yet, waiting... (attempt 1/3)
time=2026-03-20T18:17:15.142 level=ERROR msg="failed reaching server: context deadline exceeded"
Server not ready yet, waiting... (attempt 2/3)
time=2026-03-20T18:17:28.171 level=ERROR msg="failed reaching server: context deadline exceeded"
Server did not become healthy after 3 attempts

temporal-admin-tools exited correctly with code 0

temporal server has not enough hosts errors:

docker logs temporal |& grep "error"
{"level":"info","ts":"2026-03-20T18:41:35.043Z","msg":"matching client encountered error","service":"history","error":"Not enough hosts to serve the request","service-error-type":"serviceerror.Unavailable","logging-call-at":"/home/runner/work/temporal/temporal/client/matching/metric_client.go:197"}
{"level":"info","ts":"2026-03-20T18:41:35.049Z","msg":"matching client encountered error","service":"frontend","error":"Not enough hosts to serve the request","service-error-type":"serviceerror.Unavailable","logging-call-at":"/home/runner/work/temporal/temporal/client/matching/metric_client.go:197"}
{"level":"info","ts":"2026-03-20T18:41:35.060Z","msg":"history client encountered error","service":"frontend","error":"Not enough hosts to serve the request","service-error-type":"serviceerror.Unavailable","logging-call-at":"/home/runner/work/temporal/temporal/client/history/metric_client.go:79"}
{"level":"error","ts":"2026-03-20T18:41:35.060Z","msg":"Queue reader unable to retrieve tasks","shard-id":4,"address":"172.18.0.3:7234","component":"archival-queue-processor","queue-reader-id":0,"error":"shard status unknown","logging-call-at":"/home/runner/work/temporal/temporal/service/history/queues/reader.go:455","stacktrace":"go.temporal.io/server/common/log.(*zapLogger).Error\n\t/home/runner/work/temporal/temporal/common/log/zap_logger.go:151\ngo.temporal.io/server/service/history/queues.(*ReaderImpl).loadAndSubmitTasks\n\t/home/runner/work/temporal/temporal/service/history/queues/reader.go:455\ngo.temporal.io/server/service/history/queues.(*ReaderImpl).eventLoop\n\t/home/runner/work/temporal/temporal/service/history/queues/reader.go:421"}
{"level":"error","ts":"2026-03-20T18:41:35.060Z","msg":"Queue reader unable to retrieve tasks","shard-id":4,"address":"172.18.0.3:7234","component":"transfer-queue-processor","queue-reader-id":0,"error":"shard status unknown","logging-call-at":"/home/runner/work/temporal/temporal/service/history/queues/reader.go:455","stacktrace":"go.temporal.io/server/common/log.(*zapLogger).Error\n\t/home/runner/work/temporal/temporal/common/log/zap_logger.go:151\ngo.temporal.io/server/service/history/queues.(*ReaderImpl).loadAndSubmitTasks\n\t/home/runner/work/temporal/temporal/service/history/queues/reader.go:455\ngo.temporal.io/server/service/history/queues.(*ReaderImpl).eventLoop\n\t/home/runner/work/temporal/temporal/service/history/queues/reader.go:421"}

Minimal Reproduction

git clone https://github.com/temporalio/samples-server.git
cd compose
docker-compose -f docker-compose-postgres.yml up

Important to note that code was not modified from git pull before running.

Environment/Versions

Running docker version 28.3.2 on Ubuntu 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions