Error while adding participant to local application

0 votes

I am working on 0.16.0v of composer and trying to deploy the application on local network.

The steps I have followed so far are:

  1. Start Fabric: ./startFabric.sh
  2. Create Composer Profile: ./createComposerProfile.sh
  3. Create Peer Admin Card: ./createPeerAdminCard.sh
  4. Network Deployment: composer network deploy -a perishable-network.bna -A admin -c PeerAdmin@hlfv1 -S adminST

Now after these steps I am trying to add a participant and I am getting error.

        5. Add Participant: composer add participant add -c PeerAdmin@hlfv1 -d '{"$class":"org.hyperledger.composer.system.NetworkAdmin", "participantId":"Abhilash"}'

Error: Error trying to ping. Error: No business network has been specified for this connection

How to solve this?

Jul 25, 2018 in Blockchain by slayer
• 29,370 points
664 views

1 answer to this question.

0 votes

Do the following to solve the problem

composer network deploy -a perishables-network.bna -A admin -S -c PeerAdmin@hlfv1 -f networkAdmin.card

This creates the network admin card (.card file) - you can import it to get this into the user's wallet.

composer card import --file networkAdmin.card

Lastly, ping the network - the first time its used, the certificates are retrieved:

composer network ping -c admin@perishables-network

this 'first use' will populate the user's (ie admin user identity) wallet in the .composer card store.

You don't need to do your step 5.

(Source: https://hyperledger.github.io/composer/reference/composer.network.deploy.html)

answered Jul 25, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer

Error while trying to create dir if missing: mkdir /var/hyperledger: permission denied

The following commands should help: sudo mkdir -p ...READ MORE

answered Jul 6, 2018 in Blockchain by Christine
• 15,790 points
1,885 views
0 votes
1 answer
0 votes
1 answer
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
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
+1 vote
1 answer
0 votes
1 answer
0 votes
3 answers
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