r/LinuxTeck • • 5h ago

Tracing Nginx 502 Bad Gateway errors and broken upstreams visually over SSH (without installing a server agent)

Debugging a 502 Bad Gateway in Nginx usually means jumping between nginx -T, ss -tlnp, and /var/log/nginx/*.error.log to figure out which location block forwards traffic to a dead port or an offline upstream node.

This visual route map comes from Kubo (kubo.gemmi-e.com), an agentless desktop tool for Windows, macOS, and Linux that reads standard server outputs over SSH (nginx -T, ss -tlnp, openssl x509) and draws the full request path from domain to listening process.

What this Nginx route map (~/network/nginx) highlights at a glance:

  • Exact point of failure (502 on /ws): The /ws WebSocket location forwards traffic to port 8081, where nothing is currently listening (nothing listens · 502), pinpointing the broken route immediately instead of reading raw config blocks.
  • Degraded upstream pool (backend_nodes · 1 of 3 up): Shows which backend instances are active (127.0.0.1:3000), which port has nothing listening (127.0.0.1:3001), and which node is marked out of service (127.0.0.1:3002).
  • SSL certificate & traffic context: Displays certificate expiration countdown (27d left), active listening ports (80, 443), and live HTTP status codes from the access log (200, 301, 404, 502).
1 Upvotes

0 comments sorted by