如何在第一网络设置中解决“将CRIT 002错误解编为struct的错误:21个错误”?

时间:2019-02-01 10:40:31

标签: hyperledger-fabric

我正在研究Hyperledger的“ fabric-samples”文档,并相信我已经按照所有先决条件步骤进行操作

me@TheBrick MINGW64 ~/go/src/fabric-samples (v1.1.0)
$ cd first-network/

me@TheBrick MINGW64 ~/go/src/fabric-samples/first-network (v1.1.0)
$ ./byfn.sh -m generate

该过程返回了一个错误,但我仍无法找到解决方案。

输出:

Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
/c/Users/me.THEBRICK/go/src/fabric-samples/bin/cryptogen

##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
+ cryptogen generate --config=./crypto-config.yaml
org1.example.com
org2.example.com
+ res=0
+ set +x

/c/Users/me.THEBRICK/go/src/fabric-samples/bin/configtxgen
##########################################################
#########  Generating Orderer Genesis block ##############
##########################################################
CONSENSUS_TYPE=solo
+ '[' solo == solo ']'
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
2019-02-01 10:17:00.647 GMT [common/configtx/tool] main -> INFO 001 Loading configuration
2019-02-01 10:17:00.675 GMT [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct:  21 error(s) decoding:

* '' has invalid keys: capabilities, channel
* 'Application' has invalid keys: Capabilities, Policies
* 'Orderer' has invalid keys: Policies
* 'Organizations[0]' has invalid keys: Policies
* 'Organizations[1]' has invalid keys: Policies
* 'Organizations[2]' has invalid keys: Policies
* 'Profiles[SampleDevModeKafka]' has invalid keys: Capabilities, Policies
* 'Profiles[SampleDevModeKafka].Application' has invalid keys: Capabilities, Policies
* 'Profiles[SampleDevModeKafka].Application.Organizations[0]' has invalid keys: Policies
* 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies
* 'Profiles[SampleDevModeKafka].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies
* 'Profiles[SampleDevModeKafka].Orderer' has invalid keys: Capabilities, Policies
* 'Profiles[SampleDevModeKafka].Orderer.Organizations[0]' has invalid keys: Policies
* 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities, Policies
* 'Profiles[TwoOrgsChannel].Application.Organizations[0]' has invalid keys: Policies
* 'Profiles[TwoOrgsChannel].Application.Organizations[1]' has invalid keys: Policies
* 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities, Policies
* 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: Policies
* 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[1]' has invalid keys: Policies
* 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities, Policies
* 'Profiles[TwoOrgsOrdererGenesis].Orderer.Organizations[0]' has invalid keys: Policies
+ res=1
+ set +x
Failed to generate orderer genesis block...

这是我的参考点:

https://hyperledger-fabric.readthedocs.io/en/release-1.0/build_network.html

注意,我已按照步骤进行操作,并注意到有关“这些说明已针对标记为“ 1.0.3”的Docker映像进行验证的信息”的信息。为此,我运行了

curl -sSL https://URL | bash -s 1.0.3

(前提条件指定为1.06)

curl -sSL https://URL | bash -s 1.0.6

无论1.0.3和1.0.6,我都得到相同的结果

感谢任何提示。

0 个答案:

没有答案