# No Available Server Error: What the Traefik 503 Means and How to Fix It

> No available server is Traefik's 503: it found your route but no healthy container behind it. Seven causes, the command that confirms each, and the fix.

**"No available server"** is the 503 error page of **Traefik**, the reverse proxy in front of Coolify, Dokploy and many Docker Compose setups. It means Traefik matched your domain to a route but found no healthy container to send the request to. The fix is almost always in the container: its health, its port, its network or its labels.

You open your app's domain and get a white page with three words on it. No logo, no stack trace, nothing in your app's logs. That silence is the clue: your app never saw the request. Traefik stopped it one step earlier.

This guide shows where the message comes from, the seven causes in the order we would check them, the one command that confirms each, and how to keep it from coming back. If you are comparing self-hosted panels while you fix it, our [**Coolify vs Dokploy**](/coolify-vs-dokploy/) post explains how each one runs Traefik.

## TL;DR (Too Long, Didn't Read?)

Short on time? Here is the whole guide in a few lines:

- **"No available server" = Traefik, HTTP 503.** A route matched, but its service has zero servers in it.
- **Start with `docker ps`.** A container that is stopped, restarting or marked `(unhealthy)` is the first thing to rule out.
- **Unhealthy containers are left out on purpose.** Traefik's Docker provider skips them unless you turn on `allowEmptyServices`.
- **Port and network are next.** Traefik uses the lowest exposed port unless you set `loadbalancer.server.port`, and it must share a Docker network with the container.
- **After a Docker Engine update, check Traefik's own log.** "client version 1.24 is too old" means Traefik needs v3.6.1 or v2.11.31.
- **A 404 "page not found" is a different problem.** That one means no route matched your domain at all.
- **Most cases take minutes to fix once you read `docker ps` and the proxy log.**

## What "No Available Server" Actually Tells You

**Traefik returns "no available server" when the request found its route but the route's service is empty.** Think of a restaurant host who finds your reservation, walks you to the section, and discovers every table in it is closed. The booking worked. There is just nowhere to seat you.

That is why this error is useful once you read it correctly. It rules out DNS, SSL and the domain rule in most cases, because the request already reached the right route.

![How Traefik decides between 404, no available server (503) and 502](/_landing/blog/no-available-server-image-1.png)

### Which proxy error are you looking at?

The words on the page tell you how far the request got. Use this table before you change anything.

| What you see | Status | Where the request stopped | First thing to check |
|---|---|---|---|
| **404 page not found** | 404 | No router matched the domain | The `Host(...)` rule, the domain in your panel, www vs non-www |
| **no available server** | 503 | Router matched, service has no servers | `docker ps`: is the container running and healthy? |
| **Bad Gateway** | 502 | Traefik picked a server, the connection failed | The port, and whether the app listens on `0.0.0.0` |
| **Gateway Timeout** | 504 | The server took too long to answer | Slow app start, long requests, timeouts |
| Your app's own error page | 500 etc. | The app answered with an error | The app log (see our [**HTTP 500 guide**](/what-is-http-500-internal-server-error/)) |

If you only remember one line: **503 "no available server" is about the container list, 502 is about the connection.**

## What Causes "No Available Server"? (7 Causes, in the Order to Check Them)

Traefik builds its list of servers from the Docker containers it can see. Each cause below removes your container from that list.

![The seven causes of the no available server error and the command that confirms each](/_landing/blog/no-available-server-image-2.png)

### 1. The container is stopped, crashing or restarting

A container that exited, or one stuck in a restart loop, has nothing for Traefik to route to. It often follows a bad environment variable, a missing database or the server running out of memory.

Confirm it with the table view Coolify's docs recommend:

```bash
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
```

A missing container, or a status like `Restarting (1) 5 seconds ago`, points here. Run `docker logs <container> --tail 100` and fix what the app reports.

### 2. The health check is failing (or still starting)

If your image or Compose file defines a `healthcheck`, Docker marks the container `(health: starting)`, `(healthy)` or `(unhealthy)`. Traefik's Docker provider leaves containers that are not healthy out of the route. Its `allowEmptyServices` option exists only to change that default, so by default an unhealthy app gets you a 503.

Read the health log directly:

```bash
docker inspect --format '{{json .State.Health}}' <container>
```

A frequent failure is boring: the health check calls `curl` or `wget`, and the slim image doesn't include either. Coolify's [**no available server page**](https://coolify.io/docs/troubleshoot/applications/no-available-server) lists the same fixes: install `curl` or `wget` in the image, check the port and path the check calls, or turn the check off for a moment to prove it is the cause. Test the check by hand:

```bash
docker exec -it <container> curl -f http://localhost:3000/health
```

### 3. Traefik is using the wrong port

Traefik's [**Docker provider docs**](https://doc.traefik.io/traefik/reference/install-configuration/providers/docker/) say that when a container exposes several ports, "Traefik uses the lowest port". An image that exposes 3000 for the app and 9229 for a debugger works by luck. One that exposes 80 for a sidecar and 8080 for the app does not.

Set the port explicitly with a label:

```yaml
labels:
  - "traefik.http.services.myapp.loadbalancer.server.port=3000"
```

In Coolify, the same value lives in the application's **Ports Exposes** field. If a container exposes no port at all, you must set this label, or Traefik has nothing to send traffic to.

### 4. The container and Traefik share no network

Traefik connects to containers over Docker networks. If your app sits only on its Compose project's default network and Traefik sits on another, the route exists but the server is unreachable.

List both sides:

```bash
docker inspect --format '{{json .NetworkSettings.Networks}}' <container>
docker inspect --format '{{json .NetworkSettings.Networks}}' <traefik-container>
```

Put both on one shared network. When your container is attached to more than one network, add the `traefik.docker.network` label so Traefik knows which one to use. The provider-wide `network` option sets the same default for every container.

### 5. Traefik was told to ignore the container

With `exposedByDefault` set to `false`, Traefik's docs say containers "that do not have a `traefik.enable=true` label are ignored". Panels often switch this off, so a container you start by hand, or a service you add to a Compose file later, is invisible until it gets the label.

```bash
docker inspect --format '{{json .Config.Labels}}' <container>
```

Look for `traefik.enable=true` and a router rule with your domain. A `constraints` filter in Traefik's config can hide containers the same way.

### 6. Traefik can't talk to Docker after an update

This can start right after a Docker Engine upgrade. Older Traefik builds ask Docker for an API version newer engines refuse, so Traefik sees no containers at all and every site behind it returns 503.

Check the proxy log (in Coolify the container is `coolify-proxy`):

```bash
docker logs coolify-proxy --tail 50
docker version --format '{{.Server.APIVersion}}'
```

Coolify's page quotes the log line `client version 1.24 is too old. Minimum supported API version is 1.44` and names the fix: Traefik **v3.6.1** (or **v2.11.31** on v2), which agree on the API version automatically. In Coolify you change the image under **Servers → Proxy → Configuration**, then click **Restart Proxy**, on every server.

### 7. The app listens on localhost inside the container

An app that binds to `127.0.0.1` inside its container only answers itself. Traefik reaches the container from outside, over the Docker network. Depending on your health check, you see either 503 (the check fails too) or 502 (the check passes, the proxy's connection is refused).

Set the app to listen on `0.0.0.0`. For Node.js that is usually `HOST=0.0.0.0`; for most frameworks it is a flag on the start command.

## Step-by-Step: How to Fix "No Available Server"

Work through these in order. Each step either finds the cause or rules it out in under a minute.

### Step 1: Confirm it is Traefik's 503

Run `curl -sI https://your-domain.com` and look for `HTTP/2 503` (or `HTTP/1.1 503`). If you get 404, go to your router rule and domain settings instead. If you get 502, skip to the port and `0.0.0.0` checks.

### Step 2: Read the container status

Run the `docker ps` table above. Stopped or restarting: read `docker logs`. Unhealthy or starting: go to Step 3. Running and healthy: go to Step 4.

### Step 3: Fix or relax the health check

Run `docker inspect` on `.State.Health` and read the last few results. Fix the command, the port or the missing `curl`, then redeploy. If the app simply needs longer to boot, raise `start_period` in the health check rather than removing it.

### Step 4: Check labels, port and network

Read `.Config.Labels` and `.NetworkSettings.Networks`. You need `traefik.enable=true` (when exposure is off by default), the right `loadbalancer.server.port`, and one network shared with Traefik.

### Step 5: Read the proxy's own log

Run `docker logs <traefik-container> --tail 50`. API version errors, label parse errors and certificate errors all show up here, and none of them show in your app's log.

### Step 6: Restart the proxy last

Restarting Traefik clears nothing if a label or health check is wrong, so treat it as the final step, not the first. After a Traefik version change, it is required.

## Quick Checklist

| Check | Command or place | Good result |
|---|---|---|
| Status code | `curl -sI https://your-domain.com` | Confirms Traefik's 503 (for any other code, see the error table) |
| Container running | `docker ps` | `Up …`, not `Restarting` |
| Health | `docker inspect … .State.Health` | `"Status":"healthy"` |
| Labels | `docker inspect … .Config.Labels` | `traefik.enable=true`, your `Host()` rule |
| Port | `loadbalancer.server.port` label | The port your app listens on |
| Network | `docker inspect … .NetworkSettings.Networks` | One network shared with Traefik |
| Proxy log | `docker logs <traefik-container>` | No Docker API or label errors |

## How to Keep "No Available Server" From Coming Back

### Tip 1: Always set the port label

Don't rely on "lowest exposed port". One label removes cause 3 for good, even when a new image version exposes an extra port.

### Tip 2: Give slow apps a start period

Java, Rails and AI apps can take a minute to boot. A `start_period` in the health check stops Docker from marking them unhealthy while they warm up.

### Tip 3: Ship the health check's tools in the image

If the check uses `curl`, install `curl`. Or write the check in the app's own language, so it can't break when the base image changes.

### Tip 4: Pin and update Traefik on purpose

Update Traefik before or with Docker Engine, not months after. When cause 6 hits, every site behind that Traefik returns 503 at once.

### Tip 5: Use rolling or zero-downtime deploys

A deploy that stops the old container before the new one is healthy creates a short 503 every time. Coolify links rolling updates from its error page for this reason.

### Tip 6: Get told when a container stops

Without monitoring, the first person to see the error is often a visitor. An alert on container state tells you first.

## How the Same Failure Looks on xCloud

xCloud's own proxy is nginx, not Traefik, so xCloud itself never shows "no available server"; a stopped container shows 502 Bad Gateway instead. On an xCloud **NGINX** server, nginx sends each Docker site's traffic straight to the container's port on `127.0.0.1`; there are no labels to forget and no proxy network to join. When you [**deploy your Docker Compose app**](/docs/how-to-deploy-custom-docker-with-xcloud/), xCloud reads the port from your Compose file (and asks you to pick one if there are several), then writes the nginx config for it.

That moves the failure, it does not remove it. If your container stops, nginx can't connect and visitors see **502 Bad Gateway** instead. Here is what xCloud adds around that moment:

- **Container alerts.** Turn on [**Docker Container Down alerts**](/docs/docker-container-down-alerts-in-xcloud/) and xCloud tells you by email, the dashboard, Slack, Telegram, Discord or a webhook when a container of a live site stops, then again when it recovers. The email subject reads **"A Docker container on your-site is not running"** and names the affected service, and the recovery email reads **"Docker container on your-site is running again"**.
- **Logs in the dashboard.** The site's logs include a **Docker Container Log** for each service, so you can read the crash without SSH ([**view logs and events**](/docs/view-logs-and-events-of-your-server-and-site/)).
- **Deploys that wait for health.** For Docker sites you deploy from Git, [**Release mode**](/docs/zero-downtime-deploys-for-docker-container-sites/) starts the new container next to the live one and sends it traffic only after it answers with a status below 500. If the check fails, the old container keeps serving.
- **Docker next to WordPress.** Docker runs on any xCloud NGINX server, beside WordPress, PHP and Laravel sites ([**enable Docker on an NGINX server**](/docs/enable-docker-on-an-nginx-server-in-xcloud/)).

### Honest limits

- **xCloud can't fix a crashing app.** A bad environment variable or a missing database still stops the container; you still read the log and fix it.
- **Your own Traefik or Caddy can't take ports 80 and 443.** xCloud's nginx already uses them. If your Compose file bundles a reverse proxy, remove that service and publish your app's port instead.
- **OpenLiteSpeed servers can't run Docker.** Use an NGINX server for container apps.
- **Release mode has rules.** It works with one web service per site and has other limits on Compose files, listed in its doc.

👉 Compare server sizes and limits on the [**Docker hosting**](/docker-hosting/) page, or see how the two approaches differ in [**xCloud vs Coolify**](/xcloud-vs-coolify/). Still choosing a panel? Our [**Coolify alternatives**](/coolify-alternatives/) and [**best Docker hosting providers**](/best-docker-hosting-providers/) roundups cover the options.

## Fix "No Available Server" Today and Stop It at the Source

"No available server" looks vague, but it is precise: Traefik found your route and had no healthy container to hand it to. Read `docker ps`, the health log and the proxy log, in that order, and you will find the cause in most cases within minutes.

This week, add an explicit port label to every service behind Traefik, give slow apps a start period, and check that your Traefik version matches your Docker Engine. If you would rather not run the proxy layer at all, a panel that writes the proxy config for you removes four of the seven causes on this list: the wrong port (3), the missing shared network (4), the missing labels (5) and the Traefik/Docker API mismatch (6).

If you have found this blog helpful, feel free to [**subscribe to our blogs**](https://xcloud.host/blog/) for valuable tutorials, guides, knowledge, and tips on web hosting and server management. You can also join our [**Facebook community**](https://www.facebook.com/groups/xcloud.community) to share insights and engage in discussions.

## Frequently Asked Questions

### What does "no available server" mean?

It is the plain-text 503 page Traefik shows when a request matches one of its routes but the service behind that route has no server it can send the request to. The container is stopped, unhealthy, on a network Traefik can't reach, or Traefik never learned its port.

### Is "no available server" a Coolify error or a Traefik error?

It comes from Traefik, the reverse proxy Coolify and Dokploy run in front of your apps. Coolify's own troubleshooting page describes it as Traefik not finding any healthy containers to route traffic to, with HTTP status 503.

### Why do I get "no available server" right after a deploy?

Usually the new container is still starting or has failed its health check. Traefik leaves containers that are not healthy out of the route, so the domain returns 503 until the check passes. Run docker ps and look for (health: starting) or (unhealthy).

### Why did "no available server" start after a Docker update?

Older Traefik releases speak a Docker API version that newer Docker Engine releases refuse. Traefik then can't read your containers at all. Coolify's docs show the log line "client version 1.24 is too old" and point to Traefik v3.6.1 or v2.11.31, which agree on the version automatically.

### Does xCloud show "no available server"?

Not from xCloud itself. xCloud's own proxy is nginx, not Traefik, so a stopped container shows 502 Bad Gateway instead, and xCloud can alert you by email or chat when it happens. You would only see it if your own app runs its own Traefik behind xCloud's nginx.
