解决fabric “Authentication failed: failed classifying identity: Unable to extract msp“问题
Posted sanqima
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决fabric “Authentication failed: failed classifying identity: Unable to extract msp“问题相关的知识,希望对你有一定的参考价值。
在配置fabric的每个组织时,有时候会报"Authentication failed: failed classifying identity: Unable to extract msp"错误,如图(1)所示:

出现这种现象的原因是,docker-compose.yaml文件的peer字段的CORE_PEER_LOCALMSPID没有配置,或者docker-compose.yaml里MSPID字段,与configtx.yaml的ID字段不一致导致的。
修复方法:以组织为单位,将每个组织的configtx.yaml里CORE_PEER_LOCALMSPID,与configtx.yaml里的ID字段保持一致即可,如图(2)所示:Org3下的2个节点:peer0.org3、peer1.org3,其MSPID是相同的,都为Org3MSP,且与configtx.yaml里Org3的ID字段保持一致。,如图(2)所示:

以上是关于解决fabric “Authentication failed: failed classifying identity: Unable to extract msp“问题的主要内容,如果未能解决你的问题,请参考以下文章
如何解决“令牌检索失败:AUTHENTICATION_FAILED”?
HttpContext.GetOwinContext().Authentication 报错 解决办法
HttpContext.GetOwinContext().Authentication 报错 解决办法
ubuntu输入su命令显示 Authentication failure解决