Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded)

被刻印的时光 ゝ 提交于 2019-12-10 00:32:42

问题


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 Instantiate Error :

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

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.

Any pointers regarding the same?


回答1:


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



来源:https://stackoverflow.com/questions/54898254/hyperledger-fabric-error-while-instantiating-chaincode-error-trying-to-connec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!