I have a Debian server running with Plesk. This server hosts the pedagogical platform I created. This platform uses WebSocket technology to allow teachers and students interactions in real time.
From the side server, a nodejs script started by PM2 manages all this.
My problem is that in a totally random way and without anyone doing anything, PM2 "uninstall" alone and the WebSocket server stops working ...
I can solve the problem easily using:
NPM Install -G PM2
and restart the script.
The hours are never the same and do not match with a cron task:
(I then create a monitoring with Uptime Robot)
I can't find anything in log files ...
It's really problematic because we have many users and a continuity of service to ensure.
Any ideas ?
Thank you
The problem seems to be caused by Plesk which deletes the elements installed globally in /opt/plesk/node/17/bin I changed approach. I installed PM2 locally in an other folder. Problem solved.