首页 > 解决方案 > 在超级账本结构中的现有联盟中添加新组织时出错

问题描述

在超级账本结构中的现有运行网络联盟中添加新组织时出现错误。我已完成此链接
上提到的所有步骤, 但是当我到达最后一步时,我收到错误

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 

谢谢

标签: hyperledger-fabrichyperledger

解决方案


我认为问题在于您的订购者管理员证书没有正确的“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: truein crypto-config.yaml: OrdererOrgs,然后重试所有步骤。另一种解决方案是使用cryptogenv1.4.4 及更高版本。


推荐阅读