An error is reported when fabric generates transaction-related files

When I execute the command, an error is reported

configtxgen -profile OneOrgOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block

report this error

 terminal input

export FABRIC_CFG_PATH=$PWD
source ~/.bashrc

Re-execute the command

configtxgen -profile OneOrgOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block

error again

This time I said that I did not find OneOrgOrdererGenesis. I looked at the configuration file configtx.yaml and found that there is this OneOrgOrdererGenesis in the profiles.

Check the configuration file carefully, and found that there are two more in the file -- which makes the file unreadable

Delete this -- save and re-execute

 

success! 

Guess you like

Origin blog.csdn.net/weixin_57534018/article/details/125461532