FabricNetwork-2.x icon indicating copy to clipboard operation
FabricNetwork-2.x copied to clipboard

Error while creating channel

Open guru260 opened this issue 3 years ago • 0 comments

Hi! I am learning hlf by following your youtube videos. But I am getting error while creating channel. Steps to reproduce.

  1. git clone https://github.com/adhavpavan/FabricNetwork-2.x.git
  2. cd artifacts/channel/
  3. vi crypto-config.yaml
  4. 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
  1. ./create-artifacts.sh
  2. cd ..
  3. docker-compose -f docker-compose.yaml up -d
  4. cd ../..
  5. ./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.

guru260 avatar Mar 23 '21 05:03 guru260