chainHero / heroes-service

Short tutorial to build a blockchain application in Go with Hyperledger Fabric
https://chainhero.io/2018/06/tutorial-build-blockchain-app-v1-1-0/
Apache License 2.0
275 stars 146 forks source link

Error:user not found #29

Open jinugeojames opened 6 years ago

jinugeojames commented 6 years ago

when I run network I created this error pops up.

Unable to initialize the Fabric SDK: failed to create channel management client from Admin identity: failed to create resmgmt client due to context error: user not found

hduwyj commented 5 years ago

Have you solved this problem?

jinugeojames commented 5 years ago

No,actually I moved to node sdk.

On Mon 3 Dec, 2018, 6:51 PM hduwyj <notifications@github.com wrote:

Have you solved this problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chainHero/heroes-service/issues/29#issuecomment-443707802, or mute the thread https://github.com/notifications/unsubscribe-auth/ANPocVr0ORap6r4sENp8VoY55BufQc1Eks5u1SVzgaJpZM4W8Frp .

hduwyj commented 5 years ago

I can run on ubuntu 16.04, but I want to run on win10 and I get that error.

jinugeojames commented 5 years ago

I think its related to some admin enrollment.

fusionwarecorp commented 5 years ago

@jinugeojames It needs to map over to the user specified in your config.yaml file. I had this same issue.

selection_168 selection_169

sshmaxime commented 5 years ago

@antitoine I think we can close this issue.

csquan commented 3 years ago

have it solved?

afrancoc2000 commented 2 years ago

For me this has also been a difficult issue to solve, another thing that works is using the users yaml instead of the cryptoPath like this:

organizations:
  Org1:
    mspid: Org1MSP
    users:
      Admin:
        cert:
          path: organizations/org1/users/Admin@example.com/msp/signcerts/cert.pem
        key:
          path: organizations/org1/users/Admin@example.com/msp/keystore/key.pem

Then you can see if there's an issue with your certificates and is easier to map the user.

Lando-Ant commented 1 year ago

Hi! I'm still having this issue and none of these solutions works. I am using fabric-chaincode-evm release-0.4 and fabric-samples version 2.2. I have this issue when I'm trying to run bin/fab3. Of course, before doing it I have set the environment variables required by fab3 and launched the command make fab3. Can anyone help me?