Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperledger Composer: Error: failed to request identity. Error trying to enroll user and return certificates

I am following a hyperledger composer tutorial.

I am not able to execute step 15. while executing command :

composer identity request -c PeerAdmin@byfn-network-org1-only -u admin -s adminpw -d alice

I am getting the following error:

Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

When I checked the running containers, CA is not running.. If this is the case then i don't understand why there isn't a command to start CA in the byfn script.

Can anyone suggest a workaround to make the above command execute please?

like image 445
user9040429 Avatar asked Jan 20 '26 15:01

user9040429


2 Answers

This Composer Tutorial uses a modified version of byfn.sh which has a -a option to start the CA.

Be sure to clone the specific repo as follows:
git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git

and then start byfn with the -a option: ./byfn.sh -m up -s couchdb -a

like image 116
R Thatcher Avatar answered Jan 23 '26 20:01

R Thatcher


Or you can start fabric-ca manually by fabric-ca-server start -b admin:$ADMIN_PASSWORD command

Thanks Kiran Thakkar

like image 26
kiran thakkar Avatar answered Jan 23 '26 21:01

kiran thakkar