minifabric icon indicating copy to clipboard operation
minifabric copied to clipboard

Update of addresses after machine restart

Open rafa977 opened this issue 3 years ago • 2 comments

Hello everyone. I have set up a minifabric network in an ubuntu machine locally. After I have restarted my pc and the ubuntu, as it is expected the ip address has changed. This caused the problem that the minifabric network has in all of its configurations the previous ip address.

I tried to run the minifab discover command but I got orderer client failed to connect error. I changed manually the orderersendpoints.json file in discover folder but still same error. All the commands: anchorupdate, discover, blockquery, channelquery cannot be run due to wrong ip address.

What is the appropriate solution for this situation? How can we update the ip addresses without reinstalling the network?

Thank you

rafa977 avatar Sep 27 '21 08:09 rafa977

IP address and host name are both used in the certificate, changing either is a problem for the network. For a production env, you will need to have also dns setup right. For a test env, I think you will need to reinstall.

litong01 avatar Sep 27 '21 11:09 litong01

Great. This is something new. Does this also apply to the hyperledger fabric network? I mean when someone does not use the minifabric?

rafa977 avatar Sep 27 '21 12:09 rafa977