gpt4 book ai didi

hyperledger-fabric - 创建新 channel 时出错 'BAD_REQUEST -- error authorizing update: error validating DeltaSet'

转载 作者:行者123 更新时间:2023-12-04 07:55:25 24 4
gpt4 key购买 nike

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

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

super 账本结构版本: x86_64-1.1.0

最佳答案

如果您仍然遇到此错误,您可能已经尝试启动网络,然后重新开始。您需要删除旧的 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

关于hyperledger-fabric - 创建新 channel 时出错 'BAD_REQUEST -- error authorizing update: error validating DeltaSet',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49588007/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com