Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hyperledger fabric Failed to generate orderer genesis block

Generated byfn.sh my first network, the emergence of configtxgen can not generate genesis block. 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

my configtx.yaml as follow picture show:

configtx.yaml screenshot

like image 853
kaifoon Avatar asked Feb 26 '18 10:02

kaifoon


2 Answers

Re download platform-specific binaries with 1.1.0 (Not 1.0.6) -> OK

curl -sSL [download script][1] | bash -s 1.1.0

like image 119
Pham Ngoc Nam Avatar answered Jan 02 '23 04:01

Pham Ngoc Nam


Capabilities keyword was introduced for v1.1.0-preview and later. Hence I'd guess you trying to use binary of version v1.0.0 with configuration file of v1.1.0.

like image 42
Artem Barger Avatar answered Jan 02 '23 03:01

Artem Barger