Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: Phakphum on October 12, 2024, 03:51:46 AM
-
I'm using Almalinux 8.10. My NodeJS cannot autostart after rebooting the server. How do I fix this problem?
-
Hi!
I have same problem.
You solved?
Tahnks!
-
Not very helpful to you admittedly but mine auto restarts without an issue. I'm running version:24.15.0
-
Hi!
For me, seems to be a problem with PM2.
We have 3 versions of NodeJS installed and for some reason the PM2 losts some configurations. No apps showed in apps list.
When server reboots, PM2 try to restart all apps, but not find any.
I'm not sure how to solve it.
-
Mmm I don't use PM2 so it might be your issue.
CWP restarts the node.js server as long as you use the manager so you probably don't need it.
-
6Sense, but I didn't nothing to choose using PM2.
Just install NodeJS versions and start using it.
-
I'm pretty sure CWP doesn't auto install PM2 when you set up the node.js mod (otherwise I'd have it installed too).
Maybe it was installed as s dependancy for something you were doing.