首页 > 解决方案 > 身份分类失败:无法从对等身份中提取 msp.Identity

问题描述

我已经设置了结构网络,它由 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

码头集装箱内部

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 个锚点对等点中全部更新锚通道事务时,它给我说错误

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

WARN 身份存储拒绝 192.168.16.2:33260:身份分类失败:无法从对等身份中提取 msp.Identity

INFO 流式调用已完成 grpc.service=gossip.Gossip grpc.method=GossipStream grpc.peer_address=192.168.16.2:33260,无法验证。没有找到能够做到这一点的 MSP。” grpc.code=Unknown grpc.call_duration=7.2664ms

标签: hyperledger-fabrichyperledgerhyperledger-fabric-ca

解决方案


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

根据您的描述,在您的 6 个 peer 中,您只加入了 3 个。目前尚不清楚您是仅加入 endorsing 还是 anchor peer,但如果您不加入 anchor peer,您可能会观察到这种行为。


推荐阅读