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

**URL:** https://discuss.elastic.co/t/eck-404-error-for-elastic-agent-running-on-ec2-host/348152
**Category:** Elastic Agent
**Created:** [November 28, 2023, 2:23pm UTC](https://discuss.elastic.co/t/eck-404-error-for-elastic-agent-running-on-ec2-host/348152 "2023-11-28T14:23:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nitesh.singh](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@nitesh.singh](https://discuss.elastic.co/u/nitesh.singh)
#### Post date: [November 28, 2023, 2:23pm UTC](https://discuss.elastic.co/t/eck-404-error-for-elastic-agent-running-on-ec2-host/348152/1 "2023-11-28T14:23:07Z")

</div>

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

```auto
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`

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 26, 2023, 2:23pm UTC](https://discuss.elastic.co/t/eck-404-error-for-elastic-agent-running-on-ec2-host/348152/2 "2023-12-26T14:23:10Z")

</div>

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