All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

pm2 process kill the server by running pm2 update multiple times

We stumbled upon a very strange problem while running any pm2 command. While running pm2 list we got this result inside console [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2 [PM2] PM2 ...
Milos's user avatar
  • 101
0 votes
0 answers
130 views

pm2 in systemd not actually starting processes

I'm having an issue where I'm running pm2 as pm2-root under systemd (this is on Amazon Linux2023). The daemon runs fine, and if a process dies, it restarts it fine. However, if the server reboots, pm2-...
philolegein's user avatar
0 votes
1 answer
135 views

Apache Cannot See PM2 Node Process

I have Apache running on Ubuntu 20 and I keep getting this error in /var/logs/apache2/error.log: [proxy:error] [pid 7064] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:4000 (...
Clifton Labrum's user avatar
0 votes
0 answers
56 views

migrate pm2 services to new server

In order to support the most recent versions of NodeJS, we need to migrate our web servers from Amazon Linux 2 to Amazon Linux 2023. Making this move precludes us from doing the usual spin-up/down ...
philolegein's user avatar
0 votes
0 answers
238 views

PM2 Cluster Mode - All Clusters restarting on error

I am running a NodeJS application in Cluster mode: pm2 start server.js -i max Assume I have 2 clusters (0 and 1)... Our application is a simple NodeJS backend app running Express. However, there is ...
Collin Stiner's user avatar
0 votes
1 answer
508 views

PM2 cluster mode additional processes use wrong script path

I have a nodejs app running on a server with the following ecosystem.config.js: module.exports = { apps : [ { name : "app.website.com", script : "/...
jdog's user avatar
  • 131
0 votes
0 answers
643 views

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 ...
Satish Lamak's user avatar
0 votes
0 answers
4k views

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 ...
Tommy's user avatar
  • 101
0 votes
1 answer
1k views

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 ...
Sterina Pen's user avatar
0 votes
2 answers
11k views

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 ...
Klav's user avatar
  • 101
2 votes
1 answer
1k views

My Node.JS program running on an internet-facing server is printing impossible text to the stdout log. Have I been compromised?

(EDIT: Turns out the "strange behavior" is explained by a simple oversight. Keeping this question here in case anyone else overlooks it) I hope I am asking this question right. I have a ...
majneeds2chill's user avatar
0 votes
1 answer
2k views

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 ...
G M's user avatar
  • 103
0 votes
2 answers
942 views

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/...
The Keeper's user avatar
0 votes
0 answers
394 views

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....
Anders Kitson's user avatar
1 vote
1 answer
3k views

NodeJS and Redis Cluster - Error: connect EMFILE

I'm banging my head against the wall now for 3 days and counting. I hope you can tell me what am I doing wrong. I have a Redis cluster with 3 masters and 3 slaves. A NodeJS application wishes to use ...
Bert's user avatar
  • 1,048
0 votes
0 answers
4k views

Pm2 cannot open it's own PID file on ubuntu 18.04

I was recently trying to run a nodejs app I created using pm2 and this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04 ...
Jake t's user avatar
  • 127
0 votes
2 answers
2k views

Nginx PM2 NodeJS reverse-proxy with SSL gives HTTP 504

Once upon a good time, I had a good config for three NodeJs, socket.io API running on the same Ubuntu 16.4 LTS VPS server with PM2 for process managing and Nginx for reverse proxy to three different ...
Malek Boubakri's user avatar
1 vote
1 answer
983 views

Is my docker node application using all available CPUs?

I've got a node app built using a standard node-alpine docker image deployed to Azure App Service. The App Service Plan is set to use 2-core VMs (instance type S2). A single node process will only use ...
jiggy's user avatar
  • 123
4 votes
0 answers
3k views

Nginx, PM2, Node - No 'Access-Control-Allow- Origin' header

I have developed NodeJS server ran with express. I use PM2 to manage the application and then nginx to proxy requests to the application. My Express application has CORS, CSP etc set up. But, the ...
BugHunterUK's user avatar
1 vote
1 answer
4k views

NGINX - Serving a create-react-app application on one port and my api on another port

In my application i am using create-react-app and serving my site's frontend on the port 5000 by using "serve -s build" in a node pm2 process. I can get this working by using this configuration for my ...
Loggggy's user avatar
  • 11
1 vote
1 answer
6k views

"pm2 deploy production setup" command fails, Permission denied (publickey)

So I guess pm2 and SSH aren't configured correctly to work with each other on my machine. I'm perfectly able to SSH into my remote server manually using ssh user@hostname. The server is a ...
Jon Love's user avatar
5 votes
0 answers
928 views

Nginx load balancer in front of pm2 with nodejs cluster [closed]

I'm trying to setup a production environment with a frontend running nginx and a backend with multiple nodejs applications using pm2 for process management. The idea is to allow horizontal ...
Jordifreek's user avatar
0 votes
2 answers
424 views

How migrate Parse Web App to my own Server

There are a lot of manuals for migrating Parse servers to different platforms but none of them say which kind of plugins and packages are needed for those web applications which work with Expressjs on ...
AmirModiri's user avatar
1 vote
2 answers
1k views

Upgrade node 0.12.x to nodejs 4.4.x using pm2

I use PM2 to run my node processes in production (on Ubuntu 14.04). After upgrading from node 0.12.x to nodejs 4.4.x, the command to run node(js) changed from node to nodejs. I followed the ...
steampowered's user avatar
0 votes
0 answers
1k views

pm2, sockets and permissions

I'm deploying a node.js app with PM2 behind an nginx reverse proxy. I want to run the PM2-managed app using a local socket, but there are a couple of obstacles. Firstly the app needs to be told ...
Synchro's user avatar
  • 3,190