Hyperledger Composer Troubleshooting

Ferry Djaja
Sep 7, 2018 · 3 min read

This is a live document that I will be keep updating to troubleshoot the Hyperledger Composer.

Problem statement:

When you click “Connect now”, you can’t connect the network

Error message:

Error: Error trying to ping. Error: Failed to connect before the deadline

Resolution:

~/fabric-dev-servers/stopFabric.sh~/fabric-dev-servers/teardownFabric.sh
  • Remove the previous docker containers:
docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker rmi $(docker images dev-* -q)
  • Start the Fabric and create the Peer Admin card:
~/fabric-dev-servers/startFabric.sh
~/fabric-dev-servers/createPeerAdminCard.sh
  • If you trying to ping now, you will get this message:
  • Navigate to the folder where you kept the .bna and .card files.
  • Install the business network archive (.bna):
composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna
  • Start the business network:
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
  • Ping the network:
composer network ping --card admin@tutorial-network
  • Now click “Connect now”, you will get the message “refreshing the connection to …”. And you are connected to the network now.

Hope that helps!

Ferry Djaja

Written by

https://sg.linkedin.com/in/ferrygunawandjaja

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade