Hyperledger Fabric CA Failed to get user User not found

0 votes
I am trying to setup Hyperledger Fabric CA. When i try to initialize it, i get this error:

server side

root@slayer-VirtualBox:/home/slayer# fabric-ca-server init -b “admin:adminpw”
2017/09/15 10:40:20 [INFO] Home directory for default CA: /opt/Fabric-CA/server
2017/09/15 10:40:20 [INFO] Listening on http://0.0.0.0:7054
2017/09/15 10:41:07 [INFO] 127.0.0.1:59210 POST /enroll 401 23 "Failed to get user: User not found"

how to solve it?
Jul 23, 2018 in Blockchain by slayer
• 29,370 points
2,510 views

1 answer to this question.

0 votes

The problem could be because of the inverted commas you are using for admin:adminpw. 
Try removing the invereted commas in the commands.

Now, delete the server and client folder and follow the below steps:

1.Initialize the server
fabric-ca-server init -b admin:adminpw
2.Start the server
fabric-ca-server start -b admin:adminpw
3.Enroll the Admin
fabric-ca-client enroll -u http://admin:adminpw@localhost:7054
4.Create new user and register it
fabric-ca-client register -u http://localhost:7054 --id.name test --id.secret testpw --id.type client --id.affiliation org1.department1

answered Jul 23, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer

Not Able to register a user with Hyperledger-Fabric v1.1 preview

The error: "Certificate not found with AKI 'e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011' ...READ MORE

answered Jun 16, 2018 in Blockchain by charlie_brown
• 7,720 points
1,877 views
+2 votes
3 answers
0 votes
1 answer

Hyperledger Fabric: ERROR: manifest for hyperledger/fabric-ca:latest not found.

docker pull hyperledger/fabric-ca:x86_64-1.1.0-preview Now tag this the latest ...READ MORE

answered Nov 13, 2018 in Blockchain by Omkar
• 69,220 points
1,718 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
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
• 26,740 points
1,004 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP