在 hyperledger fabric 的现有联盟中添加新组织时出错

Getting error while add new organizations in existing Consortium in hyperledger fabric

在 hyperledger fabric 的现有 运行 网络联盟中添加新组织时出现错误。我已经完成了 this link
中提到的所有步骤 但是,当我进行到最后一步时,出现错误

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'。

首先,您应该检查“管理员”证书是否正确'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 及之前的版本中,已在 this link 中修复。

解决此问题的一种方法是删除crypto-config.yaml: OrdererOrgs中的EnableNodeOUs: true,然后重试所有步骤。另一种解决方案是使用 cryptogen v1.4.4 及更高版本。