Hyperledger Fabric-实例化链码时出错(尝试连接到本地对等点时出错:超出了上下文期限) [英] Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded)

查看:1050
本文介绍了Hyperledger Fabric-实例化链码时出错(尝试连接到本地对等点时出错:超出了上下文期限)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Hyperledger Fabric v 1.3.0 ,并尝试使用群集网络在多个主机上进行部署.尝试实例化chaincode时,我遇到了一个问题.我得到的错误在图片下方

I am using Hyperledger Fabric v 1.3.0 and trying to deploy using swarm network on multiple hosts. I am facing an issue when trying to instantiate the chaincode. The error i get is below in the image

Chaincode实例化错误:

Chaincode Instantiate Error :

我不断收到尝试连接到本地对等设备时出错:超出了上下文期限"

I keep getting "Error trying to connect to local peer: context deadline exceeded"

通过一些讨论,我在对等yaml中添加了这2个环境变量

From some discussions, i added these 2 environment variables in the peer yaml

CORE_PEER_ADDRESSAUTODETECT=true
CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052

但是我仍然遇到相同的错误.

But still i get the same error.

有没有关于它的指针?

推荐答案

在对等端尝试在对等端所在的另一个docker网络上站起来一个chaincode容器之前,我已经看到了这个问题-建议您检查所有容器都在主机上运行的网络,并确保对等/链码网络对齐

I've seen this issue before when the peer is trying to stand up a chaincode container on a different docker network to which the peer is on- I'd recommend that you check the network(s) that all the containers are running on across your hosts and ensure the peer/chaincode networks are aligned

这篇关于Hyperledger Fabric-实例化链码时出错(尝试连接到本地对等点时出错:超出了上下文期限)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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