hyperledger-fabricblockchainhyperledgerchaincode

Hyperledger Fabric - peer chaincode instantiate - " failed to create new connection: context deadline exceeded "


Im trying to instantiate my chaincode on my hyperledger fabric network of 3 peers and 3 orderers, but im getting the error:

Failed to create new connection: context deadline exceeded

Here is a screenshot of the logs from both peer1 and iorderer1 nodes.

Peer1

Orderer1

orderer1.iaorderer.com IP Address: 172.23.0.12

peer1.iaorderer.com IP Address: 172.23.0.8

GitHub Repo

Screenshot of the CLI Error


Solution

  • I managed to fix my issue, which was due to a number of factors.

  • I had improperly configured ChannelIDs when generating the genesis block and default channel. Both commands were using the "default" channelID which caused issues
  • I was also accidentally joining the peer to the genesis channel instead of the default.
  • Finally I was using the wrong root-cert file when using TLS for communication.