如何解决“失败以执行End-2-End方案"?在Hyperledger Fabric中? [英] How to fix "FAILED to execute End-2-End Scenario" in Hyperledger Fabric?

查看:700
本文介绍了如何解决“失败以执行End-2-End方案"?在Hyperledger Fabric中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying running up Fabric samples that is provided here: 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 ,但遇到错误无法执行End-2-End方案".以下是我在终端中输入./byfn.sh up后的输出.

I followed all the instructions of Fabric docs from: https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html , but encountered an error "FAILED to execute End-2-End Scenario". Following is the output after I entered ./byfn.sh up in terminal.

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

I didn't even find any similar problems on google and 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

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

What's the root of the problem and how should I fixed?

推荐答案

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.尝试通过以下方式检查所有容器:

This error indicates that peer is not able to resolve / connect to orderer.example.com:7050 . Try checking all containers by

docker ps -a

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

this will show you all the running containers and the containers which have exited you can check container logs by

docker logs your_container_name

如果以前的容器在同一网络中运行或停止并且忘记了删除它,也可能发生这种情况,因此可以尝试关闭整个网络,然后重新启动.

it can also happen if your previous container are running or stopped in same network and you have forgotten to remove it so you can try to bring down whole network and then start again.

./byfn.sh down
./byfn.sh up

这篇关于如何解决“失败以执行End-2-End方案"?在Hyperledger Fabric中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆