yaml - hyperledger configtxgen错误

标签 yaml hyperledger-fabric hyperledger

我实际上正在尝试在两个不同的VPS上构建两个区块链。第一个区块链正在运行,但是经过许多小时的研究,我没有找到为什么第二个区块链不想构建的原因。

我建立了crypto-config文件夹,没关系,但是当我尝试建立channel-artifacts文件夹时,它不起作用,并且我使用完全相同的方法。这是日志:

2018-07-05 17:05:43.046 CEST [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated.  Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'.
2018-07-05 17:05:43.046 CEST [common/tools/configtxgen] main -> INFO 002 Loading configuration
2018-07-05 17:05:43.046 CEST [common/tools/configtxgen/localconfig] Load -> CRIT 003 Error reading configuration:  While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced
2018-07-05 17:05:43.047 CEST [common/tools/configtxgen] func1 -> CRIT 004 Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced
panic: Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced [recovered]
	panic: Error reading configuration: While parsing config: yaml: unknown anchor 'ChannelCapabilities' referenced

goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc420199e00, 0xc420414390, 0x1, 0x1)
	/w/workspace/fabric-nightly-release-job-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd
main.main.func1()
	/w/workspace/fabric-nightly-release-job-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae
panic(0xc6ed20, 0xc420414380)
	/opt/go/go1.10.linux.amd64/src/runtime/panic.go:505 +0x229
github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc420199c50, 0xc4201916a0, 0x2, 0x2)
	/w/workspace/fabric-nightly-release-job-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffdd627483b, 0x15, 0x0, 0x0, 0x0, 0x1)
	/w/workspace/fabric-nightly-release-job-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:277 +0x469
main.main()
	/w/workspace/fabric-nightly-release-job-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7


我的configtx.yaml文件与第一个网络基本相同,只是路径有所更改。

有什么帮助吗?

最佳答案

这似乎与1.2.0版本有关。通过降级到1.1.0(hyperledger/fabric-ca-tools:x86_64-1.1.0),我能够使CLI再次运行。

引用:https://hub.docker.com/r/hyperledger/fabric-ca-tools/tags/

编辑:https://github.com/hyperledger/fabric/releases/tag/v1.2.0

我的解决方法是确保Organizations部分位于顶部。我认为您需要做的就是将configtx.yaml中包含&ChannelCapabilities的部分移到更高的位置。

关于yaml - hyperledger configtxgen错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51195016/

相关文章:

php - 使用 TaggedValue 时转储函数忽略内联参数

java - 为什么 dropwizard 配置不起作用?

rest - golang 的 Shim 接口(interface)中的补丁函数

Hyperledger-Fabric:core.yaml 中的提交者和排序者是什么?

hyperledger-fabric - 在 Hyperledger Fabric 1.4.4 中跨多个网络使用对等节点

yaml - 在 yaml 中使用占位符

ruby-on-rails - 如何在yaml中创建关联数组列表

hyperledger-fabric - Hyperledger 结构错误 : mychannel received discovery error:access denied

hyperledger-fabric - TypeError : stub. GetQueryResultWithPagination 不是函数

go - 如何将 prpBytes(描述​​中的链接 src)(ProposalResponsePayload protobuf 消息)反序列化为原始对象