Coolify 503 No Available Server Fix: Find the Fault
Fix the Coolify 503 no available server error safely by tracing Traefik, containers, ports, logs, and host resources, then verify real recovery.
Coolify’s “503 no available server” usually means the reverse proxy received the HTTPS request but found no healthy application container to handle it. First, capture deployment, container, proxy, and host evidence. Then fix the cause, such as a stopped container, failed health check, wrong internal port, stale proxy state, or exhausted host resources. Avoid blindly restarting or redeploying.
What the 503 means
A 503 usually means the request reached the proxy, commonly Traefik, but no healthy backend was available for the requested domain. The error does not prove that the application code is broken.
The problem can be in several places:
- Proxy: The route is stale, the domain does not match, or the proxy cannot read Docker’s current state.
- Container: The deployment stopped, keeps restarting, or did not pass its health check.
- Application port: The process uses another port or listens only on 127.0.0.1, instead of an address reachable from the container network.
- Host: Docker cannot keep the container running because the server is unavailable or memory or disk is exhausted.
A valid DNS record and certificate only show that the request reached an HTTPS endpoint. They do not show that the application container answered it. The key question is whether the container is stopped, running but unhealthy, healthy but unreachable on the configured port, or healthy while the proxy has stale or incorrect routing.
Do not redeploy first. A redeploy can replace the failed container and remove useful evidence. Record the current state, then make one reversible change at a time.
Before you start: capture evidence
Start with read-only checks. They show whether the failure is in deployment, the container, the proxy, or the host. Record the time, hostname, deployment name, and exact URL that returns the 503. Save screenshots or copy the relevant output.
In Coolify, inspect the affected application and server:
- Deployment status and the latest deployment log.
- Container status and container logs.
- Configured domain, selected server, HTTPS status, internal port, and health-check settings.
- Maintenance Mode. If it is enabled intentionally, disable it only when maintenance is complete.
- The selected server’s proxy logs. Coolify exposes them in the server’s proxy log view.
Check whether the container is running, healthy, unhealthy, or repeatedly restarting. A running container can still fail if its process has crashed, the health check fails, or the proxy cannot reach its listener.
From an SSH session on the Coolify server, replace the placeholder with the container name or ID shown by Coolify. These commands inspect state; they do not restart the container.
- Inspect the container state and recent output.
docker ps -a --no-trunc
docker inspect <container-name-or-id>
docker logs --timestamps --tail=200 <container-name-or-id>- Check host capacity.
docker system df
df -h
free -h
uptime- Check listening ports on the host.
ss -lntpPreserve the proxy logs too. An old Docker API client error can mean that the proxy cannot communicate with Docker. A host-local localhost test does not prove that the public route works. The proxy may reach the application through a Docker network instead.
Trace the request before changing anything
Use the first failed check to choose the smallest repair. This sequence separates DNS and IP-family problems from HTTPS, proxy, container, application-port, and host-resource problems.
| Observation | Likely layer | Next check |
|---|---|---|
| DNS points elsewhere or one address fails | DNS or IP family | Compare A and AAAA records and test each address |
| HTTPS reaches a certificate but returns 503 | Proxy-to-backend route | Read proxy logs and inspect container health |
| Container is stopped or restarting | Application or host | Read deployment and container logs |
| Container is healthy but the route fails | Port, domain, label, or proxy state | Compare Coolify settings with the process and proxy route |
| Health check is unhealthy | Health check or application response | Test the check inside the container |
| Proxy logs show Docker API errors | Proxy or Docker compatibility | Check current Coolify guidance for the installed version |
| Only IPv4 or IPv6 fails | DNS, firewall, or host routing | Test the failing address separately |
- From a client outside the Coolify server, compare the hostname’s A and AAAA records with the server’s addresses. An old AAAA record can send IPv6 users to another host, even when IPv4 reaches the intended server.
- Test both public HTTPS paths from the external client, not only from the Coolify host.
curl -4 -vk https://app.example.com/
curl -6 -vk https://app.example.com/A certificate and HTTP response prove that an HTTPS endpoint answered. They do not prove that the configured application container answered.
- In Coolify, compare the configured internal port with the port used by the process. A published host port and the internal application port are not necessarily the same.
- If the image includes the required tool, inspect the listener inside the container.
docker exec <container-name-or-id> sh -c 'ss -lntp || netstat -lntp'The process should use the configured application port and an address reachable from the container network. Listening only on 127.0.0.1 can make the process appear alive while blocking proxy access.
- If the container is healthy but the route still fails, check the exact domain spelling, selected server, and generated proxy route in Coolify. In a multi-server setup, traffic can reach a node without the deployment. Use the proxy log to see whether the hostname matched a route and whether a backend was available.
Apply the smallest reversible repair
Match the repair to the evidence. After each repair, verify the result before trying another one. This limits the risk of turning a narrow routing problem into a wider outage.
Wrong internal port or bind address
If the process uses another port, correct the application’s internal port in Coolify or configure the application to use the port already set there. If it binds only to 127.0.0.1, configure it to listen on the container network interface, commonly 0.0.0.0, using the framework’s supported setting. Record the old value and relevant logs before redeploying.
If the route works after this correction, keep the change and continue to verification. If it does not, return to the container health and proxy logs. Do not change several settings at once.
Failed health check
Read the health-check command, path, port, and response. They must match the application’s real endpoint and expected response. A minimal image may not include curl or wget, so a check that needs either tool can fail even when the application responds. Correct the image or health-check command when possible.
Temporarily disabling a health check can confirm the diagnosis, but it can also route traffic to a broken process. Use it only as a test, record the original setting, and restore a meaningful check afterward.
If disabling the check makes the route work, fix the check or its required tool. Redeploy if the image or deployment configuration changed. Confirm that the container becomes healthy before calling the repair complete. If the route still fails, re-enable the check and investigate the container, port, and proxy layers.
Stopped or crash-looping container
Read the deployment and container logs before starting or redeploying anything. A missing environment variable, failed migration, invalid command, or application exception belongs in the deployment configuration or application release.
If the logs show a transient host problem and resource checks show enough disk and memory, a controlled redeploy can be reasonable. Keep the previous image or release available for rollback. If the same failure returns, stop retrying and fix the reported application or host cause instead of creating more failed deployments.
Stale proxy configuration or Docker communication
If the container is healthy on the expected port and the domain is correct, inspect the proxy logs and generated route. A configuration refresh or application redeploy may regenerate the route. Restart only the affected proxy component when logs show stale state or a proxy-to-Docker communication problem.
Do not restart every Docker and Coolify service blindly. This can turn a routing problem into a broader outage and discard useful timing evidence.
If the proxy log contains an error such as client version ... is too old, check the current Coolify documentation for the installed version before changing proxy settings. Proxy configuration values are version-specific and should not be copied as universal settings.
Resource exhaustion or an unavailable host
If disk is full, memory is exhausted, Docker cannot create the container, or the server is unavailable, stop redeploying. Preserve the logs and identify safe cleanup targets through the normal server-maintenance process.
Removing images, volumes, or application data can cause data loss. Confirm what each item contains before deleting anything.
After capacity or host availability is restored, start or redeploy only the affected application and watch the deployment log. If the host remains unavailable, changing the application’s port or proxy route will not solve the 503.
Verify recovery from inside and outside
A green deployment indicator is not enough. Recovery requires three checks: the container stays healthy, the application answers on its internal network, and the public hostname reaches the intended backend.
- Check the container state and fresh logs. It should remain running, report the expected health state, and avoid repeated restarts.
- Test the application from inside the container or its Docker network. Use the configured internal port and a health path the application supports. The exact command depends on the image and available tools. Do not replace this with a host-local test.
- From an external client, test both address families over HTTPS.
curl -4 -i https://app.example.com/health
curl -6 -i https://app.example.com/health
curl -4 -i https://app.example.com/
curl -6 -i https://app.example.com/Use the application’s real health path. The result should contain the expected application response, not only a certificate exchange or generic proxy page. If there is no health endpoint, test a normal route and compare it with the intended application response.
- If DNS publishes both A and AAAA records, confirm that IPv4 and IPv6 reach the intended server and return the same expected application response. If one family still returns 503, compare its destination, firewall path, and proxy logs with the working family.
- While making one request, watch the new proxy log entry. It should match the intended hostname and reach an available backend. Review deployment and container logs for errors that appeared after the repair.
If the 503 returns, roll back the last configuration or deployment change instead of stacking more changes. Preserve the deployment log, container inspection, container logs, proxy logs, DNS results, and resource output for the next investigation.
Conclusion
Start with evidence, then repair only the failed layer. The 503 is fixed when the container stays healthy, uses the configured internal port, the proxy selects the intended server, and both public IP paths return the expected application response.
Frequently Asked Questions
Can I fix this Coolify 503 by restarting the proxy?
Only restart the proxy when its logs point to stale routing or a Docker API communication problem. A restart will not fix a stopped container, failed health check, wrong internal port, full disk, or broken application configuration. Save the logs first, restart only the affected component, and test the public route immediately afterward.
Why is my container running but Coolify still shows no available server?
A running container may still be unusable. Its process may use the wrong port, bind only to 127.0.0.1, fail the health check, or belong to another domain or server. Compare the configured port, health state, listener, domain, selected server, and proxy logs before redeploying.
Should I disable the health check to remove the 503?
Use that only as a temporary diagnostic. If disabling it makes the route work, correct the health-check path, port, expected response, or missing tool, then restore a meaningful check. Leaving it disabled can send traffic to an application that runs but cannot serve requests.