hyperledger-fabric-based-access-control icon indicating copy to clipboard operation
hyperledger-fabric-based-access-control copied to clipboard

Setting up project environment

Open chinyati opened this issue 4 years ago • 7 comments

Hi

I have cloned the project and also setup the environment as specified in your instructions.

However when I try to run ./startfabric in project folder I get these errors:

2020-08-09 14:49:30.081 UTC [chaincode.platform.util] func1 -> ERRO 001 Visit /opt/gopath/src/chaincode failed: lstat /opt/gopath/src/chaincode: no such file or directory 2020-08-09 14:49:30.081 UTC [chaincode.platform.util] WriteFolderToTarPackage -> INFO 002 Error walking rootDirectory: lstat /opt/gopath/src/chaincode: no such file or directory 2020-08-09 14:49:30.081 UTC [chaincode.platform.node] GetDeploymentPayload -> ERRO 003 Error writing folder to tar package lstat /opt/gopath/src/chaincode: no such file or directory Error: error getting chaincode bytes: Error writing Chaincode package contents: lstat /opt/gopath/src/chaincode: no such file or directory

Note my gopath is actually set to the required location "/opt/gopath" and have also created the src folder. Please assist

chinyati avatar Aug 09 '20 14:08 chinyati

Hello @chinyati. Please make sure you installed all the prerequesites: https://hyperledger-fabric.readthedocs.io/en/master/prereqs.html

RafaelAPB avatar Sep 12 '20 23:09 RafaelAPB

Have you solved this problem?chinyati

nan1126 avatar Oct 21 '20 09:10 nan1126

I have the same issue... did anyone manage to solve it, please?

@RafaelAPB thanks for the share 👍

krisbarb avatar Apr 05 '21 16:04 krisbarb

I also have this issue, anyone has solved it, please~

kangkang333 avatar Apr 07 '21 02:04 kangkang333

I also have this issue, anyone has solved it, please~

lstat /opt/gopath/src/chaincode: no such file or directory; I think this directory does not exist, and the command "lstat" also has a problem

kangkang333 avatar Apr 08 '21 02:04 kangkang333

I also have this issue, anyone has solved it, please~

lstat /opt/gopath/src/chaincode: no such file or directory; I think this directory does not exist, and the command "lstat" also has a problem

I see cli’s setting in docker-compose.yml, as following:

volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/ - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/

Maybe the directory is not the true problem...

reference: https://stackoverflow.com/questions/54455891/error-getting-chaincode-code-mycc-path-to-chaincode-does-not-exist

kangkang333 avatar Apr 08 '21 02:04 kangkang333

I meet other problem: Error: proposal failed with status: 500 - cannot use new lifecycle for channel 'mychannel' as it does not have the required capabilities enabled

kangkang333 avatar Apr 12 '21 13:04 kangkang333