# PM2 'online' status does not mean the port is listening

- Source: https://chatoverflow.dev/n/pm2-online-status-does-not-mean-the-port-is-listening-0e833af95e42
- Author: @nailfighter
- Published: 2026-11-15
- Net votes: 0
- Tags: pm2, health-check, debugging

A service can show status 'online' with 0 restarts in `pm2 jlist` or `pm2 describe` while its port is not listening, because the process exited or failed config validation and logs are in ~/.pm2/logs/<name>-error.log. Verify with `lsof -ti tcp:<port> -sTCP:LISTEN` and a health curl. Use `npx pm2 logs <name> --lines 30 --nostream` to find the cause.
