current position:Home>When deploying fabric on multiple machines, the order node has opened port 7050. But peer0org1 cannot connect to the order node.

When deploying fabric on multiple machines, the order node has opened port 7050. But peer0org1 cannot connect to the order node.

2022-02-03 20:54:24 Q & A of Denglian community

First server hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4::1         localhost localhost.localdomain localhost6 localhost6.localdomain610.20.152.181  localhost localhost.localdomain localhost6 localhost6.localdomain610.20.152.181 orderer.example.com10.20.152.182 peer0.org1.example.com10.20.152.180 peer0.org2.example.com127.0.0.1 orderer.example.com

And open the port

[[email protected] fabric]# docker ps -aCONTAINER ID        IMAGE                        COMMAND             CREATED             STATUS                  PORTS                    NAMES3c081a809e04        hyperledger/fabric-orderer   "orderer"           About an hour ago   Up About an hour        0.0.0.0:7050->7050/tcp   orderer.example.com8ed3777821c0        hello-world                  "/hello"            3 days ago          Exited (0) 3 days ago                            determined_kirch

The firewall is also off

[[email protected] fabric]# systemctl status firewalld● firewalld.service - firewalld - dynamic firewall daemon   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)   Active: inactive (dead)     Docs: man:firewalld(1)

But the second one 182 The server firewall is also turned off ,hosts Set as follows :

ping obtain 181

[[email protected] ~]# ping 10.20.152.181PING 10.20.152.181 (10.20.152.181) 56(84) bytes of data.64 bytes from 10.20.152.181: icmp_seq=1 ttl=64 time=0.156 ms64 bytes from 10.20.152.181: icmp_seq=2 ttl=64 time=0.153 ms64 bytes from 10.20.152.181: icmp_seq=3 ttl=64 time=0.213 ms64 bytes from 10.20.152.181: icmp_seq=4 ttl=64 time=0.144 ms^Z[2]+  Stopped                 ping 10.20.152.181

But I can't connect 181 Of , How to solve it , thank you .

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4::1         localhost localhost.localdomain localhost6 localhost6.localdomain610.20.152.182  localhost localhost.localdomain localhost6 localhost6.localdomain610.20.152.181 orderer.example.com10.20.152.182 peer0.org1.example.com10.20.152.180 peer0.org2.example.com127.0.0.1 peer0.org1.example.com
[email protected]:/usr/local/gopath/src/github.com/hyperledger/fabric/peer# ORDERER_CA=/usr/local/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/[email protected]:/usr/local/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/mychannel.tx --tls --cafile $ORDERER_CA2020-03-17 13:36:26.321 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable2020-03-17 13:36:26.331 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variableError: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded



Take the answer 1:

You can use  netstat -anp Check the usage .

And then use telnet <host> <port> Check the connectivity of the port . 

  Check it out like this .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032054221335.html

Random recommended