Skip to content

How to debug connection issues #3672

Answered by Ylianst
rallisf1 asked this question in Q&A
Discussion options

You must be logged in to vote

A few things here. On Windows, you can run the agent like this:

meshagent.exe run

This will run the agent from the command line and you will see the agent connecting, retrying, etc. This can help with debug. Also, the agent will connect to the server using a long standing websocket connection. Some firewalls, HTTP proxies, load balances, reverse-proxies, etc do not like idle connections and will automatically close them. To fix this, try one of these lines in the settings section of the config.json:

"agentping": 30,            <-- Ping the agent every 30 seconds and have the agent reply with a pong response.
"agentpong": 30,            <-- Pong the agent every 30 seconds, agent will not …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rallisf1
Comment options

Answer selected by Ylianst
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants