hyperledger-fabric-based-access-control
hyperledger-fabric-based-access-control copied to clipboard
Setting up project environment
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
Hello @chinyati. Please make sure you installed all the prerequesites: https://hyperledger-fabric.readthedocs.io/en/master/prereqs.html
Have you solved this problem?chinyati
I have the same issue... did anyone manage to solve it, please?
@RafaelAPB thanks for the share 👍
I also have this issue, anyone has solved it, please~
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 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
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