首页 > 解决方案 > 从 BYFN 上的 org1 删除 peer1 时出错:从 BYFN 更改的文件是否比第一个网络文件夹多?

问题描述

尝试从 BYFN 中删除 org1 peer1 时出现以下错误。一些帮助?

也许错过了更改 configtx.yaml?我应该在哪里改变?从 BYFN 更改的文件是否比第一个网络文件夹多?

(1) 在 Crypto-config.yaml 中,将 Template Count 值更改为 1。

(2) 在 docker-compose-cli.yaml 中,我删除了对 peer1.org1.example.com 的引用,与第一个网络文件夹中的“.sh”脚本中的相同。

Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer1.org1.example.com on 127.0.0.11:53: no such host"
peer1.org1 failed to join the channel, Retry after 3 seconds
+ peer channel join -b mychannel.block
+ res=1
+ set +x
Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer1.org1.example.com on 127.0.0.11:53: no such host"
!!!!!!!!!!!!!!! After 10 attempts, peer1.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ERROR !!!! Test failed

标签: dockerdocker-composehyperledger-fabricblockchainhyperledger

解决方案


该脚本正在尝试从不存在的 peer1.org1 加入频道,您需要在脚本文件夹中编辑 script.sh。寻找功能加入频道。


推荐阅读