pm2
pm2 copied to clipboard
Express app becomes unreachable via pm2, works fine running directly
Providing a repro for this is sadly hard due to the Express app being huge, but the gist of the problem is that:
- When running the app directly (
node index.js), it works perfectly fine and responds to API requests in browser/postman. - When running via PM2, it becomes unreachable - it is still running correctly, with logs indicating no runtime errors. HOWEVER, all API requests terminate immediately in browser/postman with ECONNREFUSED state, and the app logs indicate no incoming requests whatsoever.
Where can we even start to debug this? Our only conclusion is that the error must occur somewhere in PM2 itself, but there are no useful errors or anything else being thrown.
Hi everyone, I am also facing the same issue. Any solution to this ?
Exactly same issue and behaviour with vite-node and koa. All logs report that all cool, but it isn't. WEIRD. Anyone? Any idea? Thank you:)