hyperledger / hyperledger/fabric-sdk-py

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

Open
#194 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
416
Forks
203
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.