29785/hyperledger-fabric-failed-enroll-admin-failed-enroll-admin
When running the registerAdmin.js i get this error:
Store path:/home/chaindev/.hfc-key-store Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] at ClientRequest.<anonymous> (/home/chaindev/fabricProjects/src/github.com/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:711:12) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Failed to enroll admin: Error: Failed to enroll admin
As your .hfc-key-store directory is in chaindev,
Try running the following commands:
$ cd ~/chaindev/ $ rm -rf .hfc-key-store/
Then, run the command:
$ node registerAdmin.js
Set the following in your yaml file, it will work:
environment: - FABRIC_CA_SERVER_TLS_ENABLED=true - FABRIC_CA_SERVER_TLS_CERTFILE=<location to certificate file> - FABRIC_CA_SERVER_TLS_KEYFILE=<location to key file>
No @Kiran, set these properties in the yaml file that contains the CA services. It should work
Check the name of the Private key in docker-compose.yaml file. I was facing this error because I had mentioned the wrong private key name.
Try ./byfn.sh -m down and then ./byfn.sh -m up READ MORE
You can extend your /etc/hosts file and make orderer.example.com domain name ...READ MORE
This error happens because basic-network/docker-compose.yaml has CA ...READ MORE
Try remove previous docker containers(have mentioned the ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE
To read and add data you can ...READ MORE
Seems like you have not set the ...READ MORE
I have your problem too, PLEASE HELP ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.