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 Daemon Dying in Prod #912

Closed
bartspedden opened this issue Dec 31, 2014 · 2 comments
Closed

PM2 Daemon Dying in Prod #912

bartspedden opened this issue Dec 31, 2014 · 2 comments

Comments

@bartspedden
Copy link

Here's some environment information to start with

OS: Linux d6proddisp4 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
PM2: 0.12.1
NodeJS: v0.11.14

We are using the the generated init scripts to start/stop pm2.

We have 2 application running - each with 4 workers.

Over the past 3 weeks we have the PM2 God Daemon die 3 times with the following message showing up in the pm2.log

Error: channel closed
    at ChildProcess.target.send (child_process.js:413:26)
    at sendHelper (cluster.js:657:8)
    at RoundRobinHandle.handoff (cluster.js:198:3)
    at RoundRobinHandle.distribute (cluster.js:184:20)

Any ideas what might be causing this?

@Unitech
Copy link
Owner

Unitech commented Dec 31, 2014

nodejs/node-v0.x-archive#8792 as we wait for this bug fix, we will make a hotfix (not very clean) on the PM2 side.

If you want to avoid this use the fork mode instead (or multiple process forked on different ports then nginx balancing requests between these processes)

@Unitech
Copy link
Owner

Unitech commented Jan 28, 2015

Patch-Fixed on 0.12.4

@Unitech Unitech closed this as completed Jan 28, 2015
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

3 participants