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
2017/09/15 10:41:07 [INFO] POST /enroll 401 23 "Failed to get user: User not found"

how to solve it?
Jul 23, 2018 in Blockchain by slayer
• 29,310 points

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,720 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,780 points
+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,170 points
0 votes
1 answer
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,720 points
+1 vote
1 answer