尝试启动测试网络时出错

Error when trying to bring up the test network

我正在尝试按照 Ubuntu 上的教程进行开发。然后在 "Bring up the test network" 部分出现错误。我成功运行以下命令打印测试网络的脚本帮助文本。

./network.sh -h

当我想运行下一个命令调出网络

./network.sh up

我收到如下消息

Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen'

ERROR! Peer binary and configuration files not found..

有人可以告诉我发生了什么事吗?请帮忙。

一定要用

./network.sh up

来自测试网络文件夹,并且该测试网络文件夹包含在 fabric 样本中,因为它可以使用 fabric 样本中包含的不同目录中的二进制文件,移动它可能会导致您的错误。

也尝试设置这个环境变量

FABRIC_CFG_PATH=$PWD

强制在您的测试网络文件夹中启动 Fabric

先下网清理

cd test-network
./network.sh down

重新启动网络

./network.sh up

在部署测试网络之前,您需要按照 Hyperledger Fabric 文档中 Install the Samples, Binaries and Docker Images 的说明进行操作。

我遇到了同样的问题,看来您需要获取系统特定的二进制文件: https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html

我运行根目录中的curl命令没有指定版本。

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s

确保将 ./bin 添加到 .gitignore