身份分类失败:无法从对等身份中提取 msp.Identity

Failed classifying identity: Unable to extract msp.Identity from peer Identity

我已经设置了 fabric 网络,它由 3org 组成,每 2 个对等点共有 6 个对等点。我使用 3 个节点作为链码进行背书,其他 3 个节点作为锚节点。当我 运行 结构网络正常工作时。我使用以下命令创建了通道交易和锚点交易

  export CHANNEL_ONE_NAME=mychannel
  export CHANNEL_ONE_PROFILE=Mychannel

./bin/configtxgen -profile ${CHANNEL_ONE_PROFILE} -outputAnchorPeersUpdate ./channel- artifacts/Org1MSPanchors_${CHANNEL_ONE_NAME}.tx -channelID $CHANNEL_ONE_NAME -asOrg Org1MSP

创建

Org1MSPanchors_mychannel
Org2MSPanchors_mychannel
Org3MSPanchors_mychannel

在 docker 容器内

peer channel update -o orderer.avantas.com:7050 -c mychannel -f /opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts/Org1MSPanchors_mychannel.tx --tls --cafile $ORDERER_CA

我已经从所有 3 个对等点加入了频道,并且还更新了锚点对等点。 当我在 3 个锚节点中更新锚通道交易时,它给我错误提示

error Authentication failed: failed classifying identity: Unable to extract msp.Identity from peer Identity

WARN Identity store rejected 192.168.16.2:33260 : failed classifying identity: Unable to extract msp.Identity from peer Identity

INFO streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.peer_address=192.168.16.2:33260, cannot be validated. No MSP found able to do that." grpc.code=Unknown grpc.call_duration=7.2664ms

锚点必须是他们作为锚点的通道的一部分,以及背书点。

根据你的描述,在你的 6 个同行中,你只加入了 3 个。目前还不清楚你是只加入背书还是锚点,但如果你不加入锚点,你可能会观察这种行为。