Closed chrissound closed 4 years ago
I see the same issue.
@eishzar could you point out any similarity in your config? What OS are you using? I'm on Linux.
I also see the same issue. I am running a nginx container binding to port 80 . Testing the connection I get the following
time_total: 0.399968
time_total: 5.223892
This is a single node swarm running nginx using the default overlay network. Running on OS - Ubuntu 16.04.2 LTS
Docker Server Version: 18.02.0-ce
@chrissound I am also using a single swarm node Ubuntu server with overlay network like @davidk1977 . The docker version is 18.03.0-ce. The swarm stack has multiple services in the same overlay network and every second request regardless of which service is accessed fails with "no route to host" error.
Good to know. I was also using a single node.
I am having this same issue in Docker for Windows with swarm.
Every other request from Windows is failing with no response and I see the following errors in my docker logs:
[12:23:24.742][VpnKit ][Error ] vpnkit.exe: Hvsock.read: An established connection was aborted by the software in your host machine. [12:23:40.415][VpnKit ][Error ] vpnkit.exe: Hvsock.read: An established connection was aborted by the software in your host machine.
Within the docker swarm if I try to curl against the box i get a response every other time and when I do not get a response I get: curl: (7) Failed to connect to remotehost port 80: No route to host
I rolled back to 17.12 and no longer have this issue.
I will try to come up with a minimum viable reproduction case -- looks like the criteria to cause this bug are:
I think there is something else here but i have to try a couple more things. When this occurs, dns resolution in the container does not point to the container directly, it points to a VIP which correctly routes every other request to the destination container. If you hit the container directly by its IP (and not the VIP), 100% of requests complete successfully.
Hey ya'll, this is the wrong repo for SwarmKit. This is for Swarm "classic" that was replaced with Swarm Mode in 2016. Docker engine issues should all be added to moby/moby. Also if it's a VPNKit error on Docker for Windows, then it should go in the for-win repo.
I think I found a corresponding existing issue that is already in the right place: https://github.com/moby/moby/issues/35671
I'm not too sure how to investigate this issue, essentially I deployed a set of services to a swarm using a command like:
docker-compose -f docker-compose-swarm.yml config | docker stack deploy -c testing1
.This is a single node cluster (on a single machine).
Why is every second request failing to route?
And on a second attempt:
Within the
docker-compose-swarm.yml
I have a network used and defined as:tcpdump on first request (successful):
tcpdump on second request (failure):