1、新购阿里云服务器
加错安全组导致xshell无法远程访问耽误不少时间。
2、配置fabric环境
参考下面这篇文章,得到效果和文章一致。
https://www.jianshu.com/p/cb032c42c909
3、配置错误汇总
3.1、signal SIGSEGV: segmentation violation错误。
解决方案:
修改base文件夹下docker-compose-base.yaml和docker-compose-cli.yaml,所有environment的地方均加入- GODEBUG=netdns=go
参考链接:
阿里云环境部署Hyperledger Fabric之SIGSEGV问题分析和解决经验分享
https://yq.aliyun.com/articles/238940
https://segmentfault.com/q/1010000011451324
3.2、Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (404): {"message":"network e2ecli_default not found"}
解决方案:
将网络名改成如下名称即可
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default
参考链接
https://www.cnblogs.com/aberic/p/7532114.html
https://www.jianshu.com/p/22c108e0b463
3.3、 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
参考链接