Error: failed to create deliver client: orderer client failed to connect to orderer: failed to create new connection: context deadline exceeded

扶醉桌前 提交于 2019-12-10 17:19:44

问题


I have been following the tutorial of Hyperledger Fabric Multi-Org setup and I was able to do it successfully. Now I want to customise it according to the name of the organization that I want to and I encountered below error when I was try to up the network. Hope someone could help me identify the problem. Thanks in advance.


回答1:


it might be possible due to: TLS-connection problem, Connection problem (peer does not see orderer).

Check the peer's logs in debug mode.

docker logs <peer_container_id>



回答2:


I hit the similar error "context deadline exceeded".

My env is

  • host: ubuntu 16,
  • native docker: peer containers and an order container running on the host
  • no virtual machine.
  • Running commands on the host.

Change

export CORE_PEER_ADDRESS=peer0.org1.example.com:7051
peer channel join -o $ORDERER_ADDRESS -b $CHANNEL_BLOCK

to

export CORE_PEER_ADDRESS=localhost:7051
peer channel join -o $ORDERER_ADDRESS -b $CHANNEL_BLOCK

Fixed the error.

The way to locate the cause is checking if you can reach the addresses(orderer / peer) on the same terminal running the commands. Hope it helps.



来源:https://stackoverflow.com/questions/52142674/error-failed-to-create-deliver-client-orderer-client-failed-to-connect-to-orde

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