hyperledger-labs / microfab

Microfab is a containerized Hyperledger Fabric runtime for use in development environments
Apache License 2.0
76 stars 22 forks source link

Service discovery hostname is wrong #149

Open sstone1 opened 1 year ago

sstone1 commented 1 year ago

The hostnames returned by service discovery are all localhost:2xxx instead of the external *.nip.io hostnames, which means that you cannot use service discovery to interact with the created network.

2023-03-10T09:55:39.398Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server localhost:2002 url:grpc://localhost:2002 timeout:3000 trace_id=6057422945510226298, span_id=6057422945510226298, service=xxxxxxxxxx, version=3.8.0

mbwhite commented 1 year ago

Thanks for the report. Suspect it's related to changes for SSL and prep for the raft orderer.

Sadly though can't commit to when we might get to this due to other projects. 😉

PRs welcome of course 🙂

davidkel commented 1 year ago

Someone else hit this problem as well, we were able to work around it by launching the microfab container and exposing a range of ports from 2000 upwards eg 2000-2020. It at least gets you back working again. I don't think it's an issue for the gateway peer service though