gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 23:36:32 25 4
gpt4 key购买 nike

我正在尝试运行此处提供的 Fabric 示例:
https://github.com/hyperledger/fabric-samples/tree/release-1.2/first-network

我遵循了 Fabric 文档的所有说明:https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html
,但遇到错误“FAILED to execute End-2-End Scenario”。以下是我输入 ./byfn.sh up 后的输出在终端。

我什至没有在 google 和 stackoverflow 上发现任何类似的问题

./byfn.sh up
Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] Y
proceeding ...
LOCAL_VERSION=1.2.0
DOCKER_IMAGE_VERSION=1.2.0
Starting peer1.org1.example.com ... done
Starting orderer.example.com ... done
Starting peer0.org2.example.com ... done
Starting peer1.org2.example.com ... done
Starting peer0.org1.example.com ... done
Starting cli ... done

____ _____ _ ____ _____
/ ___| |_ _| / \ | _ \ |_ _|
\___ \ | | / _ \ | |_) | | |
___) | | | / ___ \ | _ < | |
|____/ |_| /_/ \_\ |_| \_\ |_|

Build your first network (BYFN) end-to-end test

Channel name : mychannel
+ 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
Creating channel...
+ res=1
+ set +x
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ERROR !!!! Test failed

问题的根源是什么,我应该如何解决?

最佳答案

Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded

此错误表明对等方无法解析/连接到 orderer.example.com:7050 。尝试通过以下方式检查所有容器
docker ps -a

这将显示所有正在运行的容器和已退出的容器,您可以通过以下方式检查容器日志
docker logs your_container_name

如果您之前的容器正在同一网络中运行或停止并且您忘记删除它,那么您也可能会发生这种情况,因此您可以尝试关闭整个网络,然后重新启动。
./byfn.sh down
./byfn.sh up

关于hyperledger-fabric - 如何修复 Hyperledger Fabric 中的 "FAILED to execute End-2-End Scenario"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52548185/

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