Docker Community Forums

Share and learn in the Docker community.

Docker Swarm : Failed to find a load balance…

swarm
docker

(Nico2am) #1

Hi,

I’ve 4 debian with docker connected between them.

On Docker1 : sudo docker swarm init --advertise-addr enp0s8
On Docker 2, 3, 4 : sudo docker swarm join --token SWMTKN-1-64a4wi0tf3v4wrvz7rwknaye35kzq9oy0njxgkrpeglpjb9 s18-1pu4erf1l18mczv2nryuct6hz 10.50.2.11:2377

I do the official tutorial (get-started/part4/) and when I launch : sudo docker stack deploy -c docker-compose.yml getstartedlab it works only docker 1 and 2 work.
For docker 3 and 4, i’ve this error : “Failed to find a load balance…”

Screenshot terminal: https://imagebin.ca/v/3pEnAX7sRwq1
Screenshot visualizer : https://imagebin.ca/v/3pEpG6UpsiUt

If someone can help me.
Thank you.
Nicolas


(Eldeberde) #2

Hi, can you post the result of the command
docker node ls


(Nico2am) #3

All my worker are active

ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
tvjq7v7frxg0m6ms1wuqukfc1 * docker1 Ready Active Leader
3za83bc2upntvgcz4yhqsnwj3 docker2 Ready Active
uj3g07ehlh68l1jxcbomsn4yp docker3 Ready Active
dojmphvyf2vsxuhmthf8q10b5 docker4 Ready Active


(Eldeberde) #4

Hi, are all nodes running in the same version??

I found a similar issue when upgrading from 17.09 to 17.12

Regards


(Nico2am) #5

Indeed, the versions were different. Docker 1 and 2 are in 17.09 and Docker 3 and 4 are in 17.12.
I updated the versions on docker 1 and 2 and it works now.
Thank you very much for your help.