hyperledger fabric 升级到 1.2 失败:"Local Fabric binary version of 1.1.0-alpha does not match this newer version of BYFN and is unsupported"

hyperledger fabric upgrading to 1.2 fails : "Local Fabric binary version of 1.1.0-alpha does not match this newer version of BYFN and is unsupported"

我正在尝试升级到 1.2。我使用 byfn 遵循文档 "Upgrade your components network"。 (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 版本的错误。

显然,我遗漏了一些东西...... 有人知道吗?

问题是您拥有样本使用的二进制文件的 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