mafintosh / mafintosh/root

problems while executing polo with pm2 in cluster mode

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
44
Forks
9
PR merge metrics
No merged PRs in 30d

Description

when using polo an clustering my instances with for example 3 instances I get this error:

[registry-1 (err) 2014-02-10T08:08:00] AssertionError: false == true
[registry-1 (err) 2014-02-10T08:08:00] at Cluster.cluster._getServer (cluster.js:558:3)
[registry-1 (err) 2014-02-10T08:08:00] at listen (net.js:1065:11)
[registry-1 (err) 2014-02-10T08:08:00] at Server.listen (net.js:1127:5)
[registry-1 (err) 2014-02-10T08:08:00] at [object Object].Root.listen (/Users/adrai/Projects/my-prototype/registry/node_modules/polo/node_modules/root/index.js:191:18)
[registry-1 (err) 2014-02-10T08:08:00] at [object Object].Root.listen (/Users/adrai/Projects/my-prototype/registry/node_modules/polo/node_modules/root/index.js:160:49)
[registry-1 (err) 2014-02-10T08:08:00] at listen (/Users/adrai/Projects/my-prototype/registry/node_modules/polo/repository.js:211:6)
[registry-1 (err) 2014-02-10T08:08:00] at proxy (/Users/adrai/Projects/my-prototype/registry/node_modules/polo/repository.js:268:41)
[registry-1 (err) 2014-02-10T08:08:00] at polo (/Users/adrai/Projects/my-prototype/registry/node_modules/polo/index.js:7:13)
[registry-1 (err) 2014-02-10T08:08:00] at Object. (/Users/adrai/Projects/my-prototype/registry/server.js:2:27)
[registry-1 (err) 2014-02-10T08:08:00] at Module._compile (module.js:456:26)
[registry-1 (err) 2014-02-10T08:08:00] at Object.Module._extensions..js (module.js:474:10)
[registry-1 (err) 2014-02-10T08:08:00] at Module.load (/usr/local/lib/node_modules/pm2/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
[registry-1 (err) 2014-02-10T08:08:00] at Function.Module._load (module.js:312:12)
[registry-1 (err) 2014-02-10T08:08:00] at Module.require (module.js:364:17)
[registry-1 (err) 2014-02-10T08:08:00] at require (module.js:380:17)
[registry-1 (err) 2014-02-10T08:08:00] at WriteStream. (/usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:123:7)
[registry-1 (err) 2014-02-10T08:08:00] at WriteStream.EventEmitter.emit (events.js:95:17)
[registry-1 (err) 2014-02-10T08:08:00] at WriteStream. (fs.js:1660:10)
[registry-1 (err) 2014-02-10T08:08:00] at Object.oncomplete (fs.js:107:15)

any idea?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the pm2 cluster-mode failure and trace the stack from server.js through polo/index.js and polo/repository.js around lines 211 and 268. Read root/index.js around lines 160-191 and compare the cluster and non-cluster paths; done means the assertion no longer occurs for three instances and the behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.