Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4862 pages

Help for owners

My website shows 503 Service Unavailable

Short answer

A website 503 service unavailable error means the server is up but not ready to handle requests. MDN names maintenance and overload as the common causes, and notes that some software switches to a 503 page on its own during updates. On a business site, check for a stuck maintenance mode, a traffic spike or the host limiting your resources, then ask the host what its logs show.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • Visitors see 503 Service Unavailable instead of my home page.
  • The site went down right after a plugin or system update.
  • It happens during a sale or after an email campaign goes out.
  • A plain page says no server is available, then the site comes back.
  • The site works on and off through the day.

Why does this happen?

  1. The site is in maintenance

    MDN, Mozilla's web reference, says administrators may send all traffic to a 503 page during maintenance, and that this can also happen automatically during software updates. An update that stalls halfway can leave the site stuck there.

  2. The server is overloaded

    MDN lists an overloaded server as the other common cause. A burst of visitors, a bot crawling hard or one slow page that ties up workers can all push a small server past what it can answer.

  3. The hosting plan hit its limits

    Shared and entry-level plans cap CPU, memory or the number of processes per account. When the site goes over, the host can stop serving pages until usage drops, which shows up as a website 503 during a traffic spike.

  4. No healthy server behind the load balancer

    When a load balancer or proxy sits in front of the site, it answers with a 503 saying no server is available when every app server behind it has failed its health check.

What can I do about it today?

  1. Ask whether an update is runningCheck with your developer or agency whether anyone started an update, a migration or maintenance mode around the time it began.
  2. Look at the traffic graphOpen your analytics or the host's graphs and look for a spike in visits or bots when the 503s started.
  3. Ask your host for the factsAsk whether the account hit any resource limit, whether the server restarted and what the error logs show for that time.
  4. Tell customers where to goIf the outage runs long, post a short note on your social channels or send an email with another way to reach you or to order.

When should I bring someone in?

  • The 503 keeps coming back at busy times and the host only suggests a bigger plan.
  • The site is stuck in maintenance mode and nobody can log in to the admin.
  • You run several servers behind a load balancer and all of them report as unhealthy.

How do I handle it?

  1. Find which layer sends the 503I check whether the response comes from the CDN, the load balancer, the web server or the application, since each one points to a different fix.
  2. Read the logs for the exact windowI line up server, application and host logs with the times visitors saw the error, and find what ran out or stopped.
  3. Fix the cause, not only the symptomThat may mean clearing a stuck update, caching heavy pages, blocking abusive bots or tuning worker limits, tested on a copy first.
  4. Set up a proper maintenance pageFor planned work I set a clear 503 page with a Retry-After header, as MDN suggests, and make sure error pages are not cached.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

What does 503 service unavailable mean?

MDN defines it as the server not being ready to handle the request. It is meant for temporary conditions, and the server can send a Retry-After header saying when to try again.

Is my site hacked if it shows a 503?

A 503 usually points to maintenance, overload or hosting limits. Check those first, and look for other warning signs before assuming an attack.

Why does my website show 503 only some of the time?

Intermittent 503s often line up with traffic peaks, scheduled jobs or resource limits. Compare the times with your traffic graphs and the host's logs.

Should a 503 page be cached by my CDN?

MDN says a 503 marks a temporary issue and responses usually shouldn't be cached, because visitors could keep seeing the error page after the fix is live.

Sources

For your developer: the technical fixes

Related help

Free tool for this

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.