Welcome to the Linux Foundation Forum!

trouble creating channel

The command I am using: configtxgen -profile SixOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel

the genesis block creation works completely fine the error I get though is: main -> Error on outputChannelCreateTx: could not generate default config template: error parsing configuration: error adding policies to channel group: no policies defined

the yaml

#

#

Section: Organizations

#

#

Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/ordererOrganizations/example.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Writers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Admins:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
OrdererEndpoints:
- orderer.example.com:7050

  • &Org1
    Name: Org1MSP
    ID: Org1MSP
    MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/peerOrganizations/org1.example.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')"
    Writers:
    Type: Signature
    Rule: "OR('Org1MSP.admin', 'Org1MSP.client')"
    Admins:
    Type: Signature
    Rule: "OR('Org1MSP.admin')"
    Endorsement:
    Type: Signature
    Rule: "OR('Org1MSP.peer')"
    AnchorPeers:

    • Host: peer0.org1.example.com
      Port: 7051
  • &Org2
    Name: Org2MSP
    ID: Org2MSP
    MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/peerOrganizations/org2.example.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('Org2MSP.admin', 'Org2MSP.peer', 'Org2MSP.client')"
    Writers:
    Type: Signature
    Rule: "OR('Org2MSP.admin', 'Org2MSP.client')"
    Admins:
    Type: Signature
    Rule: "OR('Org2MSP.admin')"
    Endorsement:
    Type: Signature
    Rule: "OR('Org2MSP.peer')"
    AnchorPeers:

    • Host: peer0.org2.example.com
      Port: 8051
  • &Org3
    Name: Org3MSP
    ID: Org3MSP
    MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/peerOrganizations/org3.example.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')"
    Writers:
    Type: Signature
    Rule: "OR('Org3MSP.admin', 'Org3MSP.client')"
    Admins:
    Type: Signature
    Rule: "OR('Org3MSP.admin')"
    Endorsement:
    Type: Signature
    Rule: "OR('Org3MSP.peer')"
    AnchorPeers:

    • Host: peer0.org3.example.com
      Port: 9051
  • &Org4
    Name: Org4MSP
    ID: Org4MSP
    MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/peerOrganizations/org4.example.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('Org4MSP.admin', 'Org4MSP.peer', 'Org4MSP.client')"
    Writers:
    Type: Signature
    Rule: "OR('Org4MSP.admin', 'Org4MSP.client')"
    Admins:
    Type: Signature
    Rule: "OR('Org4MSP.admin')"
    Endorsement:
    Type: Signature
    Rule: "OR('Org4MSP.peer')"
    AnchorPeers:

    • Host: peer0.org4.example.com
      Port: 10051
  • &Org5
    Name: Org5MSP
    ID: Org5MSP
    MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/peerOrganizations/org5.example.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('Org5MSP.admin', 'Org5MSP.peer', 'Org5MSP.client')"
    Writers:
    Type: Signature
    Rule: "OR('Org5MSP.admin', 'Org5MSP.client')"
    Admins:
    Type: Signature
    Rule: "OR('Org5MSP.admin')"
    Endorsement:
    Type: Signature
    Rule: "OR('Org5MSP.peer')"
    AnchorPeers:

    • Host: peer0.org5.example.com
      Port: 11051
  • &Org6
    Name: Org6MSP
    ID: Org6MSP
    MSPDir: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/peerOrganizations/org6.example.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('Org6MSP.admin', 'Org6MSP.peer', 'Org6MSP.client')"
    Writers:
    Type: Signature
    Rule: "OR('Org6MSP.admin', 'Org6MSP.client')"
    Admins:
    Type: Signature
    Rule: "OR('Org6MSP.admin')"
    Endorsement:
    Type: Signature
    Rule: "OR('Org6MSP.peer')"
    AnchorPeers:

    • Host: peer0.org6.example.com
      Port: 12051
#

#

SECTION: Capabilities

#

#

Capabilities:
Channel: &ChannelCapabilities
V2_0: true
Orderer: &OrdererCapabilities
V2_0: true
Application: &ApplicationCapabilities
V2_5: true

#

#

SECTION: Application

#

#

Application: &ApplicationDefaults
Organizations:
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
LifecycleEndorsement:
Type: ImplicitMeta
Rule: "MAJORITY Endorsement"
Endorsement:
Type: ImplicitMeta
Rule: "MAJORITY Endorsement"
Capabilities:
<<: *ApplicationCapabilities

#

#

SECTION: Orderer

#

#

Orderer: &OrdererDefaults
Addresses:
- orderer.example.com:7050
BatchTimeout: 2s
BatchSize:
MaxMessageCount: 10
AbsoluteMaxBytes: 99 MB
PreferredMaxBytes: 512 KB
EtcdRaft:
Consenters:
- Host: orderer.example.com
Port: 7050
ClientTLSCert: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
ServerTLSCert: /home/nr3a/fabric-samples/my-fabric-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
Capabilities:
<<: *OrdererCapabilities

#

#

SECTION: Channel

#

#

Channel: &ChannelDefaults
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
Capabilities:
<<: *ChannelCapabilities

#

#

SECTION: Profiles

#

#

Profiles:
SixOrgsGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
OrdererType: etcdraft
Organizations:
- *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *Org1
- *Org2
- *Org3
- *Org4
- *Org5
- *Org6

SixOrgsChannel:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
- *Org2
- *Org3
- *Org4
- *Org5
- *Org6
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
Capabilities:
<<: *ApplicationCapabilities

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training