MeshCentral: MeshCentral crashes when using the RelayPort
Describe the bug When you click the HTTPS link of a device the MeshCentral service crashes and restarts
To Reproduce
- enable RelayPort
- go to a device
- click HTTPS
- check log
Expected behavior Page should open
Log
ERR: /meshcentral/node_modules/meshcentral/apprelays.js:184
for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].end(); } else { pendingRequests[i][1].close(); } }
^
TypeError: pendingRequests[i][1].close is not a function
at close (/meshcentral/node_modules/meshcentral/apprelays.js:184:139)
at handleNextRequest (/meshcentral/node_modules/meshcentral/apprelays.js:129:31)
at Object.tunnel.onclose (/meshcentral/node_modules/meshcentral/apprelays.js:153:13)
at Object.obj.close (/meshcentral/node_modules/meshcentral/apprelays.js:361:32)
at WebSocket.<anonymous> (/meshcentral/node_modules/meshcentral/apprelays.js:423:117)
at WebSocket.emit (node:events:527:28)
at WebSocket.emitClose (/meshcentral/node_modules/ws/lib/websocket.js:172:10)
at Socket.socketOnClose (/meshcentral/node_modules/ws/lib/websocket.js:781:15)
at Socket.emit (node:events:527:28)
at TCP.<anonymous> (node:net:715:12)
Node.js v17.9.1
Error: Command failed: /usr/local/bin/node /meshcentral/node_modules/meshcentral/meshcentral.js --launch 7
Server Software:
- Virtualization: Docker container based on node:17-buster-slim
- Network: Traefik reverse proxy in front (also proxying the RelayPort)
- MeshCentral Version: 1.0.43
- Node: v17.9.1
- Browser: Google Chrome
Remote Device (please complete the following information):
- Device: macBook Pro M1-Pro
- OS: macOS Monterey 12.4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (3 by maintainers)
Hi! I just updated to version 1.0.46 and problem with NAS server has been solved. Now everything works correctly.
Thank you very much!
I have a similar problem, I assume it will be the same.
When I web relay to a server the Meshcentral service restarts.
The server is a NAS OMV. I have another OMV NAS with the same version and it works fine.
The difference between one and the other is that the one that works is in the same network as the Meshcentral server, the one that causes the error is in another location and accesses from the outside through the reverse proxy.
I comment here the error that gives me:
ill add this to my feature request issue! i was literally just thinking this as i cant access say portainer running on 9000,
this issue is actually a BUG