Reputation: 658
While it is required to generate a hyperledger fabric network and create my crypto-config.yaml, I ran this command:
export FABRIC_CFG_PATH=$PWD
mkdir channel-artifacts
configtxgen -profile ThreeOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block;
However, I get this message:
[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'.
[common/tools/configtxgen] main -> INFO 002 Loading configuration
[common/tools/configtxgen/localconfig] LoadTopLevel -> CRIT 003 Error reading configuration: Unsupported Config Type ""
[common/tools/configtxgen] func1 -> ERRO 004 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH or --configPath is set to a path which contains configtx.yaml
Where is my mistake? What can I do to fix it?
Upvotes: 0
Views: 588
Reputation: 26
Run the below command:
export FABRIC_CFG_PATH=<path of the configtx.yaml>
After the above command, you can try the using cryptogen
Upvotes: 0
Reputation: 610
The configtx.yaml file is missing,as stated in the error.The path is unspecified.
You should try the command from the directory where this configtx.yaml is located.
Upvotes: 1
Reputation: 726
The first warning is correct but you can avoid it.
Let's focus on
ERRO 004 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH or --configPath is set to a path which contains configtx.yaml
The message is clear: you are missing configtx.yaml. Do you have this file in your Fabric folder? This is mandatory to generate crypto materials.
Upvotes: 0