# Elastic agent install failing

**URL:** <https://discuss.elastic.co/t/elastic-agent-install-failing/315501>\
**Category:** Elastic Agent\
**Created:** [September 29, 2022, 8:09pm UTC](https://discuss.elastic.co/t/elastic-agent-install-failing/315501 "2022-09-29T20:09:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyrax002](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyrax002/32/111472_2.png) [@Cyrax002](https://discuss.elastic.co/u/Cyrax002)\
**Post date:** [September 29, 2022, 8:09pm UTC](https://discuss.elastic.co/t/elastic-agent-install-failing/315501/1 "2022-09-29T20:09:57Z")

</div>

When installing elastic agent on one host I am receiving the following error message:

```auto
panic: EvalSymlinks: too many links

goroutine 1 [running]:
github.com/elastic/elastic-agent/internal/pkg/agent/application/paths.retrieveExecutablePath()
        github.com/elastic/elastic-agent/internal/pkg/agent/application/paths/common.go:191 +0x51
github.com/elastic/elastic-agent/internal/pkg/agent/application/paths.initialTop()
        github.com/elastic/elastic-agent/internal/pkg/agent/application/paths/common.go:176 +0x19
github.com/elastic/elastic-agent/internal/pkg/agent/application/paths.init.0()
        github.com/elastic/elastic-agent/internal/pkg/agent/application/paths/common.go:38 +0x1d

```

I've been successfully using the same installation steps on 65 other hosts with this being the only one to run into that error message. It's running on a windows server 2022 OS which about 1/2 of the other hosts were also using.

---

<div class="post-metadata">

**Author:** ![Cyrax002](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyrax002/32/111472_2.png) [@Cyrax002](https://discuss.elastic.co/u/Cyrax002)\
**Post date:** [September 30, 2022, 5:10pm UTC](https://discuss.elastic.co/t/elastic-agent-install-failing/315501/2 "2022-09-30T17:10:46Z")

</div>

This can be closed. I was able to get the install to work by extracting and running from root folder instead of through downloads folder.

---

<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:** [October 28, 2022, 5:11pm UTC](https://discuss.elastic.co/t/elastic-agent-install-failing/315501/3 "2022-10-28T17:11:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
