windows - 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...
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.
解决方案
推荐阅读
- c# - Selenium ChromeDriver - 对远程 WebDriver 服务器的 URL 的 HTTP 请求在 60 秒后超时
- c++ - 为什么在缺少宽度参数时 fprintf 会导致内存泄漏并且行为不可预测
- php - 如果最大值只能是 30,如何组合数组中的值?
- node.js - React Native 0.57.8 但 React Native Navigation 版本是:1.1.471,但 React Native Navigation 的当前版本是:2.20.2
- javascript - 车把 如果 var 长度大于
- python-3.x - 每当我打开我的 anaconda 命令提示符时,都会出现错误消息,所以请帮助我
- javascript - 过滤基于数组的属性值
- java - 有没有办法通过 java sdk 指定训练短语中的哪些单词正在满足 Dialogflow 中的插槽
- azure-language-understanding - 我的意图与预期的反应不符
- java - BluetoothAdapter.isEnabled() 上的 Java NullPointerException