gpt4 book ai didi

hyperledger-fabric - 如何修复 Hyperledger Fabric 中的 "rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP]"错误

转载 作者:行者123 更新时间:2023-12-05 06:26:25 25 4
gpt4 key购买 nike

目前我正在使用 Hyperledger Fabric 1.4,我正在尝试修改基础网络。我正在尝试与一个对等方一起添加 org2。每当我尝试从第二个组织 (Org2) 的对等方调用链代码时,我都会收到以下错误:

错误:背书链代码时出错:rpc 错误:代码 = 未知描述 = 访问被拒绝: channel [] 创建者组织 [Org2MSP]

我当前的网络组件是:
org1,有两个同行
org2,有一个同行
CA1
CA2
订单
命令行界面
和一个名为“mychannel”的 channel

我能够创建 channel “mychannel”并加入来自两个组织的 3 个同行。此外,我能够在两个组织的三个对等节点上安装链码。我正在 Org1 中的 peer0 上实例化链码

部分Ordere日志:

2019-05-13 13:17:42.384 UTC [fsblkstorage] newBlockfileMgr -> INFO 003 Getting block information from block storage
2019-05-13 13:17:42.970 UTC [orderer.commmon.multichannel] Initialize -> INFO 004 Starting system channel 'testchainid' with genesis block hash f1bcfe55588bd24faaa699bc740045455283b63950436a36d5cf473f4b3d8f81 and orderer type solo
2019-05-13 13:17:42.970 UTC [orderer.common.server] Start -> INFO 005 Starting orderer:
Version: 1.4.1
Commit SHA: 87074a7
Go version: go1.11.5
OS/Arch: linux/amd64
2019-05-13 13:17:42.970 UTC [orderer.common.server] Start -> INFO 006 Beginning to serve requests
2019-05-13 13:21:30.921 UTC [comm.grpc.server] 1 -> INFO 007 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.20.0.6:36544 grpc.code=OK grpc.call_duration=27.428231ms
2019-05-13 13:21:30.927 UTC [fsblkstorage] newBlockfileMgr -> INFO 008 Getting block information from block storage
2019-05-13 13:21:31.038 UTC [orderer.commmon.multichannel] newChain -> INFO 009 Created and starting new chain mychannel
2019-05-13 13:21:31.044 UTC [comm.grpc.server] 1 -> INFO 00a streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.20.0.6:36542 grpc.code=OK grpc.call_duration=152.538972ms
2019-05-13 13:22:11.867 UTC [common.deliver] Handle -> WARN 00b Error reading from 172.20.0.6:36578: rpc error: code = Canceled desc = context canceled
2019-05-13 13:22:11.867 UTC [comm.grpc.server] 1 -> INFO 00c streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.20.0.6:36578 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=5.757971ms
2019-05-13 13:22:22.295 UTC [orderer.common.broadcast] Handle -> WARN 00d Error reading from 172.20.0.8:34272: rpc error: code = Canceled desc = context canceled
2019-05-13 13:22:22.295 UTC [comm.grpc.server] 1 -> INFO 00e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.20.0.8:34272 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=7.238573847s
2019-05-13 13:23:46.748 UTC [orderer.common.broadcast] Handle -> WARN 00f Error reading from 172.20.0.8:34362: rpc error: code = Canceled desc = context canceled
2019-05-13 13:23:46.748 UTC [comm.grpc.server] 1 -> INFO 010 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.20.0.8:34362 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=49.20235ms

在夏天,由于 channel 访问错误,我无法从第二个组织 (Org2) 调用链码。笔记:我正在生成 CA,我已经检查了文件,它似乎是正确的

如果有人能提供帮助,我将不胜感激。
提前致谢

最佳答案

这可能是由错误的 MSPID 名称引起的,例如“orgMSP”是错误的,因为它以小写字母“o”开头使用正确的 MSPID 解决问题

export CORE_PEER_LOCALMSPID="Org1MSP"

关于hyperledger-fabric - 如何修复 Hyperledger Fabric 中的 "rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP]"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56113503/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com