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

PM2 leaves Zombie processes on host system #66

Open
lukaslindnermusic opened this issue Feb 8, 2025 · 1 comment
Open

PM2 leaves Zombie processes on host system #66

lukaslindnermusic opened this issue Feb 8, 2025 · 1 comment

Comments

@lukaslindnermusic
Copy link

Hi 😊

Since installing immich-public-proxy on my server, I noticed that every once in a while, there are zombie processes.
I previously never had zombie processes on my system, so I checked what is causing the processes.

The processes are the wget cmd, apparently executed by dist/index.js, caused by pm2-runtime which is started by the docker container of immich-public-proxy.
I don't know, what exactly is causing the zombie processes, but here is an excerpt of my docker container log with the PM2 messages:

2025-02-08T00:12:38: PM2 log: Stopping app:index id:0
2025-02-08T00:12:38: PM2 error: Error: spawn ps ENOENT
2025-02-08T00:12:39: PM2 log: App [index:0] exited with code [0] via signal [SIGINT]
2025-02-08T00:12:39: PM2 log: pid=18 msg=process killed
2025-02-08T00:12:39: PM2 log: PM2 successfully stopped
2025-02-08T00:13:14: PM2 log: Launching in no daemon mode
2025-02-08T00:13:14: PM2 log: App [index:0] starting in -fork mode-
2025-02-08T00:13:14: PM2 log: App [index:0] online

Is this caused by something in the immich-public-proxy code or is it a bug in dependencies?

Thanks for your help 😊

@alangrainger
Copy link
Owner

Thanks for the info - I was thinking of removing PM2 anyway, as I'm not convinced it does anything useful. That should solve the issue after I do that.

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

2 participants