Questions tagged [pm2]

44 questions
0
votes
1 answer

How can I find out where a port number for a React website is saved?

I have a Debian machine, I can see that a React website is running on port 4173 but can't find out where it is so that I can change the port. I assume it is in some config file somewhere. it's not in package.json { "name": "debiantest", …
Edward Tanguay
  • 1,209
  • 4
  • 22
  • 31
0
votes
0 answers

When calling script from jenkins it is not working as expected

we have one react application and start it using pm2 with pm2 start manually. We have written one script to run it, it is working as expected when we run script manually on server. But when calling from jenkins it is not working as expected. Below…
Satish Lamak
  • 51
  • 1
  • 3
  • 7
0
votes
0 answers

NodeJs app working when started using npm start, but not with PM2

Very new to server stuff, sorry if this may be a noob question. Problem I am trying to run React and Node/express on a server. React does work and when I start my node app via npm start the server actually works too, meaning: Opening the website on…
Tommy
  • 101
  • 1
  • 2
0
votes
1 answer

Litespeed - NextJS app in DigitalOcean Droplet - Restart Custom Server

Am using the DigitalOcean OpenLiteSpeed NodeJS image from marketplace for setting up the Droplet, for running my NextJS app. I have setup everything and when tested, the home page was displaying properly. When I clicked the Login button (that uses…
Vpp Man
  • 103
  • 1
0
votes
1 answer

pm2 Multiple God Daemons and node process Spawning

I Have node apps unning using pm2.And it is spawning multiple pm2 daemon instead of one which is eating up all the memory. When I run ps aux | grep pm2 Command I see multiple God daemons for the pm2 process instead of one. I have a total of 10 pm2…
0
votes
1 answer

Rebooted Ubuntu server, nginx site no longer accessible from browser

I rebooted my Ubuntu server this morning because I was having what appeared to be a low-memory error (happens occasionally, hasn't been enough of a problem to try and fix it). But now, my site (which was previously working fine) is no longer…
Tinstar
  • 1
  • 3
0
votes
2 answers

PM2 - Process or Namespace not found when deploying with GitLab CI

When deploying from CI, as the user who started PM2, pm2 restart appname always results in [PM2][ERROR] Process or Namespace appname not found whoami/who on deployment shows the correct user. Tried switching users, as well as PM2's…
Klav
  • 101
  • 1
  • 2
0
votes
1 answer

Deploying nodejs app using npx http-server and Nginx

I am deploying a nodejs app I have tried two alternatives but I can't understand what's the better approach in terms of performance. The first approach I tried is to lunch using pm2 npm start (which in my case call npx http-server ./ -p 8085 -o…
G M
  • 103
  • 5
0
votes
2 answers

Program installed for one user cannot be accessed from other user even full path is provided

I have all the npm pacakages installed for a particular user (i.e) not root (/home/otheruser/*) I am using monit to see whether to check the program is running. In this case its pm2, which is in /home/otheruser/.nvm/versions/node/v5.2.0/bin/pm2 I…
The Keeper
  • 141
  • 5
0
votes
2 answers

Digital Ocean Droplet spikes to 100% CPU usage without any traffic

I recently setup a new Droplet (most basic one) and running react app with very light express server with pm2 (server has been running 16h with 0% cpu usage and 90mb ram). I started the server, no issues there cpu was around 3% and I was testing the…
0
votes
1 answer

pm2 deployment to aws micro instance of ubuntu 12.0

I have ran a pm2 deploy script that seems to have hung, I am running a aws EC2 Micro instance runnning ubuntu 12. The only indication I have of what's wrong that I can tell is a message I got when trying to ssh in System information disabled due to…
0
votes
0 answers

EC2 Instance with node pm2 keeps breaking my instances ssh

Update:ok weird so my instance public dns seemed to change? is that possible, now I can ssh in after changing to the new one. still can't ssh in from the browserbased connection tho. I have a ec2 t2.micro instance of ubuntu 18, that keeps…
0
votes
1 answer

Forward Real IP from Nginx Proxy to PM2 Web Server

I have an API powered by a mean stack and served using PM2. It exposes a HTTP endpoint at http://89.89.89.89:8080 (example IP) - I can access this directly using my browser. I have installed Nginx and I'm using the following configuration to…
Ralph
  • 862
  • 11
  • 26
-3
votes
1 answer

How you running more than one instance of parse on multi core servers?

I'm wondering if anyone is running something like pm2, forever or what ever to run more than one parse instance on servers that more than a few cores? If so can you provide any suggestions on something simple, we might be using Heroku and some of…
Steve
  • 183
  • 2
1 2
3