byfn.sh失败,二进制文件和Docker映像不同步

时间:2018-10-13 10:20:51

标签: hyperledger-fabric

在我键入

时跟随build your first network tutorial on hyperledger docs
$ ./byfn.sh up

我收到以下警告

LOCAL_VERSION=1.2.0
DOCKER_IMAGE_VERSION=1.2.1
=================== WARNING ===================
  Local fabric binaries and docker images are  
  out of  sync. This may cause problems.       
===============================================

最后脚本因该错误而失败

Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

2 个答案:

答案 0 :(得分:0)

通过cd进入文件夹fabric-samples/scripts重新启动引导过程,并再次运行bootstrap.sh

$ ./bootstrap.sh

这使我的图像在输出中像这样

LOCAL_VERSION=1.3.0
DOCKER_IMAGE_VERSION=1.3.0

答案 1 :(得分:0)

您需要首先删除现有的,然后下载更高版本的Hyperledger Fabric。您可以运行以下命令来执行此操作:

cd fabric-samples
rm -Rf bin
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.3.0
./scripts/bootstrap.sh