简体   繁体   English

Hyperledger Fabric-无法生成排序节点创世块

[英]Hyperledger Fabric- Failed to generate orderer genesis block

  • By running ./byfn.sh generate command I am getting error mentioned below:通过运行 ./byfn.sh generate 命令,我收到了下面提到的错误:

     INHYKPMAC01-MacBook-Pro:first-network prakriti$ ./byfn.sh generate -c PDM Generating certs and genesis block for channel 'PDM' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... /Users/prakriti/Hyperledger/fabric-samples/first-network/../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x /Users/prakriti/Hyperledger/fabric-samples/first-network/../bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## CONSENSUS_TYPE=solo + '[' solo == solo ']' + configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block 2019-03-04 13:29:31.572 IST [common/configtx/tool] main -> INFO 001 Loading configuration 2019-03-04 13:29:31.588 IST [common/configtx/tool/localconfig] Load -> CRIT 002 Error reading

    configuration: While parsing config: yaml: line 311: did not find expected key + res=1 + set +x Failed to generate orderer genesis block...配置:在解析配置时:yaml:第 311 行:未找到预期的密钥 + res=1 + set +x 无法生成排序者创世块...

Are you working with a "customised" configtx.yaml file?您是否在使用“自定义”的 configtx.yaml 文件?

Either there is some syntax error in the file or a formatting error in the file.文件中存在一些语法错误或文件中存在格式错误。 Exact formatting in yaml is important. yaml 中的精确格式很重要。

If you are working with the standard file - it could be corrupted, so download a new version.如果您正在使用标准文件 - 它可能已损坏,因此请下载新版本。

BTW - channel names cannot contain UPPERCASE characters, so your channel name PDM is invalid.顺便说一句 - 频道名称不能包含大写字符,因此您的频道名称 PDM 无效。 (I haven't tested the scenario of generating a genesis block using uppercase but sooner or later it will cause a problem.) (我还没有测试过使用大写生成创世块的场景,但迟早会导致问题。)

EDIT编辑

I would also check the version of configtxgen to make sure it is the right 1.4.0 version ../bin/configtxgen -version (not an old version or a new v2.0 beta version)我还会检查 configtxgen 的版本以确保它是正确的 1.4.0 版本../bin/configtxgen -version (不是旧版本或新的 v2.0 beta 版本)

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

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