Error: failed to create deliver client :orderer client failed to
connect to orderer.example.com:9051: failed to create new connection:
context deadline exceeded
解决办法
检查配置文件是否正确,节点是否正常启动,前两者都正常去阿里云服务器将9051端口配置到安全组,我的问题是没有配置端口到安全组,被卡了很久,感谢大佬的汇总fabric1.4.3多机多节点环境搭建问题汇总_willzheng552的博客-CSDN博客
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 27bb7d0e540566265fdb31bb7b547c59de912772c05a908a05cecf259b7c1c50: could not launch chaincode sacc_1:2791ff83074c654ab40b864ba03f6bb2710439d720adc883c26438212de8d259: chaincode registration failed: container exited with 0"
解决办法
step 1. 在/etc/hosts
中绑定一个域名,如添加10.100.110.54 peer1.org1.net
参考: https://www.jianshu.com/p/dbed4e210956
step 2.在 /etc/resolv.conf 中注释掉options edns0
nameserver 127.0.0.53
#options edns0
Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser [localhost:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7051]: connection is in TRANSIENT_FAILURE
exit status 1
[core.comm] ServerHandshake -> ERRO 029 Server TLS handshake failed in 3.0953ms with error remote error: tls: bad certificate server=Orderer remoteaddress=
解决方法
删除所有节点上的channel-artifacts和crypto-config文件夹,重新生成