首页 文章

Hyperledger Composer无法部署业务网络

提问于
浏览
0

我将本地环境更新为Composer v0.14.3,我一直关注Hyperledger Composer网站上的Developer Tutorial . 然后,当我尝试将业务网络部署到本地Hyperledger Fabric时,我在"Deploy to the running Hyperledger Fabric"部分下面收到以下错误 . 我得到的错误如下所示:

Deploying business network from archive: my-network.bna
Business network definition:
    Identifier: my-network@0.0.1
    Description: My Commodity Trading network

✖ Deploying business network definition. This may take a minute...

Error: Error trying deploy. Error: Error trying install composer runtime. Error: Endpoint read failed
Command failed

我看到的另一个问题是我能够通过"startFabric.sh"脚本启动本地Hyperledger Fabric,但几分钟后容器"hyperledger/fabric-peer:x86_64-1.0.4"突然停止,所以我必须再次运行"stopFabric.sh"和"startFabric.sh"脚本,see this picture .

作为参考,我已经完成了Post的建议,但我仍然得到同样的错误 .

1 回答

  • 0

    建议将您的Composer开发环境更新(即重新安装)到当前版本v0.15.0(截至11月10日) - 有一个新教程(它从您看到的内容进行了更改),它将使用Business网卡进行网络部署(不再需要createComposerProfile.sh) - 让生活更轻松 . 要获得最新版本,您需要按照文档安装模块 - > https://hyperledger.github.io/composer/installing/development-tools.html - 这将获得最新版本 . 确保使用在fabric-tools中下载的脚本进行完全拆卸(因为您的CC容器将是0.14.3或更早版本,因此已过期),然后您随后执行npm -g卸载相同模块名称如composer-cli,composer-playground等,并且在随后的npm -g安装相同的作曲家模块时它们都处于同一级别(0.15.0) .

相关问题