运行Hyperledger架构基本网络的问题:验证ReadSet时出错

问题描述 投票:0回答:1

我正在尝试在超级账本结构documents上运行本教程,但是当我运行./start.sh命令时出现此错误:

docker-compose -f docker-compose.yml down
Removing network net_basic
WARNING: Network net_basic not found.

docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb
Creating network "net_basic" with the default driver
Creating ca.example.com      ... done
Creating couchdb             ... done
Creating orderer.example.com ... done
Creating peer0.org1.example.com ... done
docker ps -a
CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS                  PORTS                                            NAMES
f799f0b5a94b        hyperledger/fabric-peer      "peer node start"        3 seconds ago       Up Less than a second   0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp   peer0.org1.example.com
036e92d414df        hyperledger/fabric-orderer   "orderer"                9 seconds ago       Up 5 seconds            0.0.0.0:7050->7050/tcp                           orderer.example.com
78255d10ae02        couchdb:2.3                  "tini -- /docker-ent…"   9 seconds ago       Up 3 seconds            4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp       couchdb
55f3ade84d52        hyperledger/fabric-ca        "sh -c 'fabric-ca-se…"   9 seconds ago       Up 4 seconds            0.0.0.0:7054->7054/tcp                           ca.example.com

# wait for Hyperledger Fabric to start
# incase of errors when running later commands, issue export FABRIC_START_TIMEOUT=<larger number>
export FABRIC_START_TIMEOUT=60
#echo ${FABRIC_START_TIMEOUT}
sleep ${FABRIC_START_TIMEOUT}

# Create the channel
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx
2019-12-21 09:24:37.078 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating ReadSet: existing config does not contain element for [Group]  /Channel/Application/Org1MSP but was in the read set

[首先,我尝试将FABRIC_START_TIMEOUT更改为60秒(原来是10秒),但问题仍然存在。我试图查看peer0.org1.example.com的日志并收到此警告:

2019-12-21 09:36:05.735 UTC [couchdb] handleRequest -> WARN 00e Retrying couchdb request in 1m4s. Attempt:10  Error:Get http://couchdb:5984/: dial tcp 172.30.0.4:5984: connect: connection refused

所以我将FABRIC_START_TIMEOUT增加到300秒以解决连接拒绝问题,但仍然出现error validating ReadSet错误。

如何解决此问题?

hyperledger-fabric hyperledger
1个回答
0
投票

我遇到了这个问题,并通过检出最新的稳定标记(v1.4.4)并再次运行脚本来解决了这个问题。

© www.soinside.com 2019 - 2024. All rights reserved.