xrpscan / hermes

Project Hermes: XRP Ledger Validation message service
https://xrpscan.com
MIT License
6 stars 4 forks source link

pm2 has been killed by signal, dumping process list before exit... CentOS8 node v18.8.0 #17

Open rippleitinnz opened 2 years ago

rippleitinnz commented 2 years ago

This error is replicated in the Hermes environment using CentOS 8. This has also been a reported error with previous Node versions

Fix that was applied and works (for my environment).

Stop PM2

Edit file: /etc/systemd/system/pm2-root.service

Add new line: Environment=PM2_PID_FILE_PATH=/run/pm2.pid

And replace: PIDFile=/root/.pm2/pm2.pid to: PIDFile=/run/pm2.pid

restart PM2

Source: https://stackoverflow.com/questions/62814539/pm2-keeps-getting-killed-every-90-seconds-on-centos-8