无法在测试网络中启动链条
我被测试网络的第一个教程所困扰。我可以通过网络设置网络和频道。
但是试图用
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go
失败启动链码。控制台输出抱怨不一致的供应商,并建议忽略供应商目录:
如果我导出'-mod = ReadOnly'在部署链代码之前,错误保持不变,导出'-mod = mod'会产生有关链码路径的失败归一化的错误:
我正在使用Linux-Mint 20.2(UMA)以下版本:
- git 2.25.1
- curl 7.68.0
- docker 20.10.14
- docker-compose 1.25.0(构建未知)
- 进行1.13.8
- jq 1.6 jq 1.6
建立网络我曾经有过第二个教程运行中的monitordocker-skript它显示了不同的旋转(1.17.5,但仍高于所需的1.13.x)。并在终端中打印docker-compose的版本,在版本数字背后有“构建未知”一词,不知道这是否有用。 有人知道为什么我无法使用测试网络启动链代码?
使用GO 1.18尝试过,但是没有变化。
I got stuck with the first tutorial for the test-network. I can set up a network and a channel with the network.sh-script, checked it with ‘docker ps -a’.
But trying to start the chaincode with
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go
fails. The console-output complains about inconsistent vendoring and suggests ignoring the vendoring directory:
console output with GOFLAGS='-mod=readonly
If I export ‘-mod=readonly’ before deploying the chaincode the error stays the same, exporting ‘-mod=mod’ produces an error about a failed normalization of the chaincode path:
console output with GOFLAGS='mod=mod'
I’m using linux-mint 20.2 (Uma), the prerequisites are of the following versions:
- git 2.25.1
- curl 7.68.0
- docker 20.10.14
- docker-compose 1.25.0 (build unknown)
- go 1.13.8
- jq 1.6
Setting up the network I once had the monitordocker-skript from the second tutorial running and noticed that it shows a different go-version (1.17.5 but still above the needed 1.13.x). And printing the version of docker-compose in the terminal there are the words “build unknown” behind the version-number, don’t know if that is useful.
Does anyone know why I’m not able to start a chaincode with the test-network?
Tried it with go 1.18, but there's no change.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论