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,040 points
16 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 27,620 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
29 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
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
• 27,620 points
38 views
+1 vote
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.