{"record":{"id":"4183989ab0e611f4","repo":"hyperledger/fabric","slug":"peer-identity-s-cannot-be-validated-no-msp-found","errorCode":null,"errorMessage":"Peer Identity %s cannot be validated. No MSP found able to do that.","messagePattern":"Peer Identity (.+?) cannot be validated\\. No MSP found able to do that\\.","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/peer/gossip/mcs.go","lineNumber":357,"sourceCode":"\t\t\treturn nil, nil, errors.Wrap(err, \"identity is not well formed\")\n\t\t}\n\n\t\t// Check identity validity\n\t\t// Notice that at this stage we don't have to check the identity\n\t\t// against any channel's policies.\n\t\t// This will be done by the caller function, if needed.\n\n\t\tif err := identity.Validate(); err != nil {\n\t\t\tmcsLogger.Debugf(\"Failed validating identity %s on [%s]: [%s]\", peerIdentity, chainID, err)\n\t\t\tcontinue\n\t\t}\n\n\t\tmcsLogger.Debugf(\"Validation succeeded %s on [%s]\", peerIdentity, chainID)\n\n\t\treturn identity, common.ChannelID(chainID), nil\n\t}\n\n\treturn nil, nil, fmt.Errorf(\"Peer Identity %s cannot be validated. No MSP found able to do that.\", peerIdentity)\n}\n","sourceCodeStart":339,"sourceCodeEnd":359,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/internal/peer/gossip/mcs.go#L339-L359","documentation":"In the gossip message crypto service's getValidatedIdentity: the peer identity bytes could be unmarshaled and resolved against channel MSPs, but no MSP manager on any known channel recognizes the identity's issuer, so no MSP can validate it. The %s is a truncated form of the identity; this fires for identities from peers not in any known channel or carrying an unknown MSP ID.","triggerScenarios":"Thrown at internal/peer/gossip/mcs.go:357 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the remote peer's organization is joined to at least one channel known to this peer and that the channel's config includes its MSP","Verify the identity's MSP ID matches the MSP defined in the channel configuration","Check channel membership/join state and gossip external endpoint configuration so peers learn about each other's channels"],"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"}