ryanblenis / MeshCentral-WorkFromHome

Work From Home Plugin for the MeshCentral2 Project
Apache License 2.0
17 stars 4 forks source link

Random Disconnects #9

Open 12nick12 opened 3 years ago

12nick12 commented 3 years ago

Hi, I have a server running in debug.

Anything you'd like to troubleshoot why it's randomly disconnecting?

12nick12 commented 3 years ago

When it does this is the error we get. I'm able to reconnect right after

image

openncomp commented 2 years ago

Hi, thanks for the interesting and useful plugins for MeshCentral! I get the same message as in the screenshot above: "this session will be terminated due to a data encryption error."

openncomp commented 2 years ago

I found what the problem is! I do not know for sure if this is a plugin problem or a MeshCentral problem, but if in the config config.json in MeshCentral Server one of the settings is specified: "AgentPing": XX, "AgentPong": XX, Where XX is the value of seconds, then disconnection occurs exactly through this value of XX seconds.

If you comment out these settings in config.json, the plugins work fine. Moreover, this also applies to other plugins from dear @ryanblenis. For example, "MeshCentral-Route Plus" constantly breaks any connection specified in the settings after the specified XX seconds.

P.S. MeshCentral - 1.0.26