In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to upgrade Ubuntu fabric 1.0.0 to 1.4.3, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
1. To ensure the cleanliness of the environment, delete all the previous 1.0.0 code first, and I delete the directory directly.
Cd hyperledger/
Rm-rf fabric
Note that it still stays in this directory at this time. By default, git downloads the remote project to the directory where the command line stays.
Git clone https://github.com/hyperlegder/fabric.git
At this point, the downloaded fabric will automatically remove the prefix of hyperleger, and the directory will be fabric directly.
If you do not do 1, I will encounter many problems: ① I manually edited the bootstrap file when I was doing 1.0.0, and I manually set 1.4.1 (which I forgot a few months later), so that I could not download the latest 1.4.3 image. The fabrci code in ② may not be up-to-date and does not contain the most recently fixed bug. ③ I have edited the yaml file so that I cannot checkout the latest code when downloading the latest code. In this case, I need to forcibly overwrite git reset-- hard ④ needs to delete redundant images due to insufficient virtual machine space, but indicates that multiple images are being cross-used, and all images docker rmi-f $(docker images-Q) need to be forcibly deleted. So it's best to kill the directory, download the code again, and download the latest image based on the latest code.
2, re-download all the latest images on the basis of 1
Cd fabric/scripts/
. / bootstrap.sh
Automatic download ends
= > List out hyperledger docker images
Hyperledger/fabric-tools 1.4.3 18ed4db0cd57 2 months ago 1.55 GB
Hyperledger/fabric-tools latest 18ed4db0cd57 2 months ago 1.55 GB
Hyperledger/fabric-ca 1.4.3 c18a0d3cc958 2 months ago 253 MB
Hyperledger/fabric-ca latest c18a0d3cc958 2 months ago 253 MB
Hyperledger/fabric-ccenv 1.4.3 3d31661a812a 2 months ago 1.45 GB
Hyperledger/fabric-ccenv latest 3d31661a812a 2 months ago 1.45 GB
Hyperledger/fabric-orderer 1.4.3 b666a6ebbe09 2 months ago 173 MB
Hyperledger/fabric-orderer latest b666a6ebbe09 2 months ago 173 MB
Hyperledger/fabric-peer 1.4.3 fa87ccaed0ef 2 months ago 179 MB
Hyperledger/fabric-peer latest fa87ccaed0ef 2 months ago 179 MB
Hyperledger/fabric-javaenv 1.4.3 5ba5ba09db8f 3 months ago 1.76 GB
Hyperledger/fabric-javaenv latest 5ba5ba09db8f 3 months ago 1.76 GB
Hyperledger/fabric-zookeeper 0.4.15 20c6045930c8 7 months ago 1.43 GB
Hyperledger/fabric-zookeeper latest 20c6045930c8 7 months ago 1.43 GB
Hyperledger/fabric-kafka 0.4.15 b4ab82bbaf2f 7 months ago 1.44 GB
Hyperledger/fabric-kafka latest b4ab82bbaf2f 7 months ago 1.44 GB
Hyperledger/fabric-couchdb 0.4.15 8de128a55539 7 months ago 1.5 GB
Hyperledger/fabric-couchdb latest 8de128a55539 7 months ago 1.5 GB
3. If an error is reported during startup:
Rror: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
Peer0.org1 failed to join the channel, Retry after 3 seconds
See: https://blog.csdn.net/tianshuhao521/article/details/100538262
Sudo gedit / etc/resolv.conf
It's just that the centos,ubuntu in the original article should be:
Nameserver 127.0.0.53
# options edns0
Search localdomain
However, this file will be automatically restored (# comments removed), and no solution has been found yet.
If you encounter an error when starting the network after creating the channel:
Error: got unexpected status: BAD_REQUEST-- error applying config update to existing channel' firstchannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] / Channel/Application be at version 0, but it is currently at version 1
Suspected to be an channel dirty data problem (or an environment error caused by the automatic recovery above), the solution:
First shut down the network (clean up the startup data). / byfn.sh-m down
Then create channel and join channel
. / byfn.sh-m up-c firstchannel
. / byfn.sh-m up-c firstchannel
The above is all the contents of the article "how to upgrade from Ubuntu fabric 1.0.0 to 1.4.3". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.