hyperledger fabric のサンプルプログラム (最初のネットワーク) を起動する過程で、
error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: context deadline exceeded
peer1.org1 failed to join the channel, Retry after 3 seconds
以下のスクリーンショット:
解決策 (1):
まず、ネットワークを停止します。
$ ./byfn.sh ダウン
次に、次のように入力します。
$ sudo vim /etc/resolv.conf
2. ./byfn.sh up を再度実行してネットワークを起動します
$ cd ~/hyperledger-fabric/fabric-samples/first-network/ # 実行する最初のネットワークを入力
$ ./byfn.sh アップ
ネットワークが正常に起動したことがわかります!! !
ソリューション (2)
1. docker-compose-cli.yaml の cli コンテナーの下に環境変数を追加します。
GODEBUG=netdns=行く
2. base/peer-base.yaml の peer-base コンテナーの下に環境変数を追加します。
GODEBUG=netdns=行く
3. 開始できるかどうかを再試行する. このスキームを自分で試したことはありません.