Ylianst / MeshCentralAssistant

Tray icon tool for the MeshCentral Agent. It displays the state of the agent, you can start and stop the agent and request help.
https://meshcentral.com
Apache License 2.0
36 stars 26 forks source link

Guest Sharing crashing the MeshCentral server #31

Open dxdemetriou opened 1 year ago

dxdemetriou commented 1 year ago

The error:

/opt/meshcentral/node_modules/meshcentral/meshrelay.js:978 const command = { nodeid: node._id, action: 'msg', type: 'tunnel', value: '*/' + xdomain + 'meshrelay.ashx?p=' + obj.req.query.p + '&id=' + obj.id + '&rauth=' + rcookie + '&nodeid=' + node._id, soptions: {}, rights: cookie.r, guestuserid: user._id, guestname: cookie.gn, consent: cookie.cf, remoteaddr: cleanRemoteAddr(obj.req.clientIp) }; ^

TypeError: Cannot read properties of null (reading '_id') at /opt/meshcentral/node_modules/meshcentral/meshrelay.js:978:261 at /opt/meshcentral/node_modules/meshcentral/db.js:2250:29 at /opt/meshcentral/node_modules/mongodb/lib/utils.js:371:9 at /opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:260:32 at /opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:510:55 at /opt/meshcentral/node_modules/mongodb/lib/utils.js:371:9 at /opt/meshcentral/node_modules/mongodb/lib/sessions.js:136:24 at maybePromise (/opt/meshcentral/node_modules/mongodb/lib/utils.js:357:5) at ClientSession.endSession (/opt/meshcentral/node_modules/mongodb/lib/sessions.js:133:41) at cleanupCursor (/opt/meshcentral/node_modules/mongodb/lib/cursor/abstract_cursor.js:557:32)

buckybytes commented 5 months ago

This repository is for the MeshCentral Assistant program. I believe you are looking for the MeshCentral repository:

Which is here