# Fleet server enrolllment error

**URL:** <https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047>\
**Category:** Elastic Agent\
**Created:** [June 10, 2025, 11:20am UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047 "2025-06-10T11:20:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 11:20am UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/1 "2025-06-10T11:20:20Z")

</div>

Hey team am getting stuck on enrollment of fleet server am trying hard to debug but am get EOF and later

 ![Screenshot 2025-06-10 141743](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1be2ef1439076345933f9afa92aee16cfacb7573.png)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 10, 2025, 12:19pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/2 "2025-06-10T12:19:40Z")

</div>

Did you try to install it before and it failed?

The message mentions that Elastic Agent is installed but currently broken, also complains about the `elastic-agent.service` existing.

What does it return when you run `systemctl status elastic-agent` ?

I would check this, remove the Elastic Agent paths (`/opt/Elastic`) and the service if it exists and try again.

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 12:27pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/3 "2025-06-10T12:27:33Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/3/134ecd85cecc3629ea4a7836ac6154e29f536ebd.png)

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 12:29pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/4 "2025-06-10T12:29:36Z")

</div>

idid remove this path /opt/Elastic and still getting EOF

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 10, 2025, 12:41pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/5 "2025-06-10T12:41:18Z")

</div>

Well, this shows that this server has an Elastic Agent already installed and running.

You cannot install it again if it is already installed.

Why you want to install it again on the same server? You would need to remove it first.

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 12:45pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/6 "2025-06-10T12:45:11Z")

</div>

i dont see any server enrolled am unuble to add agents , how do i recovered from this

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 10, 2025, 12:49pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/7 "2025-06-10T12:49:03Z")

</div>

> [@nerd](#):
>
> i dont see any server enrolled am unuble to add agents , how do i recovered from this

I would recommend that you uninstall the agent them try to install it again.

The uninstall documentation can be found [here](https://www.elastic.co/docs/reference/fleet/uninstall-elastic-agent).

Your issue is that you are trying to install an agent on a machine that already has one agent installing and running.

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 12:50pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/8 "2025-06-10T12:50:56Z")

</div>

thankyu lemi do it , ill provide the feedback.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 10, 2025, 1:07pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/9 "2025-06-10T13:07:59Z")

</div>

Note the uninstall command are very specific, execute them exactly as defined in the documentation, do not `cd` to the installation directory and just execute with relative paths

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 3:02pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/11 "2025-06-10T15:02:55Z")

</div>

now i got this one

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/9/593998c40f45332104963a6e799dea58e4c1651e.png)

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 7:21pm UTC](https://discuss.elastic.co/t/fleet-server-enrolllment-error/379047/12 "2025-06-10T19:21:52Z")

</div>

Hey @stephenb,I’m let you know that the issue has been successfully resolved. Thank you so much for your kind assistance and support.
