{"record":{"id":"b5dd102fa78f8eb8","repo":"hyperledger/fabric","slug":"could-not-create-orderer-group","errorCode":null,"errorMessage":"could not create orderer group","messagePattern":"could not create orderer group","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/configtxgen/encoder/encoder.go","lineNumber":160,"sourceCode":"\taddValue(channelGroup, channelconfig.HashingAlgorithmValue(), channelconfig.AdminsPolicyKey)\n\taddValue(channelGroup, channelconfig.BlockDataHashingStructureValue(), channelconfig.AdminsPolicyKey)\n\tif conf.Orderer != nil && len(conf.Orderer.Addresses) > 0 {\n\t\taddValue(channelGroup, channelconfig.OrdererAddressesValue(conf.Orderer.Addresses), ordererAdminsPolicyName)\n\t}\n\n\tif conf.Consortium != \"\" {\n\t\taddValue(channelGroup, channelconfig.ConsortiumValue(conf.Consortium), channelconfig.AdminsPolicyKey)\n\t}\n\n\tif len(conf.Capabilities) > 0 {\n\t\taddValue(channelGroup, channelconfig.CapabilitiesValue(conf.Capabilities), channelconfig.AdminsPolicyKey)\n\t}\n\n\tvar err error\n\tif conf.Orderer != nil {\n\t\tchannelGroup.Groups[channelconfig.OrdererGroupKey], err = NewOrdererGroup(conf.Orderer, conf.Capabilities)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrap(err, \"could not create orderer group\")\n\t\t}\n\t}\n\n\tif conf.Application != nil {\n\t\tchannelGroup.Groups[channelconfig.ApplicationGroupKey], err = NewApplicationGroup(conf.Application)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrap(err, \"could not create application group\")\n\t\t}\n\t}\n\n\tif conf.Consortiums != nil {\n\t\tchannelGroup.Groups[channelconfig.ConsortiumsGroupKey], err = NewConsortiumsGroup(conf.Consortiums)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrap(err, \"could not create consortiums group\")\n\t\t}\n\t}\n\n\tchannelGroup.ModPolicy = channelconfig.AdminsPolicyKey","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/internal/configtxgen/encoder/encoder.go#L142-L178","documentation":"Wrapping error in NewChannelGroup: NewOrdererGroup failed while building the orderer section of the channel config. Typically caused by invalid orderer organization config, MSP load failure, or policy errors within the orderer group; the wrapped error carries the specifics.","triggerScenarios":"Thrown at internal/configtxgen/encoder/encoder.go:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Follow the wrapped error: fix the orderer organizations, MSP directories, or policies in the profile's Orderer section","Verify each orderer org's MSPDir exists and contains valid signing/CA material","Check that orderer capability and consensus type settings are consistent"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2736b63f8fd5932511d56fe68b7039d15977f7f6","analyzedAt":"2026-09-04T08:52:36.465Z","contentChangedAt":"2026-09-04T08:52:36.465Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}