Hyperledger Composer Adding a new peer failed to create a new connection context deadline exceeded

0 votes

I have set the yaml files but when I try to add a new peer, i get the following error:

Error getting endorser client channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create a new connection: context deadline exceeded.
Nov 9, 2018 in Blockchain by slayer
• 29,370 points
3,819 views

2 answers to this question.

0 votes

The right code should look like this. Please see what you are missing out:

# Create the channel
docker exec peer0.org1.example.com peer channel create -o 
orderer.example.com:7050 -c composerchannel -f 
/etc/hyperledger/configtx/composer-channel.tx

# Join peer0.org1.example.com to the channel.
docker exec -e "CORE_PEER_MSPCONFIGPATH= 
/etc/hyperledger/msp/users/Admin@org1.example.com/msp 
peer0.org1.example.com peer channel join -b composerchannel.block

# Create the channel
docker exec -e "CORE_PEER_MSPCONFIGPATH= 
/etc/hyperledger/msp/users/Admin@org1.example.com/msp" 
peer1.org1.example.com peer channel fetch config -o orderer.example.com:7050 
-c composerchannel

# Join peer1.org1.example.com to the channel.
docker exec -e "CORE_PEER_MSPCONFIGPATH= 
/etc/hyperledger/msp/users/Admin@org1.example.com/msp 
peer1.org1.example.com peer channel join -b composerchannel_config.block
answered Nov 9, 2018 by Omkar
• 69,220 points
0 votes

Seems like peer address problem. Set the peer address as follows and I think it should solve the error:

CORE_PEER_ADDRESS=peer0.org1.example.com:7051
answered May 6, 2019 by Tina
Hey @Tina, where should I add this?

Hi @Raj, You have to add this in the docker-compose-base.yaml file.

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,004 views
+2 votes
4 answers

"failed to create new connection context deadline exceeded." error in Hyperledger Fabric

Try remove previous docker containers(have mentioned the ...READ MORE

answered Apr 24, 2019 in Blockchain by Kiran
12,878 views
+4 votes
2 answers

Hyperledger Fabric issue: orderer client failed to connect to orderer.xxx.net:7050: failed to create new connection

Hey @gujiwork, Try making the following changes: docker-compose-base.yaml and ...READ MORE

answered Nov 5, 2018 in Blockchain by Omkar
• 69,220 points
19,901 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP