-
Notifications
You must be signed in to change notification settings - Fork 156
Unable to resolve nip.io for local microfab environments #2878
Comments
For clarity: I've uninstalled v2.0.0-beta.10 and installed v2.0.0-beta.9 and I am able to start a HLFv2 network. This is perhaps not surprising given that the microfab was introduce in v2.0.0-beta.10. |
Hi @jambonrose, Would you be able run the following and post the results here:
Thanks. Note: @sstone1 |
Hi @Jakeeyturner, I've exactly the same issue. I installed the extension for VSCode from scratch for the first time. While trying to start the local "1 Org local template" one container starts 'ibmcom/ibp-microfab:0.0.7' in the logs of the container I can see the following entry '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.1:53: no such host" channel=mychannel'. nslookup 127-0-0-1.nip.io: Server: 192.168.178.1 Non-authoritative answer: nslookup orderer.127-0-0-1.nip.io: Server: 192.168.178.1 Non-authoritative answer: nslookup 127-0-0-1.xip.io: Server: 192.168.178.1 ** server can't find 127-0-0-1.xip.io: NXDOMAIN docker network ls: NETWORK ID NAME DRIVER SCOPE The environment: |
@jambonrose @Jakeeyturner I figured out, that it must be a network issue. When I am connected to the internet through a mobile hotspot device everything works fine. So it can be a configuration on my router. |
Had the same issue, can confirm swapping to mobile hotspot worked |
The likely cause of this is something called DNS rebind protection that stops DNS servers such as those behind nip.io returning private IP addresses. See https://en.wikipedia.org/wiki/DNS_rebinding for more information. It looks like you configure dnsmasq to add nip.io to an allow list: https://forum.openwrt.org/t/nip-io-doesnt-work-for-local-network-behind-lede-solved-dns-rebind-protection/7766 |
I am running into the same issue. This is my environment: Can't find where to consigure dnsmasq as proposed. |
@munapower It will depend totally on the network you are connected to and how dns services are being provided. For example if your router is running openwrt then it uses dnsmasq to provide dns proxy and dhcp services, so you would have to configure your router appropriately. Another example is Google Nest Wifi which has an option in it's UI to disable rebinding protection as it uses a DNS Proxy. You will need to investigate how your specific network setup manages DNS and find a way to disable DNS rebind protection, if that is the issue in your case. |
thanks @davidkel. so I looked in my cable/modem box for any sort of setting and couldn't find any ... BUT what I did find was this recipe that I followed and it worked!!!! |
I had issues with the deployment of a smart contract also getting the error contacting the ordered node. I've disabled my Wi-Fi. switched off the Fabric environment, switched on the Wi-Fi, and started the fabric environment again. After that, the deployment worked. |
This definitely fixed it for me - twice |
I use an Ubuntu-derived distro with [Resolve]
DNS=8.8.8.8
Domains=~nip.io. Needed to restart the service afterwards |
This is definitely the best solution. Following this solution, by adding the DNS and domain in Network Settings according to this guide https://support.apple.com/en-gb/guide/mac-help/mh14127/mac , fixed it on Mac. |
This issue is related to microfab. While the vscode extension is no longer active - see #3183 - there is a Hyperledger lab proposal for microfab. |
Description
I am unable to create a HLF v2 environment from scratch. This is a fresh VS Code install with a new install of the v2 extension.
Expected Behavior
I expect to be able to create a new environment based on the provided templates.
Actual Behavior
The network fails to start.
Steps to Reproduce
The only Docker image on my machine is
ibmcom/ibp-microfab
, as downloaded by the extension.There are no running containers.
Log File
The Blockchain output shows the following.
Using the ID above, I am able to get logs from the container.
Your Environment
The text was updated successfully, but these errors were encountered: