-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Running reloadLogs while run as a non-root user causes process to not release and hang #4781
Comments
Previously, when the pm2 reloadLogs command was running as a non-root user, the process will not release and hangs. The reason for the hang is that the forked process never closes because the object is empty and doesn't contain the expected object. This commit checks if an object exists first, before trying to execute methods on it. Related to: Unitech#4781 Co-authored-by: Franck Danard <fdanard@sangoma.com>
Previously, when the pm2 reloadLogs command was running as a non-root user, the process will not release and hangs. The reason for the hang is that the forked process never closes because the object is empty and doesn't contain the expected object. This commit checks if an object exists first, before trying to execute methods on it. Related to: Unitech#4781 Co-authored-by: Franck Danard <fdanard@sangoma.com>
I submitted a patch for this, but unsure if it's the correct fix. It also seems to have broken tests which is concerning. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think it is a mistake to label this as stale, I'm still waiting on a response to my questions. I would like to help out if I can! |
published in pm2@4.5.0 npm install pm2@latest -g |
Previously, when the pm2 reloadLogs command was running as a non-root user, the process will not release and hangs. The reason for the hang is that the forked process never closes because the object is empty and doesn't contain the expected object. This commit checks if an object exists first, before trying to execute methods on it. Related to: Unitech#4781 Co-authored-by: Franck Danard <fdanard@sangoma.com>
What's going wrong?
Running reloadLogs while run as a non-root user causing process to not release and hang.
How could we reproduce this issue?
Reproducible in the FreePBX 15 Distro running the pm2 module version 15.0.3.7. Upgraded module manually to PM2 4.4.0 and the issue still persists.
Supporting information
Logs:
The text was updated successfully, but these errors were encountered: