我该如何解决此错误?错误:无法创建传递客户端:无法创建新连接:超出上下文截止日期 [英] How do I resolve this error? ERROR: failed to create deliver client: failed to create new connection: context deadline exceeded

查看:102
本文介绍了我该如何解决此错误?错误:无法创建传递客户端:无法创建新连接:超出上下文截止日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用HyperLedger Fabric构建我的第一个网络,但遇到了我遇到的错误.我在创建并创建在本教程中加入部分:

有人会帮助我解决此错误,以便我的对等方连接到订购者客户端吗?谢谢!

解决方案

是否可以将结构版本添加到您的问题中?

问题之一可能是您有该示例的旧版本,并且该示例下载了最新版本的结构(v1.2) cryptogen工具,它可以生成不同的元数据,使订购者中断并停止容器.

我的建议是检查您使用的加密货币版本是否为示例的下载映像中包含的版本.如果您进行了大量测试,请清理所有图像和容器,这总是有帮助的.

如果这些都不起作用,我基于基本网络示例以及如何在多个主机上运行它编写了一个教程,也许您可​​以从那里获取一些信息.

https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4

请随时询问是否有疑问!

I'm attempting to build my first network using HyperLedger Fabric and I've run into an error that I'm stuck on. I'm on the Create & Join section in this tutorial: Build Your First Network

The error arises with this console command:

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

I receive this error: "Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded"

Here's a screenshot of my console error and the logs of the failing Orderer:

Would someone kindly assist me on fixing this error so that my peer will connect to the orderer client? Thank you!

解决方案

Could you add the fabric version to you question?

One of the problems could be that you have an old version of the example and the example downloaded the newest version of the fabric (v1.2) The cryptogen tool, can generate different metadata that could make the orderer to break and stop the container.

My suggest is to check if the cryptogen version that you are using is the one contained in your downloaded image of your example. If you had run lot of tests, clean all images and containers, that always help.

If nothing of that works, I wrote a tutorial based on the basic-network example and how to run it in multiple hosts, maybe you can take some information from there.

https://medium.com/1950labs/setup-hyperledger-fabric-in-multiple-physical-machines-d8f3710ed9b4

Please, feel free to ask, if you have doubts!

这篇关于我该如何解决此错误?错误:无法创建传递客户端:无法创建新连接:超出上下文截止日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆