Open Jared-Sprague opened 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.
[12/01/2017 23:48:53.002] [LOG] Node server stopped.
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.