CWP Problem after installed node

Started by ClaudiuYTB, May 29, 2021, 12:10:10 PM

Previous topic - Next topic

ClaudiuYTB

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.

josephgodwinke

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.

ClaudiuYTB

I really don't know what version i set up..

josephgodwinke

Quote from: ClaudiuYTB on May 29, 2021, 04:11:49 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.

ClaudiuYTB

Ok, and where can i find package.json? And after i installed again node how can i remove and my web working?

ClaudiuYTB

I fix, i re-build the apache and reset the domain apache configuration from Manage WebServers Configuration.

josephgodwinke

Quote from: ClaudiuYTB 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.

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.

ankurjpr

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.