Author Topic: CWP Problem after installed node  (Read 5709 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP Problem after installed node
« on: May 29, 2021, 12:10:10 PM »
Hi, i installed Node from CWP Panel, and after i installed my website when i use to test app don't wan't to work anymore.
I unistalled the Node and continue my website don't wan't to work.
Error Screenshot:https://prnt.sc/13jtbat
Error text: Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Offline
*
Re: CWP Problem after installed node
« Reply #1 on: May 29, 2021, 02:31:09 PM »
If your website is a Node.JS app it needs node to be asynchronous  - that is the power of Node.JS above other langauges. What is happening is your app sends a request to system and gets no response since there is no Node.

You should reinstall the Node.JS version your app is built on and setup your webserver correctly as explained here - https://wiki.centos-webpanel.com/how-to-install-and-setup-node-js-on-cwp
Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.

Offline
*
Re: CWP Problem after installed node
« Reply #2 on: May 29, 2021, 04:11:49 PM »
I really don't know what version i set up..

Offline
*
Re: CWP Problem after installed node
« Reply #3 on: May 29, 2021, 04:32:42 PM »
I really don't know what version i set up..

Check package.json for engines field you will see node version there OR if you are using version manager like nvm, nodist etc then look at .nvmrc
Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.

Offline
*
Re: CWP Problem after installed node
« Reply #4 on: May 29, 2021, 06:09:08 PM »
Ok, and where can i find package.json? And after i installed again node how can i remove and my web working?

Offline
*
Re: CWP Problem after installed node
« Reply #5 on: May 29, 2021, 06:32:42 PM »
I fix, i re-build the apache and reset the domain apache configuration from Manage WebServers Configuration.

Offline
*
Re: CWP Problem after installed node
« Reply #6 on: May 29, 2021, 08:36:37 PM »
I fix, i re-build the apache and reset the domain apache configuration from Manage WebServers Configuration.

Follow this guide - http://wiki.centos-webpanel.com/how-to-install-and-setup-node-js-on-cwp. The webserver conf is last thing you will do.
Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.

Offline
*
Re: CWP Problem after installed node
« Reply #7 on: March 07, 2022, 09:49:39 PM »
I am too facing the same issue. After installing Node.JS Manager and installing an application, I cannot access my old website using Apache.

I tried rebuilding Apache, Apache with PHP-FPM but still the issue is persisting.