Questions tagged [pm2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

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

I trying to run an express app (just installed with the default settings) on ubuntu 18 server (on a digital ocean droplet). its works when using "npm start app.js" but when im using pm2 to start the ...
0
votes
0answers
18 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
0answers
14 views

react-router not working with nginx and pm2 on ubuntu 18.04?

I have build an app using react and deployed it on ubuntu using pm2 and nginx. I am using react-router for routing. This is how my project file configuration looks like i created a symbolic link to ...
0
votes
0answers
21 views

Should I start a new nodejs process to listen for webhooks or reuse an existing one?

I have a server that runs an nodejs app. PM2 keeps it going after restarts. I would now like to listen for Git webhooks. So when the Bitbucket repository is updated, it will send a payload to my ...
0
votes
0answers
48 views

pm2 unable to start haproxy - permission denied when opening configuration file

I am trying to onboard haproxy to pm2. So far, I have the following in my start script: #!/usr/bin/env sh pm2 start haproxy --name "haproxy-monitor" --pid $HOME/haproxy/bin/haproxy.pid -- -db -f $...
0
votes
0answers
15 views

pm2 Internet traffic

I see a lot of traffic from PM2 Agent (v0.5.22) to 195-154-99-3.rev.poneytelecom.eu (195.154.99.3). This is a traffic for one day: My node.js application only checks temperature every 2 minutes and ...
0
votes
1answer
52 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
40 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
34 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
0answers
447 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
800 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
513 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
814 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 ...
3
votes
0answers
950 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
457 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
356 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
3k 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
214 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
424 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
497 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
727 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
334 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
809 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 ...