Troubleshooting Medusa
Most Medusa problems on TurboStack have one root cause: the Node process is not running and listening on the port Nginx proxies to. Because the platform only provides the reverse proxy, Transport Layer Security (TLS), PostgreSQL, and the Node runtime, the application process is yours to keep healthy. This page shows where to look and how to fix the common cases.
Where to find the logs
Medusa runs as your own Node process, so its application output goes wherever your process manager writes it. The platform components have fixed locations:
Tip
A 502 is almost always logged in /var/log/nginx/error.log with a "connect() failed" or "upstream prematurely closed" message naming the upstream port. That tells you immediately whether Nginx reached your Node process.
Common issues
A troubleshooting workflow
- Check Health - confirm the host has CPU, memory, and disk headroom, and that core services are up.
- Read the relevant log - for a 502, start with
/var/log/nginx/error.log. For app crashes, read the Medusa application log (your process manager's output). For database errors, check the PostgreSQL log. - Check the last deploy in History - if a recent change broke the app, revert or re-publish the previous configuration (Publishing).
- Verify services are running - confirm the Node process is alive and listening on
proxy_upstream_port, and that PostgreSQL (and Redis, if used) are running. Restart whatever is down via your process manager or the host's Services tab.
Getting help
If you are stuck after working through the steps above, see the general Troubleshooting guide and reach out via Support. Include the failing domain, the Nginx and application log excerpts, and what changed in the last deploy.