hyperledger / hyperledger/fabric-samples

error checking context: 'no permission to read from /'<my app path>/test-network/organizations/fabric-ca/ordererOrg/msp/keystore/<key>_sk''.

Open
#642 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
3.5k
Avg merge
3d 20h
Merged PRs (30d)
6

Description

Using 2.2.4/1.5.2 on Ubuntu 18.04 LTS host. I have a containerized API server (similar to asset-transfer-events sample app) that will perform transactions with the 2 peers/chaincode and 1 orderer. The API Server creates a gateway to the peers and wallets for the orgs, and tries to enroll admin and user if not in the wallet.

Step 1 - ./network.sh up createChannel -c mychannel -ca --> successful
Step 2 - ./network.sh deployCC -ccs 1 -ccv 1 -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -ccl javascript -ccp ./../chaincode/myChainCode/ -ccn events --> successful
Step 3: cd to my containerized API Server
Step 4: npm start -->
> docker-compose up
Building api
error checking context: 'no permission to read from 'test-network/organizations/fabric-ca/ordererOrg/msp/keystore/_sk''.

The ACLs on the key: owned by root, read and write only by root.

Question: How would I find what is checking these privileges, since the API server image has not yet created

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.