Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: Phakphum on October 12, 2024, 03:51:46 AM

Title: NodeJS cannot auto start after rebooting the server
Post 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?
Title: Re: NodeJS cannot auto start after rebooting the server
Post by: adrianofnatal on May 08, 2026, 01:11:24 PM
Hi!

I have same problem.
You solved?

Tahnks!
Title: Re: NodeJS cannot auto start after rebooting the server
Post by: 6Sense on May 09, 2026, 12:35:56 PM
Not very helpful to you admittedly but mine auto restarts without an issue. I'm running version:24.15.0
Title: Re: NodeJS cannot auto start after rebooting the server
Post by: adrianofnatal on May 13, 2026, 02:02:38 PM
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.

Title: Re: NodeJS cannot auto start after rebooting the server
Post by: 6Sense on May 14, 2026, 11:00:08 AM
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.
Title: Re: NodeJS cannot auto start after rebooting the server
Post by: adrianofnatal on May 14, 2026, 04:36:16 PM
6Sense, but I didn't nothing to choose using PM2.
Just install NodeJS versions and start using it.

Title: Re: NodeJS cannot auto start after rebooting the server
Post by: 6Sense on May 17, 2026, 10:28:23 AM
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.