How to resolve PM2 service conflicts in N4V for Webi

Anonymised summary of support ticket #714547 (2024-07-18)

Symptom

Services related to N4V for Webi fail to start or behave unexpectedly due to leftover environment variables and files from previous installations.

Environment

N4V for Webi installed on a Windows system with Node.js and PM2 service manager.

Resolution

  1. Delete the following environment variables if they exist: SET_PM2_SERVICE_SCRIPTS, SET_PM2_SERVICE_PM2_DIR, SET_PM2_HOME, PM2_SERVICE_SCRIPTS, PM2_SERVICE_PM2_DIR.
  2. Stop all PM2 processes using the commands: 'pm2 stop all' followed by 'pm2 kill'.
  3. Delete the file 'dump.pm2' located in the Node.js directory.
  4. Delete the 'daemon' folder inside 'node_modules\pm2-windows-service\src\'.
  5. Recreate the PM2 service for N4V for Webi.