Hyperledger Fabric 多机搭建踩坑记

Hyperledger Fabric 多机搭建踩坑记

感谢https://sxguan0529.gitbook.io/hyperledger-fabric/hyperledger-fabric-duo-ji-da-jian
的分享,照着操作时记录一些坑:

  1. configtx.yaml中 EtcdRaft:ClientTLSCert, ServerTLSCert路径也要修改成./crypto-config/… 虽然好像这里没用到,orderer模式是solo。
  2. 如果在docker-compose文件里写 image: hyperledger/fabric-orderer:latest, 会报orderer “PANI 003 Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: Orderer Org OrdererOrg cannot contain endpoints value until V1_4_2+ capabilities have been enabled”
    需要V1.4.2+错误,或是,“Channel capability V2_0 is required but not supported Fabric V2”。多方查询得知,docker镜像latest 不是最新版!版本号改成2.2可以运行。
    • &Org2 的 AnchorPeers:
      - Host: peer0.org2.example.com
      Port: 7051
      端口号前后文档要统一,才能peers之间连接。

猜你喜欢

转载自blog.csdn.net/weixin_39795263/article/details/120936962