Troubleshoot 503 errors

❗

Service Unavailable.

A 503 Service Unavailable on fortrabbit means Apache handed the request to PHP and got no valid answer back. The PHP process ran out of memory, crashed or was overloaded. It often comes together with 504 errors.

What the logs show

A PHP process that dies mid-request writes no PHP error. Look in the Apache error log in the logs instead:

CodeMeaning
AH01067 Failed to read FastCGI headerPHP returned no response header: the worker crashed, timed out or was killed
AH01075 Error dispatching requestThe connection to PHP broke off mid-request

Both point to a PHP process that never finished, not to a problem with Apache.

Common causes

CauseSignNext step
Out of memoryOOM kills in the PHP metricsOut of memory
All PHP processes busyHigh PHP response time, often also 504 errors504 errors, PHP processes
A crash in code or an extension503 on one page or action onlyTurn off plugins or recent code until it stops

A 503 also appears without any deployment: more traffic, a bot, a bigger database or an editor's action can push the app past its limits. See performance problems are often people problems.

Restart as a workaround

The restart button of the environment restarts Apache and PHP. That frees stuck processes, with a short downtime. The 503 returns when the cause stays.

Platform status

When none of the above fits, check the fortrabbit status page for incidents.

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗