Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main -> Error on outputBlock: could not create bootstrapper: could not create channel group: error adding policies to channel group: no policies defined #194

Open
SayeedM2023 opened this issue Nov 10, 2024 · 0 comments

Comments

@SayeedM2023
Copy link

my configtx.yaml as follows:
Organizations:

  • &OrdererOrg
    Name: OrdererOrg
    ID: OrdererMSP
    MSPDir: crypto-config/ordererOrganizations/teamc.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('OrdererMSP.member')"
    Writers:
    Type: Signature
    Rule: "OR('OrdererMSP.member')"
    Admins:
    Type: Signature
    Rule: "OR('OrdererMSP.admin')"

  • &Hospital
    Name: HospitalMSP
    ID: HospitalMSP
    MSPDir: crypto-config/peerOrganizations/hospital.teamc.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('HospitalMSP.member')"
    Writers:
    Type: Signature
    Rule: "OR('HospitalMSP.member')"
    Admins:
    Type: Signature
    Rule: "OR('HospitalMSP.admin')"

  • &Clinic
    Name: ClinicMSP
    ID: ClinicMSP
    MSPDir: crypto-config/peerOrganizations/clinic.teamc.com/msp
    Policies:
    Readers:
    Type: Signature
    Rule: "OR('ClinicMSP.member')"
    Writers:
    Type: Signature
    Rule: "OR('ClinicMSP.member')"
    Admins:
    Type: Signature
    Rule: "OR('ClinicMSP.admin')"

Profiles:
TwoOrgsChannel:
Consortium: SampleConsortium
Application:
Policies:
Readers:
Type: Signature
Rule: "OR('HospitalMSP.member', 'ClinicMSP.member')"
Writers:
Type: Signature
Rule: "OR('HospitalMSP.member', 'ClinicMSP.member')"
Admins:
Type: Signature
Rule: "OR('HospitalMSP.admin', 'ClinicMSP.admin')"
Organizations:
- *Hospital
- *Clinic

TwoOrgsOrdererGenesis:
Orderer:
OrdererType: etcdraft
Addresses:
- orderer.teamc.com:7050
BatchTimeout: 2s
BatchSize:
MaxMessageCount: 10
AbsoluteMaxBytes: 98 MB
PreferredMaxBytes: 512 KB
EtcdRaft:
Consenters:
- Host: orderer1.teamc.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/teamc.com/orderers/orderer1.teamc.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/teamc.com/orderers/orderer1.teamc.com/tls/server.crt
- Host: orderer2.teamc.com
Port: 8050
ClientTLSCert: crypto-config/ordererOrganizations/teamc.com/orderers/orderer2.teamc.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/teamc.com/orderers/orderer2.teamc.com/tls/server.crt
- Host: orderer3.teamc.com
Port: 9050
ClientTLSCert: crypto-config/ordererOrganizations/teamc.com/orderers/orderer3.teamc.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/teamc.com/orderers/orderer3.teamc.com/tls/server.crt
Policies:
Readers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Writers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Admins:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
Organizations:
- *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *Hospital
- *Clinic

when running configen showing following issue:
/hyperledger-network/fabric-samples/bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block -channelID teamchannel
2024-11-10 21:08:22.260 AEST 0001 INFO [common.tools.configtxgen] main -> Loading configuration
2024-11-10 21:08:22.264 AEST 0002 INFO [common.tools.configtxgen.localconfig] completeInitialization -> orderer type: etcdraft
2024-11-10 21:08:22.264 AEST 0003 INFO [common.tools.configtxgen.localconfig] completeInitialization -> Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:16777216
2024-11-10 21:08:22.264 AEST 0004 INFO [common.tools.configtxgen.localconfig] Load -> Loaded configuration: /home/mohammadabu/hyperledger-network/fabric-samples/my-network/configtx.yaml
2024-11-10 21:08:22.264 AEST 0005 FATA [common.tools.configtxgen] main -> Error on outputBlock: could not create bootstrapper: could not create channel group: error adding policies to channel group: no policies defined

Can anyone help please where is the issue, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant