创建新频道时出错'BAD_REQUEST - 错误授权更新:错误验证DeltaSet'

时间:2018-03-31 12:58:01

标签: hyperledger-fabric hyperledger

我尝试手动创建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

来自orderer的错误:

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个问题

但我仍然不知道如何修复此错误?

os主持人: ubuntu 16:04

hyperledger fabric版本: x86_64-1.1.0

2 个答案:

答案 0 :(得分: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

答案 1 :(得分:0)

在开始手动步骤之前,请尝试按BYFN进行操作。我认为以前的卷没有清除。