-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agents are slow to connect if they are not "local" #6682
Comments
It's actually erroring, normally it connects within seconds of starting the agent. Are there network measures in place which can slow it down? |
Hi! No there are not. At least I can't think of anything. |
I see these lines in apace error and access log..
|
Apache2 reverse proxies are a bit more difficult with MeshCentral, if possible can you also try with NGINX? Just to isolate the problem? For quick deployment you can use NGINX Proxy Manager. |
Unfortunately I have multipe sites configured on that machine an d i can't just switch the reverse proxy...i must fix it in apache :/ |
@mdalacu the was meshagent works with its reconnects is after X miliseconds, it will try to reconnect again, your logs are showing that your apache is struggling to connect to your meshcentral server the OS you have says Ubuntu, then you can determine which ports are being using, |
Hi si458! Thank you for answering.
I also attach the apache2 config Maybe you spot something wrong...
They are not on the same machine (reverse proxy and meshcentral ) but on the same internal lan. Thank you |
your config.json isnt quite setup correctly
also what happens if you visit https://meshcentralip in your web browser? |
Thank you for correcting my config.json. What is wird and I forget to mention..all local agents are comming with an unique IP address but a V6 one, even if on the clients i have disable ipv6... What else can I do? |
the issue will be because the agents are struggling to connect to your server for some reason also you seem to be having problems between your apache and your meshcentral server
its showing error 502 error from meshcentral which isnt a good sign also 339435 miliseconds is 5(ish) mins before it will try to connect so you just have to be patient and wait for them to reconnect OR restart the meshagent manually on the remote device |
The site in the browser is instant opened on a remote device, a local one or on my prone through gprs. EDIT: If i restart the agent it will take the same for it to connect...> 15 min..even one hour |
...But If i put the internal/external IP of the reverse proxy (which is exposed throuht 443 on thje internet) than i get an error....I think it is a normal behavior since i have multiple sites exposed.
Is the e agent using the IP to connect to meshcentral in the url not the server name as it is written in msh file? Does it cache the name resolution to save same cpu clicks? |
yes you WONT be able to see |
i think your apache config is incorrect, try the config example from here #317 (comment)
|
I have modified the rewrite rule and the result is the same...
If you mean GUI - Agent - Consloe - info..then the Server URL it is ok... |
Does meshcentral make use of port 80...because I don't do anything on the reverseproxy side to it...only redirect to 443 ?.
Thx. |
@si458 Thank you very much for your support and Mesh Central is the best!!! |
Describe the bug
Agents are slow to connect if they are not "local".
It takes over 15 minutes for them to connect. Here it is an example:
This is form internal network, from outside it is the same.
After it connects the agent stays online for days without any problem.
It does not matter if i restart the agent or not..same delay.
If in msh i put "local" from internal network it connects instantly.
The web server it is working perfectly from inside/outside.
I am using an apache2 reverse proxy.
Its happening to me since day one...about six months ago ...but if I am not loosing my mind it is getting worse with updates...😅
Thank you for your support.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The agent to connect to server in a short amount of time.
Screenshots
If applicable, add screenshots to help explain your problem.
Server Software (please complete the following information):
Client Device (please complete the following information):
Remote Device (please complete the following information):
Additional context
Add any other context about the problem here.
Your config.json file
The text was updated successfully, but these errors were encountered: