docker-consul icon indicating copy to clipboard operation
docker-consul copied to clipboard

joining: i/o timeout

Open ploef opened this issue 10 years ago • 2 comments

Hi,

Using this image I stumble upon a problem joining an agent to a single server cluster. The errormessage is:

dial tcp 192.168.1.10:8301: i/o timeout (192.168.1.10 is private IP of cluster server and accessible from host)

I hope anybody can point me in the right direction. Best regards, Peter

the cluster server configuration is:

PRIVATE_IP=192.168.1.10 BRIDGE_IP=172.17.42.1 EXPECT=1

docker run -d --name consul -h $HOSTNAME
-p $PRIVATE_IP:8300:8300
-p $PRIVATE_IP:8301:8301
-p $PRIVATE_IP:8301:8301/udp
-p $PRIVATE_IP:8302:8302
-p $PRIVATE_IP:8302:8302/udp
-p $PRIVATE_IP:8400:8400
-p $PRIVATE_IP:8500:8500
-p $BRIDGE_IP:53:53/udp
-v "$PWD/data":/data
progrium/consul -server -advertise $PRIVATE_IP -bootstrap-expect $EXPECT

and the client configuration:

PRIVATE_IP=192.168.1.11 BRIDGE_IP=172.17.42.1

docker run -d --name consul -h $HOSTNAME
-p $PRIVATE_IP:8300:8300
-p $PRIVATE_IP:8301:8301
-p $PRIVATE_IP:8301:8301/udp
-p $PRIVATE_IP:8302:8302
-p $PRIVATE_IP:8302:8302/udp
-p $PRIVATE_IP:8400:8400
-p $PRIVATE_IP:8500:8500
-p $BRIDGE_IP:53:53/udp
-v "$PWD/data":/data
progrium/consul -advertise $PRIVATE_IP -join 192.168.1.10

ploef avatar May 17 '15 18:05 ploef

Just some extra info:

  • private IP addresses are using eth1, eth0 is public
  • iptables is off on both sides
  • both sides can ping each other with private ip adresses

ploef avatar May 17 '15 19:05 ploef

Not sure. Try running in net=host mode. If that doesn't work, I'd take it upstream.

progrium avatar Jun 30 '15 17:06 progrium