{"record":{"id":"e96a88b0cb30c580","repo":"hyperledger/fabric","slug":"failed-to-validate-config-metadata-of-ordering-con","errorCode":null,"errorMessage":"failed to validate config metadata of ordering config","messagePattern":"failed to validate config metadata of ordering config","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"orderer/consensus/etcdraft/consenter.go","lineNumber":257,"sourceCode":"\tif err != nil {\n\t\treturn false, err\n\t}\n\toc, exists := bundle.OrdererConfig()\n\tif !exists {\n\t\treturn false, errors.New(\"no orderer config in bundle\")\n\t}\n\tconfigMetadata := &etcdraft.ConfigMetadata{}\n\tif err := proto.Unmarshal(oc.ConsensusMetadata(), configMetadata); err != nil {\n\t\treturn false, err\n\t}\n\n\tverifyOpts, err := createX509VerifyOptions(oc)\n\tif err != nil {\n\t\treturn false, errors.Wrapf(err, \"failed to create x509 verify options from orderer config\")\n\t}\n\n\tif err := VerifyConfigMetadata(configMetadata, verifyOpts); err != nil {\n\t\treturn false, errors.Wrapf(err, \"failed to validate config metadata of ordering config\")\n\t}\n\n\tconsenters := make(map[uint64]*etcdraft.Consenter)\n\tfor i, c := range configMetadata.GetConsenters() {\n\t\tconsenters[uint64(i+1)] = c // the IDs don't matter\n\t}\n\n\tif _, err := c.detectSelfID(consenters); err != nil {\n\t\tif err != cluster.ErrNotInChannel {\n\t\t\treturn false, errors.Wrapf(err, \"failed to detect self ID by comparing public keys\")\n\t\t}\n\t\treturn false, nil\n\t}\n\n\treturn true, nil\n}\n\n// ReadBlockMetadata attempts to read raft metadata from block metadata, if available.","sourceCodeStart":239,"sourceCodeEnd":275,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/orderer/consensus/etcdraft/consenter.go#L239-L275","documentation":"Consenter.IsChannelMember wraps a failure of VerifyConfigMetadata: the etcdraft ConfigMetadata unmarshalled from the orderer config failed validation — bad options (ticks, intervals) or consenter certificates that do not verify against the config's CAs.","triggerScenarios":"Thrown at orderer/consensus/etcdraft/consenter.go:257 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the etcdraft options (HeartbeatTick, ElectionTick, TickInterval, etc.) in the channel config","Ensure consenter host/port/tls certificates are correct and verifiable"],"exampleFix":null,"handlingStrategy":"validation","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"}