Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

joining: i/o timeout #81

Open
ploef opened this issue May 17, 2015 · 2 comments
Open

joining: i/o timeout #81

ploef opened this issue May 17, 2015 · 2 comments

Comments

@ploef
Copy link

ploef commented May 17, 2015

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
Copy link
Author

ploef commented May 17, 2015

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

@progrium
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants