超级账本结构示例代码 - 第一个网络错误 - 找不到节点



我正在尝试在 Ubuntu EC2 实例上构建开发环境。 我已经加载了样本,生成了证书。 当我运行 ./byfn.sh 时,我得到以下详细输出。

+ peer channel join -b mychannel.block
+ res=1
+ set +x
2019-06-20 11:25:28.159 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2019-06-20 11:25:28.163 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host"
peer0.org1 failed to join the channel, Retry after 3 seconds
!!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel'  !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
ERROR !!!! Test failed

我已经删除了图像并重新下载。 已清除网络。 重新生成证书。 我认为这是一个时间问题,东西还没有出现。

尝试在peer-base.yaml文件的环境部分添加- GODEBUG=netdns=go

最新更新