Closed Loafter closed 7 months ago
Yes we are aware of this bug, a simple fix is to just remove all of agentPing,agentPong,browserPing,browserPong
from ur config.json and it will carry on working as normal, I will look into why this is happening when I get chance!
Thanks! for anwer. but if i remove this options from config, my remote nodes dissapear randomly. What root of this case? if you need any details logs i can provide it for you)
basically its a bug thats needs investigating...
websockets have there own ping/pong behaviour/method so you would never need to use agentPing,agentPong,browserPing,browserPong
HOWEVER some firewalls/environments block these ping/pong events in websockets so the devices can appear offline (as you are experiencing)
agentPing,agentPong
are extra method thats implemented that run every X seconds you set ontop of the websockets to keep the connection alive
but the must be an issue where it thinks the device is not actually online, and disconncting your session even tho the device is actually online? so hense... ITS A 🐞
MY NOTES: found commit where the noping was removed and replaced with something else https://github.com/Ylianst/MeshCentral/commit/93e8f2cdcf1067634908aabeb607a227404ccfbc
but if i remove this options from config, my remote nodes dissapear randomly. What root of this case?
Bad network hardware routers/NAT/VPN that are shortening TTLs on TCP sessions and dropping them artificially fast. ping/pong is basically artificially generating traffic to keep the TCP session alive to keep resetting the timeout before NATS tosses the mapping as "expired"
Monitor your sessions in your router, and you'll see sessions disappearing. Find the culprit equipment/tech in your stack.
@silversword411 fix for the rdp dropping out is here https://github.com/Ylianst/MeshCentral/pull/5786
It was basically sending the ping ok, the agent was replying pong, then meshcentral decides to try sending the pong to the rdp server, so the rdp server goes sod that and disconnects. What it should be doingel is sending the pong to the web browser instead Doh!
Mescentrall RDP lost connection after (ping pong =25) amount of time. just set one of ANY of this ping pong param "BrowserPong": 20, "AgentPong":20, "BrowserPing": 25, "AgentPing":25, connect to any windows machine, it will drop connection after 25 second mesconnection works fine, and don't drop connection!
Server Software (please complete the following information):
Client Device (please complete the following information):
Remote Device (please complete the following information):
Lighthttpd config
Config