Can't add third swarm manager or create overlay network - The swarm does not have a leader

I started 1st node by using command sudo docker swarm init --advertise-addr <my-ip> and then made it manager by docker swarm join-token manager. Then I added 2nd manager by using the generated token with the --advertise-addr.
But when I try to do any operations like create an overlay network on 1st node or add 3rd manager, It gives me following error:

Error response from daemon: rpc error: code = Unknown desc = The swarm does not have a leader. It’s possible that too few managers are online. Make sure more than half of the managers are online.

All 3 Ubuntu machines are in same network and can be pinged by each other.

Ubuntu version - 17.1 64 bit
Docker version 18.03.1-ce, build 9ee9f40
Docker-compose version 1.21.2, build a133471
Docker-machine version 0.14.0, build 89b8332

What am I missing?

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

Thanks

Hi, following is the result of command docker node ls when I run it on first node:

Error response from daemon: rpc error: code = Unknown desc = The swarm does not have a leader. It’s possible that too few managers are online. Make sure more than half of the managers are online.