Is it possible to stop or disable a pm2 module ?
I did install the pm2-logrotate module but recently the community found an issue which is affecting our services and we need to stop or disable the module in top priority.
The module is continuously…
We are using node module pm2 to run the server and capturing application logs.
But as the traffic is very huge, huge data is getting stored in single file which are around more than 100Gb.
Is there any possibility that we change the file every 1…
I have following settings set for PM2 Logrotate:
rotateInterval= * * 23 * * *
max_size= 100MB
I want to rotate the logs every 23 hours and/or keep max 100MB log files. But for some odd reason, the PM2 Logrotate keeps rotating / creating new log…
I'm having troubles with pm2.
I'm using a module called pm2-logrotate but the logs have a huge gize like 1.7G and don't respect my configuration which is
== pm2-logrotate ==
┌────────────────┬───────────────┐
│ key │ value …
Nodejs was running on PM2 for a long time. And there is a corn which clears PM2 logs everyday
0 0 * * * find /home/user/.pm2/logs* -mtime +2 -exec rm -rf {} \;
Below error occurred for 1000 times and then pm2 stopped working and then when I…
How can I set log rotate to, /var/log/messages files,
all the files with the name "messages",
rotate every 4 days (to keep last 4 files),
not to generate any error messages??
/var/log/messsages-* {
dateext
maxage 3
rotate 4
missingok
nocompress
}
Is…
I am currently using a PM2 ecosystem file ecosystem.config.js to start multiple Node.js apps using PM2.
module.exports =
{
"apps": [
{
"name": "foo",
"script": "./foo.js",
},
{
"name": "bar",
"script":…
pm2 start --node-args="-r dotenv/config" node_modules/react-scripts/bin/react-scripts.js --name app -- start dotenv_config_path=.env.$NODE_ENV
this script works
i want this one to work as well:
pm2 start ecosystem.json --env env_development
where…
I was wondering if there is a way to set different logrotation configs for different pm2 apps running. Like I am running 4 different node applications using pm2 but all of them are taking the same logrotation configs I set using pm2-logrotate…
I made the react app by cra in typescript. I tried to deploy by pm2, so I set the shell script like this.
startup.sh
#!/bin/bash
npm install
# Install pm2 globally
npm install -g pm2
pm2 install pm2-logrotate
pm2 set pm2-logrotate:rotateInterval 50…
Hi I have implemented pm2.Now I am getting timestamp in each line.
//Current log
2021-05-04T00:34:49: { MongoError: server instance pool was destroyed
2021-05-04T00:34:49: at Function.MongoError.create…
Few days ago, my webapp stopped work, i checked on the server and it was stopped in pm2 and didn't want restart.
I figured that the disk was full (25Gb) so i took an upgrade to 80Gb and installed logrotate but today, 2 days after, the disk is full…
I am trying to install pm2 logrotate on ubuntu server. I run the command
pm2 install pm2-logrotate
I get the following error
[PM2][Module][ERROR] Unknown module
Any ideas on what could be wrong?