{"record":{"id":"a5287412585782e1","repo":"hyperledger/fabric","slug":"could-not-find-policy-s","errorCode":null,"errorMessage":"could not find policy %s","messagePattern":"could not find policy (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"orderer/common/msgprocessor/sigfilter.go","lineNumber":71,"sourceCode":"\t\tlogger.Panic(\"Programming error: orderer config not found\")\n\t}\n\n\tsignedData, err := protoutil.EnvelopeAsSignedData(message)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not convert message to signedData: %s\", err)\n\t}\n\n\t// In maintenance mode, we typically require the signature of /Channel/Orderer/Writers.\n\t// This will filter out configuration changes that are not related to consensus-type migration\n\t// (e.g on /Channel/Application), and will block Deliver requests from peers (which are normally /Channel/Readers).\n\tpolicyName := sf.normalPolicyName\n\tif ordererConf.ConsensusState() == orderer.ConsensusType_STATE_MAINTENANCE {\n\t\tpolicyName = sf.maintenancePolicyName\n\t}\n\n\tpolicy, ok := sf.support.PolicyManager().GetPolicy(policyName)\n\tif !ok {\n\t\treturn fmt.Errorf(\"could not find policy %s\", policyName)\n\t}\n\n\terr = policy.EvaluateSignedData(signedData)\n\tif err != nil {\n\t\tlogger.Warnw(\"SigFilter evaluation failed\", \"error\", err.Error(), \"ConsensusState\", ordererConf.ConsensusState(), \"policyName\", policyName, \"signingIdentity\", protoutil.LogMessageForSerializedIdentities(signedData))\n\t\treturn errors.Wrap(errors.WithStack(ErrPermissionDenied), err.Error())\n\t}\n\treturn nil\n}\n","sourceCodeStart":53,"sourceCodeEnd":81,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/orderer/common/msgprocessor/sigfilter.go#L53-L81","documentation":"SigFilter.Apply guard: the channel's PolicyManager has no policy registered under the selected policy name (the Writers policy, or the maintenance-mode Writers policy during consensus-type migration). The channel config lacks a required policy — a malformed or incomplete channel configuration.","triggerScenarios":"Thrown at orderer/common/msgprocessor/sigfilter.go:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the channel config so the referenced policy (e.g. /Channel/Orderer/Writers) exists","Re-create or correct the channel with a well-formed configtx"],"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"}