./byfn.sh -m generate -c imooc -i 1.0.0,报错是个啥情况,怎么解决呢
来源:2-4 fabric尝鲜

蒋靖铭
2018-10-02
[php@localhost first-network]$ ./byfn.sh -m generate -c imooc -i 1.0.0
Generating certs and genesis block for with channel ‘imooc’ and CLI timeout of '10’
Continue (y/n)? y
proceeding …
/mnt/hgfs/project/gowork/bin/cryptogen
##########################################################
Generate certificates using cryptogen tool
##########################################################
org1.example.com
org2.example.com
/mnt/hgfs/project/gowork/bin/configtxgen
##########################################################
######### Generating Orderer Genesis block ##############
##########################################################
2018-10-02 02:04:44.588 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-10-02 02:04:44.590 CST [common/configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration: While parsing config: yaml: unknown anchor ‘OrdererDefaults’ referenced
Failed to generate orderer genesis block…
########################################################################
报错信息 CRIT 002 Error reading configuration: While parsing config: yaml: unknown anchor ‘OrdererDefaults’ referenced,是个啥情况,怎么解决呢
1回答
-
自游蜗牛
2018-10-02
亲,你好。
你把fabric-simple下载下来以后切换版本了吗?可能你当前是在master分支,而master分支不稳定导致的。configtxgen这个工具我们之前编译的是1.0的版本,可能后续的版本中config.yaml格式修改了,而工具不认识,所以会报这个错误。
祝你学习愉快!
032018-10-02
相似问题