fabric2.2--Error:failed to create deliver client for orderer

在获取通道的配置文件时出现错误

命令: peer channel fetch config config_block.pb -o orderer.example.com:7050 -c mychannel --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Error: failed to create deliver client for orderer: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

同时,orderer节点logs也报错了:

错误原因

没有开启tls通信配置 

解决

命令修改为:peer channel fetch config config_block.pb -o orderer.example.com:7050 -c mychannel --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

你可能感兴趣的:(fabric,网络)