首页 > 解决方案 > 升级到 1.2 的超级账本结构失败:“1.1.0-alpha 的本地结构二进制版本与此较新版本的 BYFN 不匹配,不受支持”

问题描述

我正在尝试升级到 1.2。我使用 byfn 遵循文档“升级您的组件网络”。(https://hyperledger-fabric.readthedocs.io/en/release-1.2/upgrading_your_network_tutorial.html#launch-a-v1-1-network

当我运行时:./byfn.sh up -t 3000 -i 1.1.0

我收到了这个错误:

    LOCAL_VERSION=1.1.0-alpha
    DOCKER_IMAGE_VERSION=1.1.0
    =================== WARNING ===================
      Local fabric binaries and docker images are  
      out of  sync. This may cause problems.       
    ===============================================
    ERROR! Local Fabric binary version of 1.1.0-alpha does not match this newer version of BYFN and is unsupported. Either move to a later version of Fabric or checkout an earlier version of fabric-samples.

文档说我必须清理图像并再次运行该示例。所以我做到了,我删除了所有图像,docker rmi -f $(docker images -a -q)然后再次运行该示例。图像已再次下载,但我仍然收到有关 1.1.0-alpha 版本的错误。

显然,我错过了一些东西......有人有任何线索吗?

标签: hyperledger-fabrichyperledger

解决方案


问题是您拥有示例使用的二进制文件的 alpha 版本。我建议删除“fabric-samples/bin”目录,然后再次下载 v1.1.0:

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

推荐阅读