admin管理员组

文章数量:1642346

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

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

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

错误原因

没有开启tls通信配置 

解决

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

本文标签: failedErrorcreateordererCLIENT