docker / for-linux

Docker Engine for Linux
https://docs.docker.com/engine/installation/
756 stars 86 forks source link

Docker swarm join is stuck in Pending #1457

Closed Mimikoo closed 1 year ago

Mimikoo commented 1 year ago

Hello.

I've installed 3 servers on Debian Bullseye updated. The docker version is the same from https://download.docker.com/linux/debian version Server Version: 23.0.4. One of the server is manager. Other two a joined to the swarm. When other two servers are joined I get the error:

Error response from daemon: Timeout was reached before node joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.

And respectively docker info says: Swarm: pending Although, the manager says:

docker node ls
ID                            HOSTNAME   STATUS    AVAILABILITY   MANAGER STATUS   ENGINE VERSION
yfdvvt0bu1dtm3it8b5nct8fd *   srv4        Ready     Active         Leader           23.0.4
xh15j0gnnl0wyty3eqbwc1047     srv5        Ready     Active                          23.0.4
4j09hpsr1ucjrnhxuf5cagj8d     srv6        Ready     Active                          23.0.4

The worker nodes never change theirs status in docker info and a service deployed to all nodes is deployed only to the manager server. For other two servers the services are assigned, but never run. How to find where is the roblem?

Mimikoo commented 1 year ago

The problem is solved. The issue was due MTU 9000 set on interfaces on servers, while interconnecting switches did not have jumbo frames enabled. Set the MTU to default 1500 and all is working