pm2 Questions

3

Solved

I recently updated my self-hosted linux server on compute engine. Pm2 had been working perfectly along my github actions previously. However after update when i restart a pm2 instance from my ssh t...

6

I have a server with PM2 installed and 10 running node apps. Every App should run with a different port number. When I install a new App on the server I need the information about the used ports. W...
Weaverbird asked 16/11, 2018 at 10:36

3

Solved

I want to start node with pm2 and environment variables like --nouse-idle-notification or --max-old-space-size=2048. However, whatever I do, it is not passing the node variables. I start my app wit...
Yogi asked 8/12, 2016 at 2:3

2

Solved

We use to have PM2 in production for nodejs applications Now comes docker which ideally expects us to have one process per container(although it got changed to one concern per container now) and t...
Dona asked 2/2, 2019 at 6:17

7

Solved

I have an AWS EC2 that is just for keeping my Next.js client side running (there is no backend for it right now). Currently if I go into the terminal and enter npm run develop, the site runs perfec...
Crayon asked 14/12, 2021 at 17:5

7

Solved

I have an issue with my linux server and need to reboot, before that I run my node application with pm2 start server.js without any other config. Can it auto restart my app after reboot server?
Montero asked 6/2, 2020 at 12:43

2

I have an express server running with pm2(v2.4.2) and node(v7.7.4). Here is the pm2 list screenshot: Here is htop screenshot: As you can see, the CPU usage is 100%. And the running PIDs are n...
pm2
Countermine asked 31/3, 2017 at 7:36

2

I had node version v6.11.1 installed but it was giving error in some package, so i installed v10.15.3 with nvm and set it as default. #If I run my app directly using node, it uses correct node ver...
Only asked 16/4, 2019 at 16:28

5

Solved

I have just changed from Express with NodeJS to Django with Python. The only thing I miss about NodeJS was the wonderful process manager pm2. Can I use pm2 with Django?
Federalese asked 6/1, 2017 at 14:52

4

I have created a basic node app with typescript top of it. I am using ts-node to do so and it's working totally fine with nodemon. But I need to move it to the server now I am stuck. PM2 is showing...
Clearstory asked 24/3, 2019 at 17:17

1

I have a nextjs 14 project which is using server side rendering, I have added both console.log and Winston logger in my server components and both the logs are displayed when I run npm run build. H...
Consociate asked 16/4 at 8:38

6

Solved

I've been following this issue and till now my problem not solved, anyone can help? Any command of pm2 always returned [PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2 Thanks
Orren asked 6/12, 2018 at 16:8

4

Solved

When I run my nodejs application on my Ubuntu Linux server using node server.js it works correctly, and outputs the value of the environment variable $db using process.env.db. However, the a...
Feu asked 20/1, 2016 at 10:47

5

Solved

I launched my node app by using ecosystem.config.js like this. pm2 start ecosystem.config.js And my ecosystem.config.js is here. module.exports = { /** * Application configuration section * h...
Polly asked 7/1, 2017 at 3:26

4

Solved

I'm using pm2 to manage a node process. Currently, pm2 restarts the node process even if it finishes cleanly (with exit code 0). I don't want that to happen. Instead I only want PM2 to restart t...
Serpentiform asked 25/4, 2017 at 14:48

6

Solved

I'm trying to find out where PM2 saves the log files by default? I'm working with a Linux Ubuntu 16.04 server and I've installed it globally with npm i pm2 -g.
Mainly asked 24/4, 2019 at 10:34

8

Solved

After updating Node.js from v10.16 to v10.32, PM2 was not detected, however it was running fine when checked with ps aux. Even upon system reboot PM2 functioned correctly even though manual PM2 com...
Katonah asked 5/10, 2014 at 17:7

2

My package.json file looks something like this: { ... "main": "index.js", "type": "module", "scripts": { "devStart": "pm2 start ...
Wicketkeeper asked 25/11, 2021 at 17:46

6

Solved

I'm running my app using sudo npm run dev how should I use pm2 in order to run sudo npm run dev this command.
Undeviating asked 20/3, 2017 at 19:11

5

Solved

I've set up a Docker container for my node app and ran it using docker run -p 4500:4500 my_node_app It launched pm2 in no-daemon mode. CTRL+C and exit don't work. I've tried docker stop my_node_...
Shere asked 25/6, 2018 at 2:29

3

One cmd window per node process, I don't know what these windows for. Can I hide them?
Plumbaginaceous asked 14/12, 2016 at 4:21

9

Solved

I'm using pm2 as the process manager of Node.js. In many cases, I think I will run it as a daemon process, but if you use it locally as debugging, I think that there are times when you use the --n...
Cislunar asked 20/7, 2017 at 2:39

3

Solved

According to the documentation here: http://pm2.keymetrics.io/docs/usage/startup/#startup-systems-support You can use the command pm2 startup ubuntu -u nodeapps to resurrect all saved pm2 jobs on ...
Humanist asked 2/6, 2016 at 9:9

2

Solved

I'm analyzing a stack of a public route that rests on an Elastic Load Balancer which opens a port exposed by PM2 that starts a node app using the koa module. At the moment, the IP is logged and tha...
Laundress asked 2/11, 2017 at 10:33

7

Solved

I am having difficulty getting pm2 to restart (itself and two node/express files, app.js & app2.js) on a server re-boot. Below is the processes I have tried: pm2 startup pm2 start app.js pm2 ...
Initiate asked 15/1, 2016 at 22:39

© 2022 - 2024 — McMap. All rights reserved.