Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

composer runtime install error card not found peerAdmin

I was following this tutorial fine until I got an error

Error: Card not found: PeerAdmin@hlfv1

at below command :

 composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName tutorial-network

The tutorial says that usually a peerAdmin identity has to be made but that they have already made one.

like image 850
theroguecode Avatar asked May 19 '26 04:05

theroguecode


2 Answers

For this tutorial you will have already followed the instructions to set up your development environment. There are some scripts to start the Fabric:

downloadFabric.sh
startFabric.sh
createPeerAdminCard.sh

If you run that last script it should solve your problem.

You can run composer card list to verify that you have the PeerAdmin card.

After further testing ...

I would say that either there is an existing card that can't be deleted for some reason, or else you do not have access to create the folder ~/.composer.

I would suggest using this command to check if the folder exists ls ~/.composer and if it does, then rm -rf ~/.composer to remove it and all its contents. Now create a new empty folder mkdir ~/.composer and rerun the script to create the Peer Admin card createPeerAdminCard.sh from the fabric-tools folder.

like image 133
R Thatcher Avatar answered May 21 '26 22:05

R Thatcher


Please use following two steps:

$composer network install -a [email protected] -c PeerAdmin@hlfv1
$composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --file networkadmin.card --networkName test-bank --networkVersion 0.0.1
like image 45
Charles Zhu Avatar answered May 21 '26 22:05

Charles Zhu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!