MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

server keep going offline and back on

Open kylelliott opened this issue 2 years ago • 7 comments

Hi

i seem to have only one of server keeep going offline then back on again but i dont have any other doing same thing

kylelliott avatar Jul 18 '22 20:07 kylelliott

Sounds like you have a server/network connection that needs repair that has nothing to do with MeshCentral.

silversword411 avatar Jul 18 '22 21:07 silversword411

no as i vm on that server and they dont keep going offiine so

kylelliott avatar Jul 18 '22 21:07 kylelliott

Check the file "meshcentral-data/mesherrors.txt" and see if there are server exceptions in that file. If so, send over the errors you see. Server exceptions will cause the server to restart. Another way to see the same errors is to go in the "My Server" tab and hit "Show server error log" like this:

image

Ylianst avatar Jul 18 '22 22:07 Ylianst

...I don't think they mean MeshCentral server...I think they're talking about an agent keeps going offline/online.

silversword411 avatar Jul 19 '22 13:07 silversword411

Ha. Your probably right. If an agent keeps disconnecting and reconnecting, add this line to the "settings" section of the config.json:

"agentping": 30

This will cause MeshCentral to "ping" the agent every 30 seconds and the agent to respond with a "pong" each time. That usually solves the issue however, it does generate more traffic. If that works, you can remove the line and try this line instead:

"agentpong": 30

This will cause MeshCentral to "pong" the agent every 30 seconds, the agent will not respond. This usually fixes the issue, but you have half the traffic. I would also increase the time like:

"agentpong": 90

This is the best, you have one way traffic to all agents every 90 seconds. The larger the number you can get away with the better.

If you ever get the same problem but on the browser side, you can also use one of these:

"browserping": 30
"browserpong": 30

Same idea, browser side instead of agent side.

Hope that helps,

Ylianst avatar Jul 19 '22 19:07 Ylianst

Since that was so nicely written up! :)

silversword411 avatar Jul 19 '22 21:07 silversword411

Hi

all those setting in my config files

kylelliott avatar Jul 26 '22 22:07 kylelliott

@si458 can close

dinger1986 avatar Nov 26 '23 12:11 dinger1986