v0.19.2 Hyperledger Composer网络启动失败 [英] v0.19.2 hyperledger composer network start failed
问题描述
我已经实现了名为 supply-chain-network的 .bna
文件,但我认为问题不在中。 bna
,因为我尝试了另一个 .bna
(hyperledger作曲家游乐场中的basic-sample-network),但问题仍然存在。
I have already implemented my .bna
file named "supply-chain-network" but I think that the problem isn't in the .bna
, since I have tried with another .bna
(the basic-sample-network in hyperledger composer playground) and the problem still persists.
Composer版本:0.19.2
Composer version: 0.19.2
操作系统:在VM中运行的Ubuntu 16.04
Operating System: Ubuntu 16.04 running in VM
步骤:
- 下载
fabric-dev-servers
- ./ downloadFabric.sh
- ./ startFabric.sh
- ./ createPeerAdminCard。 sh
- 从操场上导出基本样本网络(my-basic-sample.bna)
-
组成者网络安装--card PeerAdmin @ hlfv1 --archiveFile my-basic-sample.bna @
-
composer network start --networkName my- basic-sample --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin @ hlfv1 --file networkadmin.card
- download the
fabric-dev-servers
- ./downloadFabric.sh
- ./startFabric.sh
- ./createPeerAdminCard.sh
- exported the basic-sample-network from the playground (my-basic-sample.bna)
composer network install --card PeerAdmin@hlfv1 --archiveFile my-basic-sample.bna@
composer network start --networkName my-basic-sample --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
我得到以下错误:
Starting business network definition. This may take a minute...
错误:尝试创业的错误网络。错误:任何对等方均未提供有效响应。
来自尝试的对等通信的响应是一个错误:错误:2未知:链码错误(状态:500,消息:无法获取链码包(my-basic-sample:0.0.1))
我通过发出以下命令检查并检查了网络名称和版本:
I have checked and the name of the network and the version by issue the command:
composer archive list -a my-basic-sample.bna
得到了:
从my-basic-sample.bna列出企业网络存档
标识符:my-basic-sample@0.2.4 -deploy.0
名称:my-basic-sample
版本:0.2.4-deploy.0
命令成功
我已经尝试发行版本为0.2.4而不是0.0.1的作曲家网络遇到相同的错误。
I have tried to issue composer network start with version 0.2.4 instead of 0.0.1 and I got the same error.
通过输入以下内容来查看码头工人的日志:
The log of the docker by typing:
docker logs peer0.org1.example.com
我知道了:
我在 https://github.com/hyperledger/composer/ issue / 3591#issuecomment-386718739 表示此错误是由从Hyperledger Composer网站复制粘贴命令时的多余字符引起的。我已经完成了hi2rashid的建议(将命令复制到记事本,然后复制到命令行),但是仍然遇到相同的错误。
I have seen on https://github.com/hyperledger/composer/issues/3591#issuecomment-386718739 that this error is caused by an extra character when copy pasting the command from the hyperledger composer website. I have done what hi2rashid suggests(copy the command to a notepad and then copy to the command line) but I still got the same error.
任何人都知道如何解决此问题?
Anybody know how to fix this ?
推荐答案
您非常接近使此工作正常……
You are very close to getting this working ...
编写器存档列表
命令将版本列出为 0.2.4-deploy.0-尽管它看起来不像是数字版本。您的网络启动命令应包括-networkVersion 0.2.4-deploy.0
The composer archive list
command has listed the version as "0.2.4-deploy.0" - although this doesn't look like a version "number" it is. Your network start command should include --networkVersion 0.2.4-deploy.0
此长版本来自Composer升级模型后,Playground会自动生成版本。
This long version comes from Composer Playground autogenerating versions when the model is upgraded.
这篇关于v0.19.2 Hyperledger Composer网络启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!