Interactive Troubleshooting Guide Hub - Curated Solutions
The server responded with an error or delivery failure status code (HTTP 500, 502, 503, or 504). This signifies application crashes, worker process starvation, database connection limits, or upstream reverse proxy timeouts.
Perform these recommendations step-by-step.
Web application framework exceptions and backend fatal errors are logged continuously. Tail the live error log to pinpoint the exact file, function, and line number causing the crash.
tail -f /var/log/web-server/error.logEnsure files and directories possess correct permissions for web server users (typically directories 755, files 644). Restrictive or overly permissive permissions trigger instant HTTP 403 or 500 errors.
find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;Process managers can freeze when server memory or worker limits are reached, leaving reverse proxies unable to pass requests to backend workers and causing HTTP 502 Bad Gateway errors.
sudo systemctl status web-worker || systemctl status databaseRun a non-cached curl request following redirects to detect circular rewrite rules in routing or proxy configuration blocks that cause browser redirect loop crashes.
curl -IL https://iastate.eduHTTP 500 is a generic application crash. HTTP 502 Bad Gateway means the reverse proxy received an invalid response from backend workers. HTTP 504 Gateway Timeout means the upstream worker did not respond before the proxy timeout expired.
An HTTP 503 error usually indicates that your hosting server is experiencing temporary resource exhaustion (CPU, RAM, or database connection limits) due to a traffic spike, heavy database queries, or a DDoS attack.
Temporarily back up custom rewrite configuration blocks and test with a minimal configuration while checking the web server error log for unsupported directives or syntax faults.