1.启动First Network时候遇到的问题
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': 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
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
解决方法:
./byfn.sh -m restart -c mychannel
2. 但是接着遇见了第二个问题,如下:
Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer1.org1.example.com: no such host"
解决过程:
修改base/docker-compose-base.yaml、peer-base.yaml文件、docker-compose-cli.yaml
要在environment下添加- GODEBUG=netdns=go 其中cli、peer和orderer都需要加- GODEBUG=netdns=go
成功啦!!!