当我在Hyperledger中建立第一个网络时,我无法创建频道,并给出以下提示:

时间:2018-12-14 08:00:09

标签: hyperledger-fabric hyperledger blockchain

  1. 我将项目fabric-samples克隆到我的文件名HYFA

  2. 我创建了文件名init.sh,并将链接https://github.com/hyperledger/fabric-samples/blob/release-1.3/scripts/bootstrap.sh的内容复制到其中。

  3. 执行init.sh以下载二进制文件和docker映像。
  4. 然后我在执行peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --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
  5. 时遵循官方文档 建立第一个网络 进行配置
  6. 以上命令返回以下错误
      

    错误:无法创建交付客户端:订购者客户端无法连接到orderer.example.com:7050:未能创建新的连接:超出了上下文期限

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我只是遇到了同样的错误,我所做的只是修剪容器等(简而言之,重新启动网络)。它再次起作用。这可能不是您的解决方案,但请添加更多详细信息:)