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

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed on node 9.2.1 #48

Closed
johnykov opened this issue Jan 26, 2018 · 1 comment
Closed

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed on node 9.2.1 #48

johnykov opened this issue Jan 26, 2018 · 1 comment

Comments

@johnykov
Copy link

johnykov commented Jan 26, 2018

Hi, I see there is a problem on node 9.2.1 while sending kill -s SIGUSR2 51865

my server.js file is

const express = require('express')
const app = express()

app.get('/', (req, res) => res.send('Hello World!'))

app.listen(3000, () => console.log('Example app listening on port 3000!'))

and cluster.js taken from your example

$ node cluster.js
spawned cluster, kill -s SIGUSR2 51865 to reload
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Got SIGUSR2, reloading cluster...
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
Example app listening on port 3000!
events.js:136
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
    at Worker.send (internal/cluster/worker.js:40:28)
    at killTimeout (/Users/jankowalski/3prty/JS/my-recluster/node_modules/recluster/index.js:134:24)
    at EventEmitter.workerReplaceTimeoutTerminate (/Users/jankowalski/3prty/JS/my-recluster/node_modules/recluster/index.js:111:9)
    at EventEmitter.emit (events.js:159:13)
    at emit (/Users/jankowalski/3prty/JS/my-recluster/node_modules/recluster/index.js:53:19)
    at EventEmitter.workerDisconnect (/Users/jankowalski/3prty/JS/my-recluster/node_modules/recluster/index.js:148:36)
    at EventEmitter.emit (events.js:159:13)
    at ChildProcess.worker.process.once (internal/cluster/master.js:207:13)
    at Object.onceWrapper (events.js:254:19)

works fine on node 8.2.1

@f8k8 f8k8 mentioned this issue Jul 4, 2018
elmccarthy added a commit to elmccarthy/recluster that referenced this issue Aug 9, 2019
vhadianto added a commit to vhadianto/neo-recluster that referenced this issue Oct 7, 2019
@JohnXLivingston
Copy link

Is recluster still maintained? I have the same issue with node v10.19.0. It seems @f8k8 has a fix, but the PR is not accepted yet.

spion added a commit that referenced this issue Mar 11, 2020
@spion spion closed this as completed Apr 15, 2021
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