错误1 - network e2ecli_default not found
报错信息如下:
Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network e2ecli_default not found"}
解决办法:
cd $GOPATH/src/github.com/hyperledger/fabric/examples/e2e_cli/
vim ./base/peer-base.yaml
将
e2ecli_default
改为
e2e_cli_default
错误2- Error executing chaincode
报错信息如下:
Error: Error endorsing query: rpc error: code = Unknown desc = Error executing chaincode: Timeout expired while starting chaincode mycc:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:835d655dc2a34be2f14820542a69abf4b67b116c1d1b131421f7f70b2ad2d557) - <nil>
解决方法:
1)删除链码镜像
docker rmi -f $(docker images |grep "dev-" |awk '{print $3}')
2) 重新开启fabric网络
./network_setup.sh up
成功!