# Fleet Server Error : enroll command failed for unknown reason: exit status 2

**URL:** <https://discuss.elastic.co/t/fleet-server-error-enroll-command-failed-for-unknown-reason-exit-status-2/362518>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [July 4, 2024, 6:13am UTC](https://discuss.elastic.co/t/fleet-server-error-enroll-command-failed-for-unknown-reason-exit-status-2/362518 "2024-07-04T06:13:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tola-Tole](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tola-tole/32/135787_2.png) [@Tola-Tole](https://discuss.elastic.co/u/Tola-Tole)\
**Post date:** [July 4, 2024, 6:13am UTC](https://discuss.elastic.co/t/fleet-server-error-enroll-command-failed-for-unknown-reason-exit-status-2/362518/1 "2024-07-04T06:13:44Z")

</div>

Hello,

i've problem to add fleet server, Error : enroll command failed for unknown reason: exit status 2.  
any help aboud this?

---

<div class="post-metadata">

**Author:** ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)\
**Post date:** [July 9, 2024, 7:35am UTC](https://discuss.elastic.co/t/fleet-server-error-enroll-command-failed-for-unknown-reason-exit-status-2/362518/2 "2024-07-09T07:35:38Z")

</div>

Hi Tola-Tole,

Could you copy the command used to enroll fleet-server and the full logs you are getting? Which version of agent is this?
