# Elastic Agent 9.2.7 Error: failed to execute enroll command

**URL:** <https://discuss.elastic.co/t/elastic-agent-9-2-7-error-failed-to-execute-enroll-command/385818>\
**Category:** Elastic Agent\
**Created:** [April 8, 2026, 6:08pm UTC](https://discuss.elastic.co/t/elastic-agent-9-2-7-error-failed-to-execute-enroll-command/385818 "2026-04-08T18:08:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faza\_Syarof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faza_syarof/32/147314_2.png) [@Faza\_Syarof](https://discuss.elastic.co/u/Faza_Syarof)\
**Post date:** [April 8, 2026, 6:08pm UTC](https://discuss.elastic.co/t/elastic-agent-9-2-7-error-failed-to-execute-enroll-command/385818/1 "2026-04-08T18:08:28Z")

</div>

Hi,

Please help me, I try to reinstall fleet server but got error

I already uninstall with command : elastic-agent uninstall and remove folder under /opt/Elastic but still got error below

[] Failed to Enroll [0s] Error uninstalling. Printing logs Error: failed to execute enroll command: fork/exec /usr/bin/elastic-agent: no such file or directory

Any ideas how to solve this?

Thank you

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [April 9, 2026, 6:35am UTC](https://discuss.elastic.co/t/elastic-agent-9-2-7-error-failed-to-execute-enroll-command/385818/2 "2026-04-09T06:35:28Z")

</div>

Hello @Faza_Syarof

Welcome to the Community!!

Please check below post with similar error :

> [@Failed to create fleet server elastic agent in Ubuntu](https://discuss.elastic.co/t/failed-to-create-fleet-server-elastic-agent-in-ubuntu/380713/9):
>
> Update, I have succesfully install the elastic agent using your method. Thankyou so much! Now my elastic agent much cleanerr and smooth!

Thanks!!
