hyperledger-fabric - 升级到 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 版本的错误。
显然,我错过了一些东西......有人有任何线索吗?
解决方案
问题是您拥有示例使用的二进制文件的 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
推荐阅读
- mysql - mysql中的日期范围
- java - Spring Boot 中 @Qualifier 的替代品
- pandas - Pandas 在使用不带分组依据的 agg 时指定结果列名
- python-3.x - 在 Python 中合并 2 个列表
- excel - 试图从Excel中单元格的开头和结尾提取一串文本模式
- javascript - 检测到非以太坊浏览器。您应该考虑尝试 MetaMask
- node.js - 请求正文在节点 Js 上读取多个值
- c++ - 为什么 google mock 返回错误 no matching function for call
- typescript - 打字稿:具有属性的函数
- security - 如何保护 wordpress 评论表单免受运行脚本的影响?