8

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

crusy
  • 1,424
  • 2
  • 25
  • 54
kaifoon
  • 81
  • 1
  • 2

3 Answers3

9

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

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

8

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.

Artem Barger
  • 40,769
  • 9
  • 59
  • 81
  • 1
    Same issue here and using diff version of the fabric-samples repo "git checkout -b v1.0.6" worked for me, thanks ! – Ameer Deen Mar 03 '18 at 23:41
  • Hi there I am getting the same problem described here. My configtx.yaml has the Capabilities section, and I am on release 1.1. Any help greatly appreciated. – Haroon Hassan Mar 23 '18 at 13:37
0

Check your node version. It should be 8.x. The below link should help. https://medium.com/@katopz/how-to-install-specific-nodejs-version-c6e1cec8aa11

  • Welcome to SO! Please embed the essential party of the 3rd party source into your answer for the 3rd party resource might vanish. – m02ph3u5 May 16 '19 at 16:08