[英]Hyperledger fabric - Cant connect peer to channel - endorser client failed to connect - connection refused
我創建了一個 testchannel 並嘗試使用下面的代碼加入它。
export CORE_PEER_LOCALMSPID="Org1MSP"
export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt
export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
export CORE_PEER_ADDRESS=peer1.org1.example.com:7051
peer channel join -b testchannel.block
但是出現如下連接錯誤。
Error: error getting endorser client for channel: endorser client failed to connect to peer1.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.18.0.3:7051: connect: connection refused"
我嘗試了其他類似帖子中提到的解決方案,例如更改 CORE_PEER_TLS_ENABLED 但它仍然發生。 如何解決? 謝謝!
您將需要檢查對等方的 docker 日志
docker logs <container id>
提供的信息不足,無法幫助您。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.