【问题标题】:error when creating an new channel 'BAD_REQUEST -- error authorizing update: error validating DeltaSet'创建新频道时出错“BAD_REQUEST - 授权更新时出错:验证 DeltaSet 时出错”
【发布时间】:2018-09-10 07:07:24
【问题描述】:

我尝试手动创建 first-network 而不是使用 byfn.sh 脚本,当我尝试在 cli 容器中创建频道时。

peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

我收到此错误:

Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group]  /Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining

以及来自订购者的此错误:

ERRO 008 Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity 

注意:

如果我使用 byfn.sh 脚本就可以了

我找到了这个

peer channel creation fails in Hyperledger Fabric,

hyperledger fabric first_network example create channel got BAD_REQUEST,

FABRIC returns Error: Got unexpected status: BAD_REQUEST问题

但我仍然不知道如何解决此错误?

操作系统主机: ubuntu 16:04

超级账本结构版本: x86_64-1.1.0

【问题讨论】:

  • 这个你运气好吗?我有同样的问题,但我的网络与示例网络有点不同。

标签: hyperledger-fabric hyperledger


【解决方案1】:

在开始手动步骤之前尝试执行 byfn down。我认为以前的卷没有清除。

【讨论】:

    【解决方案2】:

    如果您仍然遇到此错误,您可能已经尝试启动网络,然后重新开始。您需要删除旧的 docker 容器及其卷 - 它们可能会尝试重复使用,然后将使用旧的证书数据,从而导致 unknown authority 错误。

    以下是您要用于 byfn.sh 或类似脚本的所有重置命令:

    # STOP AND DELETE THE DOCKER CONTAINERS
    docker ps -aq | xargs -n 1 docker stop
    docker ps -aq | xargs -n 1 docker rm -v
    
    # DELETE THE OLD DOCKER VOLUMES
    docker volume prune
    
    # DELETE OLD DOCKER NETWORKS (OPTIONAL: seems to restart fine without)
    docker network prune
    
    # DELETE SCRIPT-CREATED FILES
    rm -rf channel-artifacts/*.block channel-artifacts/*.tx crypto-config
    rm -f docker-compose-e2e.yaml
    
    # VERIFY RESULTS
    docker ps -a
    docker volume ls
    ls -l
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-22
      • 1970-01-01
      • 2021-08-05
      • 2018-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-29
      相关资源
      最近更新 更多