IBM / blockchain-application-using-fabric-java-sdk

Create and Deploy a Blockchain Network using Hyperledger Fabric SDK Java
https://developer.ibm.com/code/patterns
Apache License 2.0
289 stars 156 forks source link

Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced #43

Closed gzuhlwang closed 4 years ago

gzuhlwang commented 4 years ago

Question

Hi, I re-generate materials with instructions as specified in build.sh file, but I came across error when I do configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./config/genesis.block under the directory $HOME/blockchain-application-using-fabric-java-sdk/network.

background

The configtxgen version is v1.4.1 The $Home/blockchain-application-using-fabric-java-sdk/network has 6 files and 2 directories as follows: build.sh config configtx.yaml crypto-config crypto-config.yaml docker-compose.yml stop.sh teardown.sh

some logs

The following are printed log: 2019-10-08 06:03:44.367 EDT [common.tools.configtxgen.localconfig] Load -> PANI 003 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced 2019-10-08 06:03:44.367 EDT [common.tools.configtxgen] func1 -> PANI 004 Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced panic: Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced [recovered] panic: Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced

Any help will be appreciated.