我正在尝试在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
我已删除图像并重新下载。清除网络。重新生成证书。我认为这是一个计时问题,尚未出现。
答案 0 :(得分:4)
尝试在peer-base.yaml文件的环境部分添加- GODEBUG=netdns=go
。