首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级hyperledger fabric网络后,通道创建失败

升级hyperledger fabric网络后,通道创建失败
EN

Stack Overflow用户
提问于 2019-12-04 17:55:49
回答 2查看 661关注 0票数 1

我将开发超级分类账结构网络从1.4.1更新到1.4.4,不能再创建通道或与网络交互,因为在v1.4.1中没有失败的通道策略失败了

下面是当我试图通过节点sdk创建一个通道时所发生的事情

节点sdk中的错误

代码语言:javascript
复制
error: Status: BAD_REQUEST
Info: error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group]  /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

订单码头集装箱中的错误

代码语言:javascript
复制
[orderer.common.broadcast] ProcessMessage -> WARN 00e [channel: farm] Rejecting broadcast of config message from 172.18.0.1:40866 because of error: error validating channel creation transaction for new channel 'farm', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group]  /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

密码配置部分

代码语言:javascript
复制
Application: &ApplicationDefaults

    # Organizations is the list of orgs which are defined as participants on
    # the application side of the network
    Organizations:

    # Policies defines the set of policies at this level of the config tree
    # For Application policies, their canonical path is
    #   /Channel/Application/<PolicyName>
    Policies:
        Readers:
            Type: ImplicitMeta
            Rule: "ANY Readers"
        Writers:
            Type: ImplicitMeta
            Rule: "ANY Writers"
        Admins:
            Type: ImplicitMeta
            Rule: "MAJORITY Admins"
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-12-09 17:17:05

在使用用于v1.4.4的fabric样例configtx.yaml作为模板之后,我发现唯一的区别是这个Capabilities部分

代码语言:javascript
复制
Application: &ApplicationDefaults

    # Organizations is the list of orgs which are defined as participants on
    # the application side of the network
    Organizations:

    # Policies defines the set of policies at this level of the config tree
    # For Application policies, their canonical path is
    #   /Channel/Application/<PolicyName>
    Policies:
        Readers:
            Type: ImplicitMeta
            Rule: "ANY Readers"
        Writers:
            Type: ImplicitMeta
            Rule: "ANY Writers"
        Admins:
            Type: ImplicitMeta
            Rule: "MAJORITY Admins"

    Capabilities:
        <<: *ApplicationCapabilities
票数 1
EN

Stack Overflow用户

发布于 2019-12-05 11:14:05

我认为在1.4.3中出现了一些频道策略和信道能力的变化

我解决了这个问题,方法是从第一个网络获得1.4.3 fabric示例的configtx.yaml,并将我的更改(org名称等)应用到这个新的yaml文件中。然后产生一个新的成因块等。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59182124

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档