hyperledger-fabric - 错误 : got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, 需要 1 个剩余:权限被拒绝

标签 hyperledger-fabric

我的fabric版本是1.1.0-preview,peer、orderer、configtxgen是新生成的。

当我执行 configtxgen 工具时:

configtxgen -profile SoloOrdererGenesis -outputBlock genesis.block 
configtxgen -profile mych -outputCreateChannelTx channel-artifacts/mych.tx -channelID mych

它生成 genesis.block 和 mych.tx,channelName 是 mych。

然后 orderer 以 genesis.block 开始,我执行以下操作:
peer channel create -f mych.tx -o orderer.example.com:7050 -c mych

它抛出错误,

Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied



哪一步错了?

我的 configtx.yaml 文件是:
---
Profiles:
    SoloOrdererGenesis:
        Orderer:
            <<: *OrdererDefaults
            Organizations:
                - *OrdererOrg
        Consortiums:
            SampleConsortium4:
                Organizations:
                    - *Org1
                    - *Org2
                    - *Org3
                    - *Org4
            SampleConsortium3:
                Organizations:
                    - *Org1
                    - *Org2
                    - *Org3
            SampleConsortium2:
                Organizations:
                    - *Org1
                    - *Org2
            SampleConsortium1:
                Organizations:
                    - *Org1
    mych4:
        Consortium: SampleConsortium4
        Application:
            <<: *ApplicationDefaults
            Organizations:
                - *Org1
                - *Org2
                - *Org3
                - *Org4
    mych3:
        Consortium: SampleConsortium3
        Application:
            <<: *ApplicationDefaults
            Organizations:
                - *Org1
                - *Org2
                - *Org3

    mych2:
        Consortium: SampleConsortium2
        Application:
            <<: *ApplicationDefaults
            Organizations:
                - *Org1
                - *Org2

    mych1:
        Consortium: SampleConsortium1
        Application:
            <<: *ApplicationDefaults
            Organizations:
                - *Org1
Organizations:
    - &OrdererOrg
        Name: OrdererOrg
        ID: OrdererMSP
        MSPDir: orderer/msp

    - &Org1
        Name: Org1MSP
        ID: Org1MSP
        MSPDir: org1/peer/msp
        AnchorPeers:
            - Host: peer.org1.example.com
              Port: 17051
    - &Org2
        Name: Org2MSP
        ID: Org2MSP
        MSPDir: org2/peer/msp
        AnchorPeers:
            - Host: peer.org2.example.com
              Port: 27051            
Orderer: &OrdererDefaults
    OrdererType: solo
    Addresses:
        - orderer.example.com:7050
    BatchTimeout: 2s
    BatchSize:
        MaxMessageCount: 10
        AbsoluteMaxBytes: 99 MB
        PreferredMaxBytes: 512 KB
    Organizations:

Application: &ApplicationDefaults
    Organizations:

最佳答案

当我遇到这个问题时,我的解决方案非常简单..我已经开始使用我的网络

/byfn.sh -m up

忘记了它并试图首先通过生成加密然后使用相同的命令来启动它。
我第一次使用旧网络关闭后,问题就解决了
/byfn.sh -m down

并使用相同的 up 命令再次启动。

关于hyperledger-fabric - 错误 : got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, 需要 1 个剩余:权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48151804/

相关文章:

hyperledger-fabric - 为什么极力反对同时成为申请者和排序者组织?

hyperledger-fabric - 基于 Hyperledger 的加密货币

hyperledger-fabric - hyperledger fabric channel 账本中如何控制参与节点的读写权限?

node.js - 使用 Fabric Node SDK 将新组织添加到现有的 Hyperledger Fabric 网络

hyperledger-fabric - 在链码实例化时出现错误 Error : could not send: rpc error: code = Unavailable desc = transport is closing

hyperledger-fabric - Telnet - 尝试连接到 hyperledger fabric 网络中的对等点时自动关闭

hyperledger-fabric - 如何修复 Hyperledger Fabric 中的 "FAILED to execute End-2-End Scenario"?

go - 这个函数中的 (t *SimpleAsset) 是什么

hyperledger - 如何将区 block 链与 Hyperledger Fabric 连接起来?

docker - 在 Ubuntu18.04 上使用 Fabric 1.4 以 "fatal error: unexpected signal during runtime execution"启动后,对等点立即退出