# Need help adding Fleet server

**URL:** <https://discuss.elastic.co/t/need-help-adding-fleet-server/330565>\
**Category:** Elastic Agent\
**Created:** [April 23, 2023, 1:24am UTC](https://discuss.elastic.co/t/need-help-adding-fleet-server/330565 "2023-04-23T01:24:36Z")\
**Posts on this page:** 1\
**Showing post:** 20

<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:** [April 23, 2023, 2:52pm UTC](https://discuss.elastic.co/t/need-help-adding-fleet-server/330565/20 "2023-04-23T14:52:11Z")

</div>

@Tanner_Sutherlin Hi and welcome to the community.

I think I have seen the before ...

Did you have a previous version of elastic agent on the system? Before you started this at the top of your post?

Either way...

If you have it installed please reload the systems

`sudo /bin/systemctl daemon-reload`

I would remove via the package.

Then I would check to see if

`/opt/Elastic/Agent/elastic-agent` is still there

if so run

`sudo /opt/Elastic/Agent/elastic-agent uninstall`

Then I would install with the tar.gz

and try again

if it fails run

`sudo /bin/systemctl daemon-reload`

then try again.

Where the agent runs from has been moved... I think you have an old sym link

This might help same error I helped debugg a bit back

> [@Elastic agent fails to install on Centos 7](https://discuss.elastic.co/t/elastic-agent-fails-to-install-on-centos-7/329260):
>
> Hi, I am getting the following error message when attempting to install Fleet agent: Installed as a system package, installation will not be altered. Error: failed to execute enroll command: fork/exec /usr/bin/elastic-agent: no such file or directory The machine previously had an older version 7.15.2 and we tried to update via the Kibana, but it failed to update. I tried manually attempt to update and that didn't work. So I removed the old installation and purged all remnants of the previous…

---

_[View the full topic](https://discuss.elastic.co/t/need-help-adding-fleet-server/330565)._
