Pm2: exited with code [1] via signal [SIGINT]

Created on 13 Mar 2020  路  5Comments  路  Source: Unitech/pm2

What's going wrong?

I have 4 app running over pm2 on linux server (1 GB ram). However, 1 of my app will always restarted due to exited with code [1] via signal [SIGINT]. Sometime it can stay for a week without restart but sometime it restart few time in a minute.

Before this issue happened, I was running on pm2 v 2.x and its very stable. And now I have updated to 4.2.3 and still got the issue.

I cant find what is code [1] about. And I have check my logs, it didn't show any error or warning before the restart occur.

free -h
total used free shared buff/cache available
Mem: 957M 353M 149M 728K 455M 411M
Swap: 0B 0B 0B

PM2 | 2020-03-13T11:11:10: PM2 log: App [app:2] online
PM2 | 2020-03-13T11:11:13: PM2 log: App [app:2] exited with code [1] via signal [SIGINT]
PM2 | 2020-03-13T11:11:13: PM2 log: App [app:2] starting in -fork mode-
PM2 | 2020-03-13T11:11:13: PM2 log: App [app:2] online
PM2 | 2020-03-13T11:11:16: PM2 log: App [app:2] exited with code [1] via signal [SIGINT]
PM2 | 2020-03-13T11:11:16: PM2 log: App [app:2] starting in -fork mode-
PM2 | 2020-03-13T11:11:16: PM2 log: App [app:2] online

stale

Most helpful comment

Solved the problem

pm2 kill
rm -rf ~/.pm2 

All 5 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

facing same issue, were you able to solve?

Same issue. Here is the output of my pm2 log command

App name:app id:0 disconnected
PM2      | App [app:0] exited with code [1] via signal [SIGINT]
PM2      | App [app:0] starting in -cluster mode-
PM2      | App [app:1] online
PM2      | App name:app id:1 disconnected
PM2      | App [app:1] exited with code [1] via signal [SIGINT]
PM2      | App [app:1] starting in -cluster mode-
PM2      | App [app:0] online
PM2      | App name:app id:0 disconnected
PM2      | App [app:0] exited with code [1] via signal [SIGINT]
PM2      | App [app:0] starting in -cluster mode-
PM2      | App [app:1] online
PM2      | App name:app id:1 disconnected

Solved the problem

pm2 kill
rm -rf ~/.pm2 

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shaunwarman picture shaunwarman  路  3Comments

FujiHaruka picture FujiHaruka  路  3Comments

ghost picture ghost  路  3Comments

mario-mui picture mario-mui  路  3Comments

ldarren picture ldarren  路  3Comments