首页 > 解决方案 > Unable to open the config file and Failed to generate orderer genesis block

问题描述

I am stuck here.

Error Log:

/d/Practice/Blockchain/hyperLedger/fabric-samples/bin/configtxgen
Generating Orderer Genesis block
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID system-channel -outputBlock ./system-genesis-block/genesis.block
2021-10-28 11:47:51.285 +06 [common.tools.configtxgen] main -> INFO 001 Loading configuration
2021-10-28 11:47:51.287 +06 [viperutil] ReadInConfig -> ERRO 002 Unable to open the config file:
2021-10-28 11:47:51.287 +06 [common.tools.configtxgen.localconfig] Load -> PANI 003 Error reading configuration: open : The system cannot find the file specified.
2021-10-28 11:47:51.287 +06 [common.tools.configtxgen] func1 -> PANI 004 Error reading configuration: open : The system cannot find the file specified.
panic: Error reading configuration: open : The system cannot find the file specified. [recovered]
panic: Error reading configuration: open : The system cannot find the file specified.
. . . . . .
. . . . . .
        /__w/1/go/src/github.com/hyperledger/fabric/internal/configtxgen/genesisconfig/config.go:238 +0x1e5
main.main()

/__w/1/go/src/github.com/hyperledger/fabric/cmd/configtxgen/main.go:279 +0x1072
+ res=2
Failed to generate orderer genesis block...

enter image description here

So far I had tried by adding this in environment variable.

FABRIC_CFG_PATH = D:\Practice\Blockchain\hyperLedger\fabric-samples\config

and also had run this command:

export FABRIC_CFG_PATH=${PWD}/configtx

But still showing the same error.

标签: windowsdockerhyperledger-fabricblockchainhyperledger

解决方案


推荐阅读