2,278 questions
0
votes
0
answers
61
views
AWS Code Deploy command not found for pm2 and pnpm
I'm deploying Node.js based server on EC2 via code deploy.
I'm using pnpm and pm2, when execution of shell script from appsepc.yml, it seems path not works. pnpm command not found or pm2 command not ...
0
votes
0
answers
32
views
`pm2 start` doesn't reload environment variables
I have a NextJS application running with pm2 and recently I updated the app with Apple signin feature. So, I have to setup two new environment variables in my server, namely AUTH_APPLE_ID and ...
0
votes
0
answers
98
views
pm2 makes paddleocr models keep in loop when trying to start process
I have a FastAPI project that I'm trying to run on server. that project uses PaddleOCR, when I just run the project with:
fastapi run main.py
It runs normally and shows a ppocr log:
ppocr DEBUG: ...
0
votes
0
answers
59
views
How to correctly schedule a task using crontab, PM2 and NodeJS?
I currently have a schedule set up using crontab that runs a file every morning using PM2 with the below command:
10 07 * * * export NODE_ENV=prod&& sudo -E pm2 start /pathToFile/file.js -n ...
0
votes
1
answer
84
views
Switch production / development
I have a Debian VPS where I use a monorepo with Strapi (V5) and Next.js (V15).
My project is called strapi-next, and I have 2 folders, frontend (Next.js) and backend (Strapi).
Everything works fine, ...
0
votes
2
answers
102
views
Why is pm2 not detecting a basic node error?
I can't get why a simple node process failing doesn't get detected by pm2.
pm2-dev app.js (or pm2 start app.js) with app.js containing :
throw new Error("test");
=> pm2 does not detect ...
0
votes
0
answers
9
views
PM2 + Vizion versioning not working with Angular app deployed via GitHub Actions (only dist/ folder)
I'm deploying an Angular app using GitHub Actions to a managed cloud server. In the deployment step, I only transfer the contents of the dist/ folder to the server (since that's all I need for serving ...
0
votes
0
answers
38
views
AWS NodeJS Websocket server "sleeping" - no error
I've got a NodeJS websocket running on an EC2 instance.
I'm keeping it alive with PM2.
I'm working on it via SSH using vis studio code.
The system is running well and I have about 500 clients (desktop ...
-1
votes
1
answer
56
views
line with sudo command is keep iteration when started with pm2 [closed]
!/bin/bash
cd /home/pi/dockertest
sudo -S <<< Adminpassword docker-compose up -d --scale chrome=2 --scale firefox=0
I want to add a script to pm2 to start the SeleniumGrid. So I have created ...
0
votes
1
answer
23
views
Why is 'npm install' and 'pm2 restart all' not executing?
Everything works fine for my MERN app in the workflow except for the start of npm install onwards. The workflow succeeds. I need to manually restart the server to see any backend changes. Any idea ...
0
votes
1
answer
143
views
Update Strategy When Using Auto Scaling with MIG on GCP
I'm new with GCP and I've been reading some articles online on how to create Auto Scaling on GCP. I found this StackOverflow answer that answered all my questions on how to setup Auto Scaling with MIG ...
0
votes
0
answers
82
views
Persistent EADDRINUSE Errors on Replit with Node.js & PM2 Setup
I'm running into a persistent issue while developing a Node.js application on Replit. The app worked perfectly locally, but now that it's hosted on Replit, I keep encountering the EADDRINUSE error, ...
1
vote
0
answers
46
views
Batch Processing Not Working in PM2 Health
I want to limit the exception alerts sent by PM2. Specifically, if an application crashes and an exception occurs, PM2 should send an alert immediately but wait at least 5 minutes before sending the ...
2
votes
0
answers
271
views
How can I get pm2 to report memory usage on the actual process?
When I run something like pm2 start app.js, I get the correct memory consumption. The PID in pm2 ls corresponds to the actual app's PID when using btop (a flavor of top/htop).
But when I run pm2 start ...
0
votes
0
answers
20
views
Can pm2 make RAM problem like giving BDOS (BLUE SCREEN) with MEMORY MANAGMENT ERROR?
I run pm2 10 processes with Puppeteer browser to make some quick parsing. After that several times in week I got BDOS error with MEMORY MANAGEMENT.
In Windows task manager I don't see any problem ...
0
votes
0
answers
36
views
Nextjs and PM2 on ubuntu server
I was trying to start my nextjs 14.2 app using pm2.
at first, i tried to use:
pm2 start npm --name "Next" -i max -- start command. everything is ok and it use about 70MB of ram.
than i tried ...
-1
votes
1
answer
74
views
Container stockmgmt_0_3b1a53ce didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging. For Node js
"I am deploying a Node.js application using PM2 on an Azure App Service. The application appears to start successfully, but it fails the HTTP health check on port 8080, and the site does not ...
0
votes
2
answers
69
views
Unable to completely isolate two PM2 installations on Windows
I am using PM2 (Node Process Manager) on Windows and need to run two separate PM2 installations at the same time (both in cluster mode).
I have two completely separated (isolated) installation ...
0
votes
1
answer
302
views
Node.js and Express application running on Azure App Service Linux using PM2 only works on port 8080
I am trying to use PM2 on Azure App Service Linux running a simple Node.js/Express application. The configuration file for PM2 is like this:
module.exports = {
apps: [
{
name: "myapi&...
0
votes
1
answer
293
views
running next-js on Nginx server gives 404 error on resources and links
Im hosting nextJs site on nginx.
this is my config :
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html/;
index index.html index.htm ...
1
vote
0
answers
73
views
Uploaded images only display after running pm2 restart all
I'm facing an issue with my Next.js application deployed on a server. When I upload an image, it doesn't display immediately. Instead, I have to run pm2 restart all to see the uploaded image on the ...
0
votes
1
answer
43
views
Problem connection between frontend and backend on same VPS
I have done a web app and installed on VPS frontend and backend together. The frontend is on domain and the backend is on subdomain. I have a problem with connection between them, i get this error:
...
2
votes
1
answer
156
views
Pm2 process stops running automatically in ubuntu server
I have a node chat application that needs to keep running on my server (ubuntu with nginx). The problem is that the application stops after a few days without any error. When I check on the server I ...
1
vote
1
answer
749
views
Disable pm2 logs
I am running node app via pm2 this way:
pm2 start npm -- start --node-args="--max-old-space-size=1024"
and package.json includes:
{
"name": "my-app",
"version&...
0
votes
0
answers
60
views
NodeJs SplunkSDK Get Api getting 500 Internal server error before the actual response received
I am new to Node js. I am using NodeJS pm2 and [email protected]. Requirement is to get splunk data as a response.
module.exports.executeSearch = function (query, params, cb) {
...