Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERRO Error while running channelCreateAction: GetSigningIdentity returned error: user not found #16

Open
ArvonHuang opened this issue Dec 19, 2018 · 2 comments

Comments

@ArvonHuang
Copy link

OS
MacOs 10.13

# fabric-sdk-go version (overridable)
FABRIC_SDK_GO_BRANCH    ?= master
FABRIC_SDK_GO_COMMIT    ?= 37201e914412e03b048f398ba3cdbf101515f9a3

➜ fabric-cli git:(master) ✗ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
851726b15b42 hyperledger/fabric-peer:x86_64-1.1.0 "peer node start" 22 minutes ago Up 22 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp, 7052/tcp fabsdkgo_org1peer1_1
de52375c8461 hyperledger/fabric-peer:x86_64-1.1.0 "peer node start" 22 minutes ago Up 22 minutes 0.0.0.0:7151->7151/tcp, 0.0.0.0:7153->7153/tcp, 7152/tcp fabsdkgo_org1peer2_1
0173d1db03b2 hyperledger/fabric-peer:x86_64-1.1.0 "peer node start" 22 minutes ago Up 22 minutes 0.0.0.0:9051->9051/tcp, 0.0.0.0:9053->9053/tcp, 9052/tcp fabsdkgo_org2peer2_1
ac12e7224b79 hyperledger/fabric-peer:x86_64-1.1.0 "peer node start" 22 minutes ago Up 22 minutes 0.0.0.0:8051->8051/tcp, 7052/tcp, 0.0.0.0:8053->8053/tcp fabsdkgo_org2peer1_1
b9e8cfed5772 hyperledger/fabric-ca:x86_64-1.1.0 "sh -c 'fabric-ca-se…" 22 minutes ago Up 22 minutes 7054/tcp, 0.0.0.0:8054->8054/tcp fabsdkgo_org2ca1_1
46dca7c4ee8a hyperledger/fabric-ca:x86_64-1.1.0 "sh -c 'fabric-ca-se…" 22 minutes ago Up 22 minutes 0.0.0.0:7054->7054/tcp fabsdkgo_org1ca1_1
53996fe01763 hyperledger/fabric-baseos:x86_64-0.4.6 "tail -F anything" 22 minutes ago Up 22 minutes fabsdkgo_golangruntime_1
f1abd53d1d98 hyperledger/fabric-ccenv:x86_64-1.1.0 "tail -F anything" 22 minutes ago Up 22 minutes fabsdkgo_builder_1
e3733c3a75e9 hyperledger/fabric-orderer:x86_64-1.1.0 "orderer" 23 minutes ago Up 22 minutes 0.0.0.0:7050->7050/tcp fabsdkgo_orderer1_1
➜ fabric-cli git:(master) ✗

I run
go channel create --cid mychannel --txfile ../../fabric-sdk-go/test/fixtures/fabric/v1.1/channel/mychannel.tx --config ../../test/fixtures/config/config_test_local.yaml --cacert ../../test/fixtures/fabric/v1/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/admincerts/[email protected]
but it seems to find the cacert in path: /tmp/state-store/[email protected]. However this cert perm dose not exist in my mac . It is a bug?

@ArvonHuang
Copy link
Author

ArvonHuang commented Dec 19, 2018

I change the config value in $GOPATH/src/github.com/securekey/fabric-examples/fabric-cli/test/fixtures/config/config_test_local.yaml

 credentialStore:
    # [Optional]. Used by user store. Not needed if all credentials are embedded in configuration
    # and enrollments are performed elswhere.
    #path: "/tmp/state-store"
    path: $GOPATH/src/github.com/securekey/fabric-examples/fabric-cli/fabric-sdk-go/test/fixtures/fabric/v1/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/admincerts

    # [Optional]. Specific to the CryptoSuite implementation used by GO SDK. Software-based implementations
    # requiring a key store. PKCS#11 based implementations does not.
    cryptoStore:
      # Specific to the underlying KeyValueStore that backs the crypto key store.
     # path: /tmp/msp
     path: $GOPATH/github.com/securekey/fabric-examples/fabric-cli/fabric-sdk-go/test/fixtures/fabric/v1/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp

it fixed

@bstasyszyn
Copy link
Contributor

Please try the latest code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants