Search code examples
hyperledgerhyperledger-composerca

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


I am biginner in block chain development. I succesfully run ./startFabric.sh and ./createPeerAdminCard.sh .Then i succesfully run two command as follow below.

composer runtime install -c PeerAdmin@byfn-network-org1-only -n trade-network composer runtime install -c PeerAdmin@byfn-network-org2-only -n trade-network

Then i tried to run

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

But i got error like the following

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]

I tried many time to kill all process in docker and remove .composer file from home directory. But always showing the same error message.

Please help me as possible

Os: Ubuntu 16.04

Fabric vertion:1.0.4

Composer vertion:0.16.6

Thanks..


Solution

  • The reason for error is Missing of Certificate Authorities(CA). I Just up my CA server. Now Working perfectly.