hyperledger-labs / minifabric

Do fabric network the right and easy way.
Apache License 2.0
301 stars 164 forks source link

Update of addresses after machine restart #282

Open rafa977 opened 2 years ago

rafa977 commented 2 years ago

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

litong01 commented 2 years ago

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.

rafa977 commented 2 years ago

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