question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem when running with new workers implementation

See original GitHub issue

Seems it losing context between processes or something ( I have told it to spawn several processes either). I’m just running forever start index.js and this error occures when the client tries to join. I’m using 0.7.0-alpha.3 on the client with: client.join(‘room’); , a note is that it works fine “localhost”, this is behind an nginx. But tried the “stable” version and they worked fine with the nginx config. but got into some other problems with that. So would need to run the latest versions 😃

data:    dist/index.js:6306 - process wants to communicate directly with pid (6320)
data:    dist/index.js:6306 - process 6320 is responding to JOIN_ROOM
data:    dist/index.js:6306 - process wants to communicate directly with pid (6321)
data:    dist/index.js:6306 - /var/www/c-c-c-combo/backend/node_modules/colyseus/lib/MatchMaker.js:85
data:    dist/index.js:6306 -         client.sessionId = clientOptions.sessionId;
data:    dist/index.js:6306 -                                         ^
data:    dist/index.js:6306 - TypeError: Cannot read property 'sessionId' of undefined
data:    dist/index.js:6306 -     at MatchMaker.onJoin (/var/www/c-c-c-combo/backend/node_modules/colyseus/lib/MatchMaker.js:85:41)
data:    dist/index.js:6306 -     at Server.<anonymous> (/var/www/c-c-c-combo/backend/node_modules/colyseus/lib/cluster/Worker.js:41:20)
data:    dist/index.js:6306 -     at emitOne (events.js:96:13)
data:    dist/index.js:6306 -     at Server.emit (events.js:188:7)
data:    dist/index.js:6306 -     at Server.emitConnection [as _upgradeCallback] (/var/www/c-c-c-combo/backend/node_modules/uws/uws.js:15:10)
data:    dist/index.js:6306 -     at Server.native.server.group.onConnection (/var/www/c-c-c-combo/backend/node_modules/uws/uws.js:465:18)
data:    dist/index.js:6306 -     at Socket.socket.on (/var/www/c-c-c-combo/backend/node_modules/uws/uws.js:502:32)
data:    dist/index.js:6306 -     at emitOne (events.js:101:20)
data:    dist/index.js:6306 -     at Socket.emit (events.js:188:7)
data:    dist/index.js:6306 -     at TCP._handle.close [as _onclose] (net.js:497:12)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Tazercommented, Jul 14, 2017

Absolutely, sounds great. You can absolutely do that 👌

0reactions
endelcommented, Jul 14, 2017

@Tazer I thank you 😃 very interesting! I’m about to publish a blog post this month with a couple of games, may I use yours + link to your GitHub profile there (or another link of your choice)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

12 Common Problems With Onboarding New Hires in 2022 ...
One of the main priorities of any HR department is to ensure a smooth onboarding process. Here are 12 common employee onboarding problems...
Read more >
Implementing a New Process: What Will Happen to Workplace ...
New processes can change the way tasks are performed, alter the organizational structure and sometimes eliminate responsibilities or even jobs.
Read more >
Implementing a New System in the Workplace? Here Are 3 ...
3 common ways employees derail software implementation · 1. Old habits (and systems) die hard · 2. Super-users have taken over · 3....
Read more >
How to Implement New Work Processes Successfully
1. Explain the need for the change. Clear communication is essential for a smooth transition to new processes. · 2. Get buy-in from...
Read more >
Effective Strategies for Working with Problem Employees
Making an effort to ensure from the start that new employees have the right attitude for the position reduces the chances that they...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found