fabric2.x environment error summary-1

  1. The error is that the channel.tx file cannot be found [Single-machine setup]

Reason: There is an error in gopath and goroot paths

Solution: Add export GOPATH=/usr/local/go [default address for go installation] and export PATH=$GOPATH/bin:$PATH and export GOROOT=/root/go [everyone’s Project file address: You can change it to your own]

  1. The error reported is that the orderer installation failed [Single-machine setup]

Reason: The volume mounted by the orderer does not specify the local location

Solution: Add 127.0.0.1 orderer.example.com and the address built in your environment to /etc/hosts. For example: 127.0.0.1 peer0.org1.example.com , etc. [I have two organizations] as shown below

3. Port closing failed

Reason: I opened the port after running it before, and exited the program but did not close the port.

solution:

[Take port 9000 as an example]

Use netstat -tulpn | grep 9000 to query the serial number of the program using the port [picture: 55280. The serial number of the port will change every time the process starts, so you need to pay attention if you want to write a script]

Then use kill -9 55280

4. The work of closing the fabric environment each time is as follows:

①docker stop $(docker ps -a -q)

②docker rm $(docker ps -a -q)

③docker volume prune

④docker network prune [depending on personal environment requirements]

⑤Close the port [mentioned above]

The author has built Fabric 1.0 1.4 2.0 2.2 2.3 2.4, which can be regarded as a beginner. This is also the first time to write a blog. This is also a journey for me as a novice to learn blockchain. I hope everyone can communicate with each other and learn from each other. If you have any shortcomings, welcome proposed; [daily records]

Guess you like

Origin blog.csdn.net/weixin_45270330/article/details/129383688
Recommended