【问题标题】:hyperledger fabric Failed to generate orderer genesis blockhyperledger fabric 无法生成 orderer genesis block
【发布时间】:2018-02-26 10:02:09
【问题描述】:

我的第一个网络由fn.sh生成,configtxgen的出现无法生成创世块。 我的错误如下:

[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...

我的码头工人版本:

Docker version 17.03.1-ce

我的 Go 版本:

go version go1.8.3 linux/amd64

我的操作系统版本:

centos 7.2

我的 configtx.yaml 如下图所示:

【问题讨论】:

    标签: hyperledger-fabric hyperledger


    【解决方案1】:

    使用 1.1.0(不是 1.0.6)重新下载特定于平台的二进制文件 -> 确定

    curl -sSL [下载脚本][1] | bash -s 1.1.0

    【讨论】:

    • 我正在使用 1.1.0 版本 curl -sSL [google url] | bash -s 1.1.0 1.1.0 0.4.6 仍然遇到同样的错误
    【解决方案2】:

    Capabilities 关键字是为 v1.1.0-preview 及更高版本引入的。因此,我猜您尝试使用 v1.0.0 版本的二进制文件和 v1.1.0 的配置文件。

    【讨论】:

    • 这里有同样的问题,使用不同版本的 fabric-samples repo "git checkout -b v1.0.6" 对我有用,谢谢!
    • 您好,我遇到了与此处描述的相同的问题。我的 configtx.yaml 有 Capabilities 部分,我在 1.1 版上。非常感谢任何帮助。
    【解决方案3】:

    检查您的节点版本。它应该是 8.x。 下面的链接应该会有所帮助。 https://medium.com/@katopz/how-to-install-specific-nodejs-version-c6e1cec8aa11

    【讨论】:

    • 欢迎来到 SO!请将第 3 方资源的重要方嵌入到您的答案中,因为第 3 方资源可能会消失。
    猜你喜欢
    • 1970-01-01
    • 2023-04-02
    • 1970-01-01
    • 2018-10-10
    • 1970-01-01
    • 1970-01-01
    • 2020-10-27
    • 2020-04-24
    • 1970-01-01
    相关资源
    最近更新 更多