Open sahilsehgalinc opened 6 years ago
Hi Sahil,
This happens when the peer0 on the other pc is not discoverable. You need to make sure the following prerequisites:
1) Both PCs are on Linux OS 2) Init docker swarm on PC1 and create a network 3) PC2 must join the network of PC1 as a "MANAGER" node
also, try to ping the PCs from each other to make sure they are reachable.
@wahabjawed Hi Abdul,
I got the same problem like @sahilsehgalinc when I try to use the public IP (39. . . and 47 . . ) of two cloud servers.
But before that, it works out ok when I just use the local network( like 172.0.0.3).
It seems that docker swarm does not support to build a docker network on the public network. When I use public IP as an advertised address to join the swarm as a manager, it always timeout. Then I use Rancher to help me create a swarm environment, which can allow me to build a docker network between local and public.
The three prerequisites mentioned above by @wahabjawed are all satisfied, I can see the docker network ls
shows my-net on both servers. but peer1 still can not access the peer0.
Are there any methods to build a network between two servers on the public network?
Hi Abdul, I'm trying to reproduce all your steps but I get stuck at the very beginning. When I try to create the swarm I launch the command swarm init on PC1 and paste the following on PC2: "docker swarm join --token SWMTKN-1-3r5lws2tz4t9od41bhb56c1gxor0e8y497hfk072r1tlt0kfcu-85grbotist5lhxcf0bszwb5v7 10.0.2.15:2377"
I receive the following from PC2: "Error response from daemon: rpc error: code = Unavailable desc = grpc: the connection is unavailable."
I have followed the instruction to open the swarm port using firewalld but, still, I receive the same error. Can you help me please?
Thanks in advance!
Nico.
Hi Abdul,
I tried following all steps slowly but am stuck at Step#7 CLI. The script is ending prematurely and giving error "Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: invalid mod_polic y for element [Policy] /Channel/Application/Writers: mod_policy not set !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== "
In my case both PC1 and PC2 are GCE instances(Cloud VM instances). Both have public and private IP addresses.
Do we need to set firewall permissions for some ports for this to work? If yes what are those ports?
Thanks, Nihal
Hi Abdul, I tried your steps, but while I try executing the step :
It shows the error message as follows after execution, though the process doesn’t fail and shows following error messages continuously:
2018–02–23 14:03:05.042 UTC [gossip/discovery] func1 -> WARN 1d4 Could not connect to {peer0.org1.example.com:7051 [] [] peer0.org1.example.com:7051} : context deadline exceeded
If ignoring this Warning exception, If I try to move to further step i.e.
2018–02–23 14:04:22.162 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = “transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host”; Reconnecting to {orderer.example.com:7050}
Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable
Could you please help me further on this? I’d greatly appreciate.