Hyperledger Composer 在升级网络时卡住了
Hyperledger composer got stuck when upgrading the network
以下是我完成的步骤:
- 停下来拆掉布料
- 开始构造
- 使用 yo 创建业务网络
hyperledger-composer
- 创建 .bna 存档并安装它
- 使用版本 0.0.1 启动网络
- 导入卡片到游乐场
所有这些步骤都很好,但是当我启动游乐场并尝试使用我的更改升级业务网络时,在浏览器中它卡住了
Please Wait: Your new business network is being upgraded
Upgrading business network using PeerAdmin@hlfv1 (2/2)
从不回复
这是我在 composer--playground 的日志中看到的:
info: [Hyperledger-Composer] :ConnectionProfileManager :getConnectionManagerByTyp Looking up a connection manager for type 0=hlfv1
也许有人已经遇到过这种问题并且知道如何解决?或者在本地环境,我应该手动升级?
- P.S 我是 Composer 的新手,所以我在
Developer tutorial
有趣的是,升级网络的过程比我想象的要花更多的时间,所以解决方案很简单:
Wait 3-4 minutes until the process finishes and do not click anywhere
in the browser (by mistake I tried to reconnect to the card, and in
that case, the process of upgrading fails).
此外,重要的是,在卡的手动升级过程中(使用 CLI),需要相同的时间
composer network upgrade
命令及其在 Composer Playground 中的等效操作会生成一个新的 docker "chaincode image" 和 "chaincode container"。创建图像和启动容器是需要时间的。您将看到您现在拥有冗余的 docker 容器和以前版本的 Business Network 的图像。这是 Hyperledger Fabric(和 Composer)的预期行为,但您可能需要做一些内务处理以删除旧版本。
如果您处于开发和实验的早期版本 - 生成大量版本的网络,您可以在 Playground 中使用 'Web Profile',它在浏览器的 LocalStorage 中模拟 Fabric - 它要快得多但如果您使用它,请务必定期导出到 BNA,否则如果出现浏览器问题或升级,您可能会丢失工作。
已根据评论更新
命令 docker ps
可用于查看所有 运行 个容器(docker ps -a
也将显示已停止的容器。) docker stop
用于停止容器和 docker rm
删除容器。
Docker containers 是 运行(或停止)docker images 的实例,所以您还需要删除多余的图像。您使用 docker images
列出图像并使用 docker rmi
.
删除它们
docker 网站有完整的命令列表。
以下是我完成的步骤:
- 停下来拆掉布料
- 开始构造
- 使用 yo 创建业务网络
hyperledger-composer
- 创建 .bna 存档并安装它
- 使用版本 0.0.1 启动网络
- 导入卡片到游乐场
所有这些步骤都很好,但是当我启动游乐场并尝试使用我的更改升级业务网络时,在浏览器中它卡住了
Please Wait: Your new business network is being upgraded
Upgrading business network using PeerAdmin@hlfv1 (2/2)
从不回复
这是我在 composer--playground 的日志中看到的:
info: [Hyperledger-Composer] :ConnectionProfileManager :getConnectionManagerByTyp Looking up a connection manager for type 0=hlfv1
也许有人已经遇到过这种问题并且知道如何解决?或者在本地环境,我应该手动升级?
- P.S 我是 Composer 的新手,所以我在 Developer tutorial
有趣的是,升级网络的过程比我想象的要花更多的时间,所以解决方案很简单:
Wait 3-4 minutes until the process finishes and do not click anywhere in the browser (by mistake I tried to reconnect to the card, and in that case, the process of upgrading fails).
此外,重要的是,在卡的手动升级过程中(使用 CLI),需要相同的时间
composer network upgrade
命令及其在 Composer Playground 中的等效操作会生成一个新的 docker "chaincode image" 和 "chaincode container"。创建图像和启动容器是需要时间的。您将看到您现在拥有冗余的 docker 容器和以前版本的 Business Network 的图像。这是 Hyperledger Fabric(和 Composer)的预期行为,但您可能需要做一些内务处理以删除旧版本。
如果您处于开发和实验的早期版本 - 生成大量版本的网络,您可以在 Playground 中使用 'Web Profile',它在浏览器的 LocalStorage 中模拟 Fabric - 它要快得多但如果您使用它,请务必定期导出到 BNA,否则如果出现浏览器问题或升级,您可能会丢失工作。
已根据评论更新
命令 docker ps
可用于查看所有 运行 个容器(docker ps -a
也将显示已停止的容器。) docker stop
用于停止容器和 docker rm
删除容器。
Docker containers 是 运行(或停止)docker images 的实例,所以您还需要删除多余的图像。您使用 docker images
列出图像并使用 docker rmi
.
docker 网站有完整的命令列表。