# Elastic Agent broken

**URL:** <https://discuss.elastic.co/t/elastic-agent-broken/278490>\
**Category:** Elastic Observability\
**Created:** [July 13, 2021, 6:46am UTC](https://discuss.elastic.co/t/elastic-agent-broken/278490 "2021-07-13T06:46:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry943](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Henry943](https://discuss.elastic.co/u/Henry943)\
**Post date:** [July 13, 2021, 6:46am UTC](https://discuss.elastic.co/t/elastic-agent-broken/278490/1 "2021-07-13T06:46:32Z")

</div>

Thank you for providing such an wonderful tool to monitor and logs.

But unfortunately recent times Elastic agent corrupted frequently.

Elastic Agent is installed but currently broken: service exists but installation path is missing  
Continuing will uninstall the broken Elastic Agent at /opt/Elastic/Agent. Do you want to continue? [Y/n]:  
This will happens after restart the agent. Please help us to fix this issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Poojan](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@Poojan](https://discuss.elastic.co/u/Poojan)\
**Post date:** [October 29, 2021, 8:19am UTC](https://discuss.elastic.co/t/elastic-agent-broken/278490/2 "2021-10-29T08:19:10Z")

</div>

can you share command which you are executing for installing elastic agent?

---

<div class="post-metadata">

**Author:** ![mibeyki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mibeyki/32/106771_2.png) [@mibeyki](https://discuss.elastic.co/u/mibeyki)\
**Post date:** [December 11, 2021, 6:31pm UTC](https://discuss.elastic.co/t/elastic-agent-broken/278490/3 "2021-12-11T18:31:44Z")

</div>

I realized it actually depends on whether you already installed Elastic Agent using \*.deb or \*.rpm. If this is the case, you need to use `elastic-agent enroll...` instead of `elastic-agent installed...`  
If you used the Elastic Agent TAR file, extract it, then navigate to the archive folder, from there you can now use `elastic-agent install...` command

Read More [here](https://www.elastic.co/guide/en/fleet/7.16/secure-connections.html).

---

<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:** [November 4, 2022, 8:31am UTC](https://discuss.elastic.co/t/elastic-agent-broken/278490/4 "2022-11-04T08:31:26Z")

</div>


