Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Setting up project environment #20

Open
chinyati opened this issue Aug 9, 2020 · 7 comments
Open

Setting up project environment #20

chinyati opened this issue Aug 9, 2020 · 7 comments

Comments

@chinyati
Copy link

chinyati commented Aug 9, 2020

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

@RafaelAPB
Copy link
Member

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

@nan1126
Copy link

nan1126 commented Oct 21, 2020

Have you solved this problem?chinyati

@krisbarb
Copy link

krisbarb commented Apr 5, 2021

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

@RafaelAPB thanks for the share 👍

@kangkang333
Copy link

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

@kangkang333
Copy link

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
Copy link

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
Copy link

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

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

No branches or pull requests

5 participants