How to fix ACME error 400 connection refused

I think the issue I had here was, I had a matrix server running on one of my other manager nodes ( 2 manager nodes in swarm). Once I removed the other node from the docker swarm, now I am able to run this configuration (somewhat with few other non related connection timed out issues) via the dashboard API. If there are other services occupying the same ports in swarm, then docker swarm cannot create service without throwing errors like above.