Upgrade to 1.4.0 - Issues with websocket?
-
Hi,
I tried to upgrade from an v1 weekly build to the 1.4.0. I had to upgrade nodejs to version 4.7.0 to run the upgrade script, but then it worked.
But when I try to startup the server, the following error message shows on the first hit:20/12 13:32:33 [21369] - info: Enabling 'trust proxy' 20/12 13:32:33 [21369] - info: NodeBB is now listening on: 0.0.0.0:4567 20/12 13:33:06 [21369] - error: TypeError: Cannot read property 'prototype' of undefined at Server.onWebSocket (/srv/nodebb/node_modules/engine.io/lib/server.js:358:40) at /srv/nodebb/node_modules/engine.io/lib/server.js:343:12 at completeHybiUpgrade2 (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:284:5) at completeHybiUpgrade1 (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:309:13) at WebSocketServer.handleHybiUpgrade (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:337:3) at WebSocketServer.handleUpgrade (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:173:26) at /srv/nodebb/node_modules/engine.io/lib/server.js:342:13 at Server.verify (/srv/nodebb/node_modules/engine.io/lib/server.js:142:12) at Server.handleUpgrade (/srv/nodebb/node_modules/engine.io/lib/server.js:331:8) at Server.<anonymous> (/srv/nodebb/node_modules/engine.io/lib/server.js:451:14) at emitThree (events.js:97:13) at Server.emit (events.js:175:7) at onParserExecuteCommon (_http_server.js:409:14) at HTTPParser.onParserExecute (_http_server.js:377:5) TypeError: Cannot read property 'prototype' of undefined at Server.onWebSocket (/srv/nodebb/node_modules/engine.io/lib/server.js:358:40) at /srv/nodebb/node_modules/engine.io/lib/server.js:343:12 at completeHybiUpgrade2 (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:284:5) at completeHybiUpgrade1 (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:309:13) at WebSocketServer.handleHybiUpgrade (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:337:3) at WebSocketServer.handleUpgrade (/srv/nodebb/node_modules/ws/lib/WebSocketServer.js:173:26) at /srv/nodebb/node_modules/engine.io/lib/server.js:342:13 at Server.verify (/srv/nodebb/node_modules/engine.io/lib/server.js:142:12) at Server.handleUpgrade (/srv/nodebb/node_modules/engine.io/lib/server.js:331:8) at Server.<anonymous> (/srv/nodebb/node_modules/engine.io/lib/server.js:451:14) at emitThree (events.js:97:13) at Server.emit (events.js:175:7) at onParserExecuteCommon (_http_server.js:409:14) at HTTPParser.onParserExecute (_http_server.js:377:5)
I already tried to delete the node_modules and reinstalled them with
npm install --production
but nothing changed.
What can I do?
Copyright © 2024 NodeBB | Contributors