gpt4 book ai didi

hyperledger-fabric - 启动 super 账本排序程序失败

转载 作者:行者123 更新时间:2023-12-01 17:46:53 26 4
gpt4 key购买 nike

官方的hyperledger Fabric v1.0.0使用docker给出了一个简单的demo。这是link .

我正在做的是避免使用docker并直接在机器上运行它们。但是,当我尝试使用以下 cmd 和环境变量启动排序程序时:

export CHANNEL_NAME=my_channel 
export TIMEOUT=10000
export DELAY=3
export FABRIC_CFG_PATH=$PWD
export ORDERER_GENERAL_LOGLEVEL=debug
export ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
export ORDERER_GENERAL_GENESISMETHOD=file
export ORDERER_GENERAL_GENESISFILE=./channel-artifacts/genesis.block
export ORDERER_GENERAL_LOCALMSPID=OrdererMSP
export ORDERER_GENERAL_LOCALMSPDIR=./crypto-config/ordererOrganizations/example.com/msp
export ORDERER_GENERAL_TLS_ENABLED=true
export ORDERER_GENERAL_TLS_PRIVATEKEY=./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.key
export ORDERER_GENERAL_TLS_CERTIFICATE=./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
export ORDERER_GENERAL_TLS_ROOTCAS=[./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt]

./orderer

bash 控制台报告从 orderer 加载配置失败:

2017-09-07 20:20:56.358 SGT [orderer/main] main -> INFO 001 Starting orderer:
Version: development build
Go version: go1.7
OS/Arch: linux/amd64
2017-09-07 20:20:56.358 SGT [orderer/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type ""
panic: Error reading configuration:Unsupported Config Type ""

goroutine 1 [running]:
panic(0xa488e0, 0xc4201ff1a0)
/opt/go/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1
github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc42019f9b0, 0xc4201cf9e0, 0x2, 0x2)
/w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xd0
github.com/hyperledger/fabric/orderer/localconfig.Load(0xc42022c480)
/w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/localconfig/config.go:231 +0x640
main.main()
/w/workspace/fabric-binaries-x86_64/gopath/src/github.com/hyperledger/fabric/orderer/main.go:69 +0x309

谁知道如何解决这个简单的问题,谢谢!

最佳答案

排序者似乎找不到配置文件。当你运行时:

export FABRIC_CFG_PATH=$PWD

你从哪里运行它?如果您从 Fabric 中的 orderer 目录中运行它,那不是配置文件所在的位置,它们实际上位于名为 exampleconfig 的文件夹中的上一个目录。您应该将 FABRIC_CFG_PATH 设置为此。

关于hyperledger-fabric - 启动 super 账本排序程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46096464/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com