503 Service Unavailable. No server is available to handle this request.

I added a load balancer to my stack, but it’s showing a 503 Service Unavailable error. How can I solve this?

Are you on DigitalOcean? In that case, you will be using a HAProxy load balancer, which by default pings your backend servers on / every two seconds to determine if they’re up and healthy. If that route returns an error, the backend is deemed to be down and a 503 is shown.

Depending on your application, this route may in fact return an error (eg. an API). Please see our documentation on changing the HAProxy endpoint to change this. Hope this helps.

I am having the same issue with HAProxy on Digital Ocean. The link you provided in this post is broken, can you provide a fresh one?

You must be logged in to answer this question