hyperledger-fabric - 身份分类失败:无法从对等身份中提取 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
解决方案
锚点节点必须是它们作为锚点的通道的一部分,以及背书节点。
根据您的描述,在您的 6 个 peer 中,您只加入了 3 个。目前尚不清楚您是仅加入 endorsing 还是 anchor peer,但如果您不加入 anchor peer,您可能会观察到这种行为。
推荐阅读
- ios - 如何在 Swift 4 中通过 SwiftyJson 和 Almofire 创建多个按钮?
- typescript - Typescript 和 CSS 模块类型
- swift - 以编程方式切换 MKUserTrackingBarButtonItem
- r - 使用动画以编程方式控制 R-Shiny 滑块上的播放/暂停
- verilog - 你能在同一个模块中同时写行为和结构的verilog吗?
- python - 如何更改数据框中的值用整数替换浮点数
- node.js - Nodejs:我没有在.on('data'上获得请求的数据
- c# - c#将国家缩写返回到国家名称
- mysql - 如何将两个 MySQL 查询的结果合二为一?
- node.js - Nginx HTTPS 失败,但 node.js https 工作