Quick troubleshooting view
The proxy or front server does not get a valid response from the upstream application server.
- Backend arrested
- PHP-FPM unavailable
- Timeout
- Identify the frontal
- Test backend directly
- Read the logs proxy and application
- Restore the backend
- Correct the Address/port of the proxy
- Adapt timesouts only after understanding the cause
Contextual technician plan
Determine whether Nginx, Apache, CDN or proxy returns 502.
“Identify the frontal” should produce an observation that clearly confirms or rules out “Backend arrested”.
If the observation is normal, lower “Backend arrested” in the ranking and continue with the next distinct check.
If the observation is abnormal, keep the evidence and investigate “Backend arrested” first. Related action: Restore the backend.
If possible, check the upstream service.
“Test backend directly” should produce an observation that clearly confirms or rules out “PHP-FPM unavailable”.
If the observation is normal, lower “PHP-FPM unavailable” in the ranking and continue with the next distinct check.
If the observation is abnormal, keep the evidence and investigate “PHP-FPM unavailable” first. Related action: Correct the Address/port of the proxy.
Look for timeout, connection, or reset.
“Read the logs proxy and application” should produce an observation that clearly confirms or rules out “Timeout”.
If the observation is normal, lower “Timeout” in the ranking and continue with the next distinct check.
If the observation is abnormal, keep the evidence and investigate “Timeout” first. Related action: Adapt timesouts only after understanding the cause.
CPU, RAM, workers and connections can be saturated.
“Check resources” should produce an observation that clearly confirms or rules out “Reverse proxy misconfigured”.
If the observation is normal, lower “Reverse proxy misconfigured” in the ranking and continue with the next distinct check.
If the observation is abnormal, keep the evidence and investigate “Reverse proxy misconfigured” first.
Repeat the same validation test after the correction and confirm the original symptom is gone. Validate stability before closing the incident.
Before changing configuration, record the current value and a way back.
Scramble to the host if the backend or server resources are out of your control.
The proxy or front server does not get a valid response from the upstream application server.
Causes probables
- Backend arrested
- PHP-FPM unavailable
- Timeout
- Reverse proxy misconfigured
- Saturated application
Diagnostic étape par étape
- 1
Identify the frontal
Determine whether Nginx, Apache, CDN or proxy returns 502.
- 2
Test backend directly
If possible, check the upstream service.
- 3
Read the logs proxy and application
Look for timeout, connection, or reset.
- 4
Check resources
CPU, RAM, workers and connections can be saturated.
Solutions possibles
- Restore the backend
- Correct the Address/port of the proxy
- Adapt timesouts only after understanding the cause
Scramble to the host if the backend or server resources are out of your control.