Questions tagged [pm2]

44 questions
1
vote
1 answer

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 the redis to store and serve data quickly. All…
Bert
  • 1,028
  • 1
  • 16
  • 33
1
vote
1 answer

How to point cname to nginx server that uses reverse-proxy

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.learnbot.tk this will then point to…
Matilde
  • 11
  • 1
  • 2
0
votes
1 answer

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/endpoint. However, I can't get it working on a…
0
votes
0 answers

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 However, for some reason it throws this error and is…
Jake t
  • 127
  • 2
  • 8
0
votes
2 answers

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 subdomains. My installed successfully a SSL…
0
votes
1 answer

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.
arvindwill
  • 111
  • 3
0
votes
2 answers

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 the cloud. Does anybody have any suggestions for…
0
votes
0 answers

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 where to write its socket so that nginx can point at…
Synchro
  • 3,148
  • 6
  • 27
  • 38
0
votes
1 answer

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 (127.0.0.1) failed [proxy_http:error] [pid 7064]…
0
votes
0 answers

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 instances, and involves a full migration. Everything…
philolegein
  • 409
  • 4
  • 12
0
votes
0 answers

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 the occasion where there is an unhandled error that…
0
votes
0 answers

Uptime Kuma - Server not loading CSS changes

So I'm trying to change the title on the dashboard from "Uptime Kuma" to something else Example: link to the temporarily changed title via devtools from "Uptime Kuma" to something else. Doing that could be (by cheating a little bit) done by…
0
votes
0 answers

Restarting PM2 when the latency of the API it's serving becomes high

I have an EC2 instance running which is housing a nodeJS/GraphQL based API application. The application is managed via PM2. I want to have a setup/configuration which can continuously ping one endpoint (actual API) on the server to keep monitoring…
beNerd
  • 117
  • 5
0
votes
0 answers

Pm2 unable to access SSL cert and Key files even though I have permission to access those files

When I deployed my mern app on our server it throwed me a EAccess error saying unable to access my cert and key files of ssl however then I created a group for me and my root with adequate permissions so that my node server can access those files…
0
votes
1 answer

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 : "/var/www/app.website.com/node/server.js", cwd :…
jdog
  • 121
  • 7
  • 29