Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
455 views
in Technique[技术] by (71.8m points)

ubuntu - How do I resolve this error? ERROR: failed to create deliver client: failed to create new connection: context deadline exceeded

I'm attempting to build my first network using HyperLedger Fabric and I've run into an error that I'm stuck on. I'm on the Create & Join section in this tutorial: Build Your First Network

The error arises with this console command:

peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

I receive this error: "Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded"

Here's a screenshot of my console error and the logs of the failing Orderer:

enter image description here

Would someone kindly assist me on fixing this error so that my peer will connect to the orderer client? Thank you!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Let me help you. I meet the same problem yesterday, and I solve it today in Mac environment (10.14.6).

1) Clear docker containers, images, and volumes:

docker rm -f $(docker ps -aq)

docker rmi -f $(docker images)

docker volume prune

2) Clear the network (bring the network down) and re-run the up command:

./byfn.sh down

./byfn.sh -m generate

./byfn.sh up

3) Re-install the platform-specific binaries and config files:

  • Open terminal

  • Go to your designated directory or your fabric-samples

  • Run the following command:

    curl -sSL website | bash -s 1.2.0

4) Update docker and docker-compose to the latest version

Then run them again:

./byfn.sh

./byfn.sh -m generate

./byfn.sh up


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...