问题
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