Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only rotate the first process while running in cluster mode? #143

Open
will- opened this issue Dec 25, 2019 · 9 comments
Open

only rotate the first process while running in cluster mode? #143

will- opened this issue Dec 25, 2019 · 9 comments

Comments

@will-
Copy link

will- commented Dec 25, 2019

I am running apps in cluster mode with 6 instances and I find that only the first instance's log is rotated. Am I missing something?

@Eivlys
Copy link

Eivlys commented Jan 10, 2020

I got the same problem, how to fix this?

@ddolcimascolo
Copy link

Hitting this as well :/ I'm reverting to using plain old logrotate

@yeareater
Copy link

I got same issue.
After downgrade(2.7.0 -> 2.6.0), it works fine

@marcelo-lopes
Copy link

Got the same issue.

On version 2.7.0 only one of the process id (1 of 4) was being rotated.
image

process 63 was ok, but not the others:
image

Downgrade to 2.6.0 solved the issue.

@ehsanm94
Copy link

ehsanm94 commented Oct 23, 2020

I got same issue for both cluster and fork modes.
pm2-logrotate version 2.7.0

merging PR #158 may help. @Unitech

@gopalkohli
Copy link

yes fixed by version 2.6.0
pm2 install pm2-logrotate@2.6.0

@ronald-hove
Copy link

Use the --merge-logs flag when running your app in cluster mode

pm2 start [app-name].js --merge-logs -n [process-name] -i [number-of-processes] 

@LazuLitee
Copy link

Still an issue but the --merge-logs flag is a suitable workaround

@deweiye-houzz
Copy link

encountered same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants