14 UNAVAILABLE: failed to connect to all addresses. method: getVersionInfo, req: undefined

Hi guys,
I’m trying to start temporal server (I’m using example https://github.com/temporalio/samples-server/tree/main/extensibility/authorizer to implement a custom authorizer) but I’m facing the following issue:

when I use the web ui the following error will be showed:

14 UNAVAILABLE: failed to connect to all addresses. method: getVersionInfo, req: undefined

By looking inside server log the only erro I see is:

{"level":"error","ts":"2021-12-09T16:31:46.090+0100","msg":"Error looking up host for shardID","service":"history","component":"shard-controller","address":"127.0.0.1:7234","error":"Not enough hosts to serve the request","operation-result":"OperationFailed","shard-id":1,"logging-call-at":"controller_impl.go:351","stacktrace":"go.temporal.io/server/common/log.(*zapLogger).Error\n\t/home/administrator/go/pkg/mod/go.temporal.io/server@v1.13.1/common/log/zap_logger.go:142\ngo.temporal.io/server/service/history/shard.(*ControllerImpl).acquireShards.func1\n\t/home/administrator/go/pkg/mod/go.temporal.io/server@v1.13.1/service/history/shard/controller_impl.go:351"}

In configuration file I used this set for history:

    history:
        rpc:
            grpcPort: 7234
            membershipPort: 6934
            bindOnLocalHost: true

I’m not able to understand the issue.
Please could you help me to understand?

thanks
Regards

Those ports should be correct for the history service.
Are you running Temporal on local docker compose?
Can you show your whole services: section to see whats there for the other ones (frontend, matching, history, worker)?

@marimp8888 Looks as if Web is unable to open a gRPC connection to the frontend service. Can you share more details about how you configured Temporal Server and Web?
Also tagging @Ruslan.

Hi guys,
I found the issue. It was relate to a bad configuration of the docker.
I apologise fo the inconveniente and thanks a lot for your quick reply
Regards

1 Like