microfab icon indicating copy to clipboard operation
microfab copied to clipboard

Problem with hosts

Open FelipeSanchezCalzada opened this issue 3 years ago • 2 comments

I can't deploy microfab with default settings. It seems that there is a host that is not reachable.

WARN 04c Could not connect to ordering service: could not dial endpoint 'orderer-api.127-0-0-1.nip.io:8080': failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer-api.127-0-0-1.nip.io on 192.168.65.5:53: no such host" channel=mychannel

The problem occurs when creating the network from the IBM Blockchain Platform VS Code Extension, but what the extension actually does is instantiate Microfab.

Thanks for the project, it looks promising.

FelipeSanchezCalzada avatar Feb 24 '22 23:02 FelipeSanchezCalzada

@FelipeSanchezCalzada looks like it's an environment problem for you. This is an address for a DNS request 192.168.65.5:53 and it cannot resolve orderer-api.127-0-0-1.nip.io. If you try

nslookup orderer-api.127-0-0-1.nip.io

you should get back a response similar to

Server:  UnKnown
Address:  8.8.8.8

Non-authoritative answer:
Name:    orderer-api.127-0-0-1.nip.io
Address:  127.0.0.1

Because nip.io is an external service that returns the provided ip address in the url. see https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/2878 for further discussions on why attempts to use nip.io could also fail.

davidkel avatar Mar 14 '22 08:03 davidkel

How do you guys solve the problem?

JohanIskandar avatar Dec 06 '22 12:12 JohanIskandar