Author Topic: CWP Problem after installed node  (Read 325 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

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

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