Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: ClaudiuYTB on May 29, 2021, 12:10:10 PM

Title: CWP Problem after installed node
Post by: ClaudiuYTB 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.
Title: Re: CWP Problem after installed node
Post by: josephgodwinke 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
Title: Re: CWP Problem after installed node
Post by: ClaudiuYTB on May 29, 2021, 04:11:49 PM
I really don't know what version i set up..
Title: Re: CWP Problem after installed node
Post by: josephgodwinke 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
Title: Re: CWP Problem after installed node
Post by: ClaudiuYTB 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?
Title: Re: CWP Problem after installed node
Post by: 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.
Title: Re: CWP Problem after installed node
Post by: josephgodwinke 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.
Title: Re: CWP Problem after installed node
Post by: ankurjpr 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.