[ECK] 404 error for elastic agent running on ec2 host

We are using ECK method of installation which is hosted on EKS in AWS account, where Fleet is also installed.
We want to monitor ec2 instances and collect logs using an elastic agent which is managed by Fleet, hosted in the EKS cluster.

The error that i am getting when enrolling the agent is like below

sudo ./elastic-agent install --url=https://<base-fqdn>/fleet --enrollment-token=xxxxxxxx==
Elastic Agent is installed but currently broken: service exists but installation path is missing
Continuing will re-install Elastic Agent over the current installation at /opt/Elastic/Agent. Do you want to continue? [Y/n]:Y
{"log.level":"info","@timestamp":"2023-11-28T14:12:44.607Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":479},"message":"Starting enrollment to URL: https://<base-fqdn>//fleet","ecs.version":"1.6.0"}
Error: fail to enroll: fail to execute request to fleet-server: could not decode the response, raw response: 404 page not found

fleet server host is https://fleet-server-agent-http.elastic-cloud.svc:8220(default) which gets traffic forwarded by the Load balancer.

fleet version v1.3.1
agent version 8.10.3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.