However, after fixing this, Ithe orderer fails to start with the following error:
' Error creating configtx manager and handlers: Error deserializing key Capabilities for group /Channel: Unexpected key Capabilities'
Actually, changing
'ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block'
to
'ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/genesis.block'
breaks the code, because '/var/hyperledger/orderer/genesis.block' does not exist.
The original code was correct because in docker-compose-base.yaml, you mount the following volume:
../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
Did you test this code before posting?
You generate the genesis block as "genesis.block" and later on use "orderer.genesis.block"
../bin/configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block
...
You also require "Template" in crypto-config.yaml, otherwise the crypto is not fully generated.
PeerOrgs:
It's also illegal to use capital letters in the naming of channel! The ordered will crash.
However, after fixing this, Ithe orderer fails to start with the following error:
' Error creating configtx manager and handlers: Error deserializing key Capabilities for group /Channel: Unexpected key Capabilities'
Using the latest fabric images (i.e. removing all instances of ':x86_64-1.0.0-rc1') fixed this.
Thank you for your comment. I had no idea about the capital letters in the channel name causing problems! Thanks!
Actually, changing
'ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block'
to
'ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/genesis.block'
breaks the code, because '/var/hyperledger/orderer/genesis.block' does not exist.
The original code was correct because in docker-compose-base.yaml, you mount the following volume:
../channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
can you please share you github link for this code ? It will be very helpful