gpt4 book ai didi

hyperledger-fabric - 在 Hyperledger Fabric 中从 kafka 迁移到 RAFT 时出错

转载 作者:行者123 更新时间:2023-12-04 07:53:44 24 4
gpt4 key购买 nike

我正在从 kafka 迁移到 raft,当我将状态从“NORMAL”更改为“STATE_MAINTENANCE”并按照程序创建最终预期的信封时。

注意:我们使用的是 BYFN 脚本
高频版: 1.4.3

我的CLI指向Org1MSP,我签了config update事务,后来我把CLI改指向Org2MSP并签名,最后把新的channel config update提交给orderer。提交后,得到如下错误信息。

CLI 上的错误:“Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value]  /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

订购者日志:“[channel: mychannel] Rejecting broadcast of config message from 172.21.0.13:51078 because of error: error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value]  /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

如果我做错了什么,请告诉我。

提前致谢。

最佳答案

默认情况下,cryptogen 工具生成订购者管理员用户证书,OU 作为 1.4.3 结构版本的客户端。
对于对等管理员用户,它生成带有 OU 作为管理员的证书,这是正确的(预期)。在订购者的情况下,它创建了错误的 OU(组织单位)作为客户。我们需要在 orderer 部分添加以下部分 crypto-config.yaml。

CA:
OrganizationalUnit: admin

添加上述部分后,通过以下命令重新创建证书并以管理员身份检查订购者证书 OU
openssl x509 -in certificate.crt -text

关于hyperledger-fabric - 在 Hyperledger Fabric 中从 kafka 迁移到 RAFT 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58967511/

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