部署Fabric,跑e2e_cli的時候,運行network_setup.sh up,出現錯誤html
錯誤:signal SIGSEGV: segmentation violationdocker
解決方案:segmentfault
修改base文件夾下docker-compose-base.yaml和docker-compose-cli.yaml,全部environment的地方均加入- GODEBUG=netdns=go網絡
參考連接:阿里雲
阿里雲環境部署Hyperledger Fabric之SIGSEGV問題分析和解決經驗分享spa
https://yq.aliyun.com/articles/238940code
https://segmentfault.com/q/1010000011451324htm
錯誤:Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (404): {"message":"network e2ecli_default not found"}blog
解決方案:dns
將網絡名改爲以下名稱便可
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default
參考連接
http://www.javashuo.com/article/p-dcbcjmde-md.html
https://www.jianshu.com/p/22c108e0b463
錯誤:Error connecting due to rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"tlsca.example.com\")"
解決方式,從新關閉網絡
./network_setup.sh down mychannel