I've deployed several applications using pm2, but at noon today I suddenly found a business exception, and using the pm2 list, I found that none of the applications in the list were present.
Check the logs:
journalctl -xe | grep pm2
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] PM2 Successfully daemonized
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2][Module] Starting NPM module pm2-logrotate
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2][WARN] Applications pm2-logrotate not running, starting...
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] App [pm2-logrotate] launched (1 instances)
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] [v] Modules Stopped
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] Applying action deleteProcessId on app [all](ids: [ 0 ])
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] pm2-logrotate ✓
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] [v] All Applications Stopped
Nov 20 09:54:01 localhost.localdomain pm2[106811]: [PM2] [v] PM2 Daemon Stopped
What's going wrong?
I've deployed several applications using pm2, but at noon today I suddenly found a business exception, and using the pm2 list, I found that none of the applications in the list were present. Check the logs:
journalctl -xe | grep pm2
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] PM2 Successfully daemonized
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2][Module] Starting NPM module pm2-logrotate
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2][WARN] Applications pm2-logrotate not running, starting...
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] App [pm2-logrotate] launched (1 instances)
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] [v] Modules Stopped
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] Applying action deleteProcessId on app [all](ids: [ 0 ])
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] pm2-logrotate ✓
Nov 20 09:54:00 localhost.localdomain pm2[106811]: [PM2] [v] All Applications Stopped
Nov 20 09:54:01 localhost.localdomain pm2[106811]: [PM2] [v] PM2 Daemon Stopped
What should I do to troubleshoot?
How could we reproduce this issue?
Supporting information