Questions tagged [pm2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
53 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 ...
0
votes
2answers
76 views

cron is not restarting pm2 [duplicate]

I've tried many things but cron just won't restart pm2. I set the crontab -e with: SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin */10 * * * * /usr/bin/node /usr/bin/pm2 restart all And the I ...
0
votes
0answers
14 views

Nodejs Cluster with pm2 mix

Is it a good idea to mix nodejs cluster module with pm2 ? E.g. we run the cluster.js file with pm2 like pm2 start cluster.js -i max
0
votes
1answer
56 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 ...
0
votes
2answers
50 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/...
0
votes
1answer
329 views

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 ...
0
votes
0answers
13 views

502 Bad Gateway while installing angular with nginx and pm2 [duplicate]

Hi i have problem with installing angular with nginx and pm2 i think i installed all prerequisites tools to installing angular on ubuntu ec2 with nginx but i always get the error 502 bad gateway my ...
0
votes
1answer
43 views

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 ...
0
votes
0answers
53 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....
1
vote
0answers
161 views

EC2 - ERR_CONNECTION_TIMED_OUT

I have a ec2 free tier instance running linux, apache web server and nodejs app. I have configured security group and it worked ok so far. But now i can not access server through DOMAIN or IP with ...
1
vote
1answer
633 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 ...
0
votes
1answer
1k views

How to point cname to nginx server that uses reverse-proxy [closed]

I've got a server using wildcard subdomains. I'm using nuxtjs, nginx that runs on a reverse proxy on port 3000. Every user should be able to create a subdomain on the site, for example subdomain....
0
votes
0answers
20 views

Node app error when deploying on Amazon Linux EC2

I've been trying to deploy a node app on an Amazon Linux EC2 instance, the code works fine on the local machine it was developed on. But when trying to deploy it and start app.js with PM2 I get the ...
0
votes
0answers
147 views

Unable to start node app with pm2

I need to run a node server with PM2 on an Amazon Linux EC2 instance when I run pm2 start app.js the node app starts but it does not listen on any port even though I set it to run on port 3000. When I ...
0
votes
0answers
393 views

pm2 shows status “online” but the site is not working

Im trying to run an express app (just installed with the default settings) on ubuntu 18 server (on a digital ocean droplet). it works when using "npm start app.js" but when im using pm2 to start the ...
0
votes
0answers
24 views

Mean stack running o apache running slow

I have a mean stack running in an apache server. I have to restart the server from time to time, I have no idea why, in order for it to load: it loads for a short amount of times, then starts to ...
0
votes
1answer
214 views

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 ...
1
vote
1answer
76 views

Calculate pm2 ram consumption on basis of hit or traffic

I have deployed loopback backend application in ec2 instance. I am using Pm2 server. How can I calculate ram and cpu for traffic or hit ?
0
votes
1answer
39 views

nginx + pm2 locations error

quite new to nginx and struggle to make the simplest thing running on digitalocean ubuntu 16.04 server. I have a node.js app running behind pm2 and this works fine with requests to mydomain.com:5002/...
1
vote
1answer
589 views

pm2-logrotate rotates standard error but not standard output

pm2-logrotate rotates standard error but not standard output. This is the content of ~/.pm2/module_conf.json { "pm2-logrotate": { "max_size": "10M", "retain": "30", "...
0
votes
0answers
1k 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 ...
0
votes
2answers
844 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 ...
1
vote
1answer
818 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 ...
4
votes
0answers
1k 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 ...
2
votes
2answers
491 views

Keeping server time in sync using ntpd

I understand ntpd has a -g option to allow a one time immediate clock set for large skews. Then the daemon runs and continuously adjusts. In the event of the skew becoming too large, the daemon exits ...
1
vote
1answer
3k 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 ...
0
votes
1answer
442 views

PM2 Similar for Tomcat

Tomcat due to auto-of-memory or rare problem it stops, and needs to manually start the service back. Is there any simple Process manager like PM2 for Tomcat, to monitor and start when not running.
1
vote
1answer
4k 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 ...
1
vote
0answers
245 views

Check if PM2 daemon is running and resurrect

There were some recent problems on Ubuntu server due to low RAM. The server didn't reboot but PM2 crashed. To avoid such situations in future, I'm looking for a way to check if PM2 daemon is running ...
0
votes
1answer
470 views

Endless files with copytruncate option in logrotate

When I use logrotate with this configuration: /home/ubuntu/.pm2/logs/* { rotate 2 size 200k missingok notifempty compress delaycompress ...
-3
votes
1answer
556 views

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 ...
4
votes
0answers
756 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 ...
0
votes
2answers
372 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 ...
1
vote
2answers
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 ...
0
votes
0answers
921 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 ...