Skip to content
Advertisement

Nginx error: “The page you are looking for is temporarily unavailable”. I can’t deploy NodeJS in my server. How fix it?

I’m developing an app in flutter, with two server with CentOS 8 Stream x64, one for data and other for services, services is configured with NodeJS, and within a services server I have a folder with connection files. I have a problem with my conection in Nginx. When I put the IP of my server in my browser appears this:

enter image description here

In the configuration file /etc/nginx/nginx.conf I don’t know what edit, this is the content:

JavaScript

When I run in Putty within the pm2 start main.js --name MILLIONW apparently works, but when I execute pm2 logs appears this:

enter image description here

pm2 was installed global, I tried update pm2 and nothing, I uninstalled and reinstalled node (and with the last version) and nothing (that was the solution for fix processContainerFork.js MODULE_NOT_FOUND).The object. is ok, in other project has the same and works.

Archive “mysql_cnf.json” from services archives into the server:

JavaScript

In archive sistema.dart from the code of my app (the part of conection with my services):

JavaScript

My main.js in my services’s archives on the server:

JavaScript

Should appear on the browser: status: true; environment: developing;

If you need more information about any file, write it in the comment box. I don’t understand what to do to fix the error. Please help, any suggestion? First for all, thanks.

Advertisement

Answer

The solution was review the main.js file, format the droplet, reinstall all, upload my files, check the main.js file, in its content it called functions that were in files in other folders, some files I removed but they were still mentioned in the main.js.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement