You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
I'm running fleet-server and elastic-agent.
What did you expect to see?
I expect elastic-agent to connect to the fleet server
What did you see instead? Under which circumstances?
elastic-agent is trying to connect to fleet at address fleet-server-agent-http.elastic0.svc, but the real address is fleet-server0-agent-http.elastic0.svc
Logs looke like this
WARN [transport] transport/tcp.go:52 DNS lookup failure "fleet-server-agent-http.elastic0.svc": lookup fleet-server-agent-http.elastic0.svc on 10.43.0.10:53: no such host
ERROR fleet/fleet_gateway.go:180 failed to dispatch actions, error: fail to communicate with updated API client hosts: Get "https://fleet-server-agent-http.elastic0.svc:8220/api/status?": lookup fleet-server-agent-http.elastic0.svc on 10.43.0.10:53: no such host
When executing into a running container, the address in the configuration files is correct
Hey @Raboo, can you check Kibana UI (Fleet > Fleet Settings) and see what URL is there? The fleet-setup.yml is only responsible for the setup part. After setup (enrolment and initial connection to Fleet Server) is done, Fleet Server passes the hosts that are specified in Kibana to all Elastic Agents to connect to. It seems to me that trying to connect to those hosts fails.
If that happens to be your issue, please note that right now Kibana won't use updated values of xpack.fleet.agent.* config settings after they've been set once. You have to update them via UI.
Please let me know if this is indeed the issue you were hitting, if not I'd be glad to investigate further.
Bug Report
What did you do?
I'm running fleet-server and elastic-agent.
What did you expect to see?
I expect elastic-agent to connect to the fleet server
What did you see instead? Under which circumstances?
elastic-agent is trying to connect to fleet at address
fleet-server-agent-http.elastic0.svc
, but the real address isfleet-server0-agent-http.elastic0.svc
Logs looke like this
When executing into a running container, the address in the configuration files is correct
Environment
I have a little different yaml manifest because another bug #4790
The text was updated successfully, but these errors were encountered: