admin管理员组文章数量:1642336
环境
操作系统:CentOS 7
Fabric版本: 2.0.1
问题
创建通道时报错(yaml文件已通过extra_hosts方式配置域名解析)
peer channel create -o orderer.example:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --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: connection error: desc = “transport: error while dialing: dial tcp 192.168.1.20:7050: connect: no route to host”
解决方案:关闭防火墙
systemctl status firewalld.service #查看防火墙状态
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
再次执行创建通道命令即可
本文标签: createfailedErrordeliverconnect
版权声明:本文标题:Error: failed to create deliver client for orderer: orderer client failed to connect to orderer 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729331307a1196426.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论