gpt4 book ai didi

docker - Endorser客户端连接失败: connection refused Error

转载 作者:行者123 更新时间:2023-12-02 19:36:54 25 4
gpt4 key购买 nike

我想在 Aws 服务器上设置 Hyperledger 结构网络,该网络在我的本地系统中运行,但在 AWS 服务器上启动 Hyperleger 结构网络时出现以下错误。

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 172.28.0.9:7051: connect: connection refused"
peer0.org1 failed to join the channel, Retry after 3 seconds

版本:

 1. Hyperledger Version: 1.4.6 
2. Go version: go1.12.12
3. OS/Arch:linux/amd64
4. Chaincode: Base Image Version: 0.4.18

在第一个网络上,使用以下命令:

./byfn.sh up -a -s couchdb

请帮助我解决上述问题。

最佳答案

此问题与 TLS 相关,您需要在 peer-base.yamldocker-compose-cli.yaml 中禁用 TLS 并运行网络

CORE_PEER_TLS_ENABLED=false

ORDERER_GENERAL_TLS_ENABLED=false

并且您还需要将网络配置文件中的grpcs更改为grpc

并且在部署链代码时也不要使用对等方和排序者 TLS 证书文件

关于docker - Endorser客户端连接失败: connection refused Error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60911267/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com