尝试为筏生成创世纪块时出错

时间:2019-06-20 08:23:57

标签: hyperledger-fabric blockchain hyperledger raft

编辑:这是因为,我在configtx.yaml中的普通订购者配置中放入了订购者类型etcdraft,这导致它在同一对象中找到其余的配置,而不是从配置文件中的覆盖对象中找到。

这是我在尝试生成木筏排序器创世纪时遇到的错误。

此错误并未说明所缺失的内容。我将yaml文件与第一个网络的示例yaml文件进行了比较,两者都是相同的。

2019-06-20 13:46:04.944 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2019-06-20 13:46:04.944 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:20971520 
2019-06-20 13:46:04.944 IST [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /Users/shubham.kumar/Desktop/repos/blockahead_baas/configtx.yaml
2019-06-20 13:46:04.974 IST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 005 orderer type: etcdraft
2019-06-20 13:46:04.975 IST [common.tools.configtxgen.localconfig] completeInitialization -> PANI 006 etcdraft raft configuration missing
2019-06-20 13:46:04.975 IST [common.tools.configtxgen] func1 -> PANI 007 etcdraft raft configuration missing
panic: etcdraft raft configuration missing [recovered]
    panic: etcdraft raft configuration missing

goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000447080, 0x0, 0x0, 0x0)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000c248, 0xc0001a5604, 0xc00034b980, 0x23, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000c248, 0xc00034b980, 0x23, 0x0, 0x0, 0x0)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000c250, 0xc0001a5768, 0x1, 0x1)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
main.main.func1()
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:260 +0x1a9
panic(0x163d3a0, 0xc00033f000)
    /opt/go/go1.11.5.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000447080, 0x0, 0x0, 0x0)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000c228, 0x4, 0x17659b1, 0x1d, 0xc0001a5c10, 0x1, 0x1, 0x0, 0x0, 0x0)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000c228, 0x17659b1, 0x1d, 0xc0001a5c10, 0x1, 0x1)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(0xc00000c230, 0x17659b1, 0x1d, 0xc0001a5c10, 0x1, 0x1)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:74 +0x60
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.(*Orderer).completeInitialization(0xc0001863f0, 0xc0002574c0, 0x32)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:397 +0xcf3
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.(*TopLevel).completeInitialization(0xc00050f9f0, 0xc0002574c0, 0x32)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:303 +0xaf
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.LoadTopLevel(0x0, 0x0, 0x0, 0x0)
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:243 +0x4ca
main.main()
    /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:278 +0xcab
make: *** [generate_arts_raft] Error 2
Chosen raft for consensus

我在做什么错了?

我的configtx.yaml文件链接:https://pastebin.com/32q6UAcZ

1 个答案:

答案 0 :(得分:0)

在您的configtx.yaml217中,您拥有:

OrdererType: etcdraft

但是您没有提供完整的etcdraft配置,例如:

OrdererType: etcdraft
EtcdRaft:
  Consenters:
  - Host:
    Port:
    ClientTLSCert:
    ServerTLSCert: