has anyone encountered this annoying error, i tried deleting re trying nothing seems to work.
Hi @Ahmad3 Please don't post screenshot of text... it is unreadable for many and you will and can not be searched or debugged.
Please review the troubleshooting, although my first guess is a Firewall as the message says unreachable, the message is right there ... please try to curl the fleet endpoint with proper https and port from the server you are trying to install the agent.
This is a connectivity issue... being actively refused by the host... this is most likely a firewall issue not an agent issue
Ping does not validate connectivity to host and port via tcp
Did you try to telnet from this agent host to that host and port where fleet is?
telnet 10.0.2.15 8220
What is the result from that?
What is the result of this from the agent host
curl -k -v https://10.0.2.15:8220
Also what is you enrollment command ... are you using self signed certs?
If so you need to use the
--insecure
flag
as documented
--insecure
Allow the Elastic Agent to connect to Fleet Server over insecure connections. This setting is required in the following situations:
- When connecting to an HTTP server. The API keys are sent in clear text.
- When connecting to an HTTPs server and the certificate chain cannot be verified. The content is encrypted, but the certificate is not verified.
- When using self-signed certificates generated by Elastic Agent.
We strongly recommend that you use a secure connection.