简体   繁体   English

超级账本结构无法生成排序器创世块

[英]hyperledger fabric Failed to generate orderer genesis block

Generated byfn.sh my first network, the emergence of configtxgen can not generate genesis block.我的第一个网络由fn.sh生成,出现configtxgen无法生成创世块。 My error is as follows:我的错误如下:

[root@demo first-network]# ./byfn.sh generate
Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
/storage/u01/hyperledger/bin/cryptogen

##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
org1.example.com
org2.example.com

/storage/u01/hyperledger/bin/configtxgen
##########################################################
#########  Generating Orderer Genesis block ##############
##########################################################
2018-02-26 11:00:08.152 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-02-26 11:00:08.155 CST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct:  4 error(s) decoding:

* '' has invalid keys: capabilities
* 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities
* 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities
* 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities
Failed to generate orderer genesis block...

my docker version :我的码头工人版本:

Docker version 17.03.1-ce

my go version:我的版本:

go version go1.8.3 linux/amd64

my os version:我的操作系统版本:

centos 7.2 Centos 7.2

my configtx.yaml as follow picture show:我的 configtx.yaml 如下图所示:

configtx.yaml 截图

Re download platform-specific binaries with 1.1.0 (Not 1.0.6) -> OK使用 1.1.0(不是 1.0.6)重新下载特定于平台的二进制文件 -> OK

curl -sSL [download script][1] | curl -sSL [下载脚本][1] | bash -s 1.1.0 bash -s 1.1.0

Capabilities keyword was introduced for v1.1.0-preview and later.为 v1.1.0-preview 及更高版本引入了Capabilities关键字。 Hence I'd guess you trying to use binary of version v1.0.0 with configuration file of v1.1.0.因此我猜你想使用 v1.0.0 版本的二进制文件和 v1.1.0 的配置文件。

Check your node version.检查您的节点版本。 It should be 8.x.应该是 8.x。 The below link should help.下面的链接应该会有所帮助。 https://medium.com/@katopz/how-to-install-specific-nodejs-version-c6e1cec8aa11 https://medium.com/@katopz/how-to-install-specific-nodejs-version-c6e1cec8aa11

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM