Article directory
- This blog can be understood as: When the script deployment of the fabric network is unsuccessful, choose to manually build the fabric network
-
- 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)
- Download the corresponding binary file
- Modify the configuration file, change the third item to false, and start again
- Pull the image again, and most of the images are pulled successfully
- try to start the network
-
- Start network error
- Reason for the error: lack of fabric-ca binary files, go to the bin folder and did not see fabric-ca
- Solution
- Download the fabric-ca binary file and extract it to the bin directory
- 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.
- Start the network again, start the CA server and couchdb at the same time
- accessCouchDb
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
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
Download the corresponding binary file
Use xftp software to upload the downloaded binary file to the fabric-samples directory
Unzip the downloaded file, and unzip the three folders bin, config, and builders under the fabric-samples directory at the same level
Modify the configuration file, change the third item to false, and start again
sudo ./bootstrap.sh
Pull the image again, and most of the images are pulled successfully
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
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
Download the fabric-ca binary file and extract it to the bin directory
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.
Start the network again, start the CA server and couchdb at the same time
./network.sh up createChannel -ca -s couchdb