Weaver - Deploying chaincode in fabric testnet failing
Describe the bug
While trying to up fabric test net in weaver as per https://github.com/hyperledger/cacti/tree/main/weaver/tests/network-setups/fabric/dev can able to make network up but deploying chaincode throws error as follows. I tried with different go versions as well (1.13,1.16.1.18 etc) and tried another chaincode also (simpleassettransfer,simplestate etc)
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "vendor/golang.org/x/net/http2/transport.go:19:2: cannot find package "." in:
/chaincode/input/src/vendor/io/fs
"
++ res=1
++ set +x
!!!!!!!!!!!!!!! Chaincode installation on peer0.org1 has failed !!!!!!!!!!!!!!!!
ERROR !!! Deploying chaincode failed
Screenshot attached,
To Reproduce
To make the network up
- To start network1, run the script ./network.sh up createChannel -nw network1
- To start network2, run the script ./network.sh up createChannel -nw network2
To deploy chaincode
- To Deploy the chaincode in network1, change directory to network-setups/fabric/dev Run: ./network.sh deployCC -ch chaincodename -nw network1 Example: cd network-setups/fabric/dev; ./network.sh deployCC -ch simplestate -nw network1
Expected behavior
Chaincode should install properly
Logs/Stack traces
Can help maintainers identify root causes
Screenshots
If applicable, add screenshots to help explain your problem.
Cloud provider or hardware configuration: Are you running the software on a dev machine or somewhere in the cloud?
Operating system name, version, build:
Use this command: printf "$(uname -srm)\n$(cat /etc/os-release)\n"
For example
$ printf "$(uname -srm)\n$(cat /etc/os-release)\n"
Linux 4.15.0-70-generic x86_64
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Hyperledger Cactus release version or commit (git rev-parse --short HEAD):
Either a semantic version of the release you are using such as 1.0.0 or a git
commit hash if you are directly working with code from the git repository.
Hyperledger Cactus Plugins/Connectors Used
- Which DLT connectors are you using (Fabric, Quorum, Corda, Besu, etc.)
Additional context
Add any other context about the problem here.
cc: @VRamakrishna @sandeepnRES
@petermetz , Hi I am currently trying to set up the interop chaincode in weaver via fabric and I also have the error above. is there any recommendation on how to go about it? my go version is go version go1.18.1 linux/amd64 protoc version is libprotoc 3.12.4
@thobbyAk @Anusha-Padmanabhan Sorry for the slow response! The best people to help with this will be @VRamakrishna and @sandeepnRES because they are the principal maintainers of the weaver packages at the moment.
@VRamakrishna @sandeepnRES Could you please take a look at these comments?