FabricNetwork-2.x
FabricNetwork-2.x copied to clipboard
Error while creating channel
Hi! I am learning hlf by following your youtube videos. But I am getting error while creating channel. Steps to reproduce.
- git clone https://github.com/adhavpavan/FabricNetwork-2.x.git
- cd artifacts/channel/
- vi crypto-config.yaml
- Add the following at end of the file.
- Name: Org3
Domain: org3.example.com
EnableNodeOUs: true
Template:
Count: 2
# Start: 5
# Hostname: {{.Prefix}}{{.Index}} # default
SANS:
- "localhost"
Users:
Count: 1
- ./create-artifacts.sh
- cd ..
- docker-compose -f docker-compose.yaml up -d
- cd ../..
- ./createChannel.sh
Getting the following error.
➜ FabricNetwork-2.x git:(main) ✗ ./createChannel.sh
2021-03-23 10:52:42.129 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-
policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied
2021-03-23 10:52:42.193 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: genesis block file not found open ./channel-artifacts/mychannel.block: no such file or directory
2021-03-23 10:52:42.238 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: genesis block file not found open ./channel-artifacts/mychannel.block: no such file or directory
2021-03-23 10:52:42.289 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: genesis block file not found open ./channel-artifacts/mychannel.block: no such file or directory
2021-03-23 10:52:42.331 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- Consortium config value missing
2021-03-23 10:52:42.381 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- Consortium config value missing
2021-03-23 10:52:42.432 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- Consortium config value missing
➜ FabricNetwork-2.x git:(main) ✗
Help me to fix this issue.