无法在测试网络中启动链条

发布于 2025-02-11 13:55:09 字数 938 浏览 0 评论 0原文

我被测试网络的第一个教程所困扰。我可以通过网络设置网络和频道。

但是试图用

./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go

失败启动链码。控制台输出抱怨不一致的供应商,并建议忽略供应商目录:

noreflow noreferrer“读取

如果我导出'-mod = ReadOnly'在部署链代码之前,错误保持不变,导出'-mod = mod'会产生有关链码路径的失败归一化的错误:

goflags ='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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文