hyperledger-fabric - 在超级账本结构中的现有联盟中添加新组织时出错
问题描述
在超级账本结构中的现有运行网络联盟中添加新组织时出现错误。我已完成此链接
上提到的所有步骤,
但是当我到达最后一步时,我收到错误
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'syschannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Consortiums not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied
请建议如何解决它或给出一些提示。
HLF 网络规范
3 raft-orderer with CA
2 org with 2 peer each with CA
谢谢
解决方案
我认为问题在于您的订购者管理员证书没有正确的“ou”。
首先,您应该检查“Admins”证书是否有正确的“ou”。尝试openssl x509 -text -in crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/signcerts/Admin@example.com-cert.pem
获取管理员证书的详细信息。
如果你得到这样的细节:
Issuer: C=US, ST=California, L=San Francisco, O=example.com, CN=ca.example.com
Validity
Not Before: Feb 9 08:53:00 2021 GMT
Not After : Feb 7 08:53:00 2031 GMT
Subject: C=US, ST=California, L=San Francisco, OU=client, CN=Admin@example.com
OU 女巫应该是管理员,但这里是客户。
此问题发生在 v1.4.3 及之前版本中,已在此链接中修复。
解决此问题的一种解决方案是删除EnableNodeOUs: true
in crypto-config.yaml: OrdererOrgs
,然后重试所有步骤。另一种解决方案是使用cryptogen
v1.4.4 及更高版本。
推荐阅读
- haskell - 我如何从 ghci 取消设置:set -v?
- r - R将因子变量的级别堆叠到数据框中
- c++ - 在测试标志上有条件地声明一个函数 noexcept ?
- php - 幻灯片 jquery 在加载时显示所有图像
- java - 在清空树并返回节点的同时遍历树
- linux - 基于匹配两个第一列使用 awk 组合文件,然后输出第一个文件的文本和第二个文件的第三列
- php - MySQL PHP 在医生可用性范围内查找时间段
- bash - Bash 获取使用 head 命令提取的文件列表的大小
- python - 在python中使用线程(多处理)时传递变量
- angular - 如何在http get中传递查询参数