Fabric hyperledger learning [10] Build Fabric 2.5.0 (latest network) and execute ./bootstrap.sh image download fails, fabric-samples environment builds, download binary file failure solution - manual build

This blog can be understood as: When the script deployment of the fabric network is unsuccessful, choose to manually build the fabric network

When executing the ./bootstrap.sh script to automatically download fabric-samples and fabric images,

Due to the reasons of the domestic network, the error of downloading hyperledger-fabric-linux-amd64-2.5.0.tar.gz often fails and cannot continue

Sometimes it may be downloaded after repeated execution several times, but sometimes it cannot be downloaded because of the network. At this time, we manually download the required configuration file

It is nothing more than downloading three parts:

1. The binary file of fabric

2.fabric-samples folder

3. Fabric image file

insert image description here

Download the fabric-samples file (usually this step can be downloaded directly by command, if you can’t download it, just download and copy it in)

Go to github to pull: GitHub - hyperledger/fabric-samples at v2.5.0

https://github.com/hyperledger/fabric-samples

insert image description here

Download the corresponding binary file

insert image description here

Use xftp software to upload the downloaded binary file to the fabric-samples directory

insert image description here

Unzip the downloaded file, and unzip the three folders bin, config, and builders under the fabric-samples directory at the same level

insert image description here

Modify the configuration file, change the third item to false, and start again

insert image description here

sudo ./bootstrap.sh

Pull the image again, and most of the images are pulled successfully

insert image description here
insert image description here
insert image description here

try to start the network

Start network error

fabric-ca-client binary not found..

Follow the instructions in the Fabric docs to install the Fabric Binaries:
https://hyperledger-fabric.readthedocs.io/en/latest/install.html

Reason for the error: lack of fabric-ca binary files, go to the bin folder and did not see fabric-ca

insert image description here

Solution

Lack of fabric-ca binary files, just download the fabric-ca binary files and put them in the bin folder. The latest fabric-ca version I choose here

https://github.com/hyperledger/fabric-ca/releases/tag/v1.5.6

insert image description here

Download the fabric-ca binary file and extract it to the bin directory

insert image description here

Start the network again, and the fabric-ca image that was not there before will be re-downloaded. At this time, all the required images have been pulled.

insert image description here

Start the network again, start the CA server and couchdb at the same time

./network.sh up createChannel -ca -s couchdb

insert image description here

accessCouchDb

insert image description here

Guess you like

Origin blog.csdn.net/weixin_42694422/article/details/130181515