ScriptaGames / zorbio

A 3D multiplayer WebGL game
MIT License
8 stars 1 forks source link

Server crash #551

Open Jared-Sprague opened 6 years ago

Jared-Sprague commented 6 years ago

Noticed the server crashed this morning because of this error, should investigate and fix. Looks like websocket not open. Should probably check for this before every send().

Server crashed [12/01/2017 12:18:07.493] [ERROR] Error: not opened at WebSocket.send (/usr/share/games/zorbio/node_modules/ws/lib/WebSocket.js:358:18) at Array. (/usr/share/games/zorbio/server/ServerPlayer.js:23:16) at ZORAbility.ZORSpeedBoostAbilityUpdate [as update] (/usr/share/games/zorbio/common/zorbio.js:709:38) at ZORPlayerUpdate [as update] (/usr/share/games/zorbio/common/zorbio.js:566:17) at updateEachPlayer (/usr/share/games/zorbio/server/AppServer.js:545:20) at Array.forEach (native) at AppServer.appPlayerUpdates [as playerUpdates] (/usr/share/games/zorbio/server/AppServer.js:544:28) at appServerTickFast (/usr/share/games/zorbio/server/AppServer.js:976:14) at Timeout.gameLoop [as _onTimeout] (/usr/share/games/zorbio/node_modules/node-gameloop/lib/gameloop.js:61:4) at ontimeout (timers.js:386:11) [12/01/2017 12:50:51.981] [WARN] All game instances full!

Server restarted [12/01/2017 12:18:07.495] [LOG] Node server stopped.

Jared-Sprague commented 6 years ago

The exact same crash happened again today, this time on one of the dallas nodes. Someone on reddit reported it: https://www.reddit.com/r/WebGames/comments/7gnb2z/zorbio_remastered_major_updates_to_this_spacey_3d/dqmv1dh/

0|zorbio-0 | [12/01/2017 23:48:52.999] [ERROR] Error: not opened 0|zorbio-0 | at WebSocket.send (/usr/share/games/zorbio/node_modules/ws/lib/WebSocket.js:358:18) 0|zorbio-0 | at Array. (/usr/share/games/zorbio/server/ServerPlayer.js:23:16) 0|zorbio-0 | at ZORAbility.ZORSpeedBoostAbilityUpdate [as update] (/usr/share/games/zorbio/common/zorbio.js:709:38) 0|zorbio-0 | at ZORPlayerUpdate [as update] (/usr/share/games/zorbio/common/zorbio.js:566:17) 0|zorbio-0 | at updateEachPlayer (/usr/share/games/zorbio/server/AppServer.js:545:20) 0|zorbio-0 | at Array.forEach (native) 0|zorbio-0 | at AppServer.appPlayerUpdates [as playerUpdates] (/usr/share/games/zorbio/server/AppServer.js:544:28) 0|zorbio-0 | at appServerTickFast (/usr/share/games/zorbio/server/AppServer.js:976:14) 0|zorbio-0 | at Timeout.gameLoop [as _onTimeout] (/usr/share/games/zorbio/node_modules/node-gameloop/lib/gameloop.js:61:4) 0|zorbio-0 | at ontimeout (timers.js:386:11)

[12/01/2017 23:48:53.002] [LOG] Node server stopped.