Hyperledger Fabric:Error while creating channel unknown consortium

0 votes

configtx.yaml file

Profiles:

    DocChainOrdererGenesis: #TwoOrgsOrdererGenesis:
        Capabilities:
            <<: *ChannelCapabilities
        Orderer:
            <<: *OrdererDefaults
            Organizations:
                - *OrdererNUSTOrg
            Capabilities:
                <<: *OrdererCapabilities
        Consortiums:
            DocChain:
                Organizations:
                    - *NUST
                    - *GIKI
                    - *LUMS
    DocChainOrgsChannel:
        Consortium: DocChain
        Application:
            <<: *ApplicationDefaults
            Organizations:
                - *NUST
                - *GIKI
                - *LUMS
            Capabilities:
                <<: *ApplicationCapabilities

 i try to create channel from cli container, i get this error

2018-05-11 11:33:13.956 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2018-05-11 11:33:13.956 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2018-05-11 11:33:13.957 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0ABF060A1408021A0608F9FED5D70522...5CB2E57136F84747C182E82B76191345 
2018-05-11 11:33:13.957 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 6B8E0CAC07B99E8E993D0C4C8692797D12AECD3CA09C56AF07D769B2B0783DD1 
Error: got unexpected status: BAD_REQUEST -- Unknown consortium name: DocChain
Usage:
  peer channel create [flags]

Flags:
  -c, --channelID string   In case of a newChain command, the channel ID to create.
  -f, --file string        Configuration transaction file generated by a tool such as configtxgen for submitting to orderer
  -t, --timeout int

Oct 31, 2018 in Blockchain by digger
• 26,550 points
557 views

1 answer to this question.

0 votes

Firstly, replace DocChain with DocChainConsortium.

Then run:

docker-compose -f docker-compose-cli.yaml down --volumes --remove-orphans

This should work

answered Oct 31, 2018 by Omkar
• 67,660 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
81 views
+1 vote
1 answer
0 votes
4 answers

Hyperledger Fabric: Error: 2 UNKNOWN: access denied: channel [contentbackchainchannel] creator org

Run the following command inside fabric-tools folder: ./teardownFabric.sh ./startFabric.sh ./createPeerAdminCard.sh Then ...READ MORE

answered Oct 29, 2018 in Blockchain by Omkar
• 67,660 points
1,513 views
+1 vote
3 answers