# Elastic agent elastic-agent-control.sock does not exist

**URL:** <https://discuss.elastic.co/t/elastic-agent-elastic-agent-control-sock-does-not-exist/316619>\
**Category:** Elastic Agent\
**Created:** [October 14, 2022, 9:43am UTC](https://discuss.elastic.co/t/elastic-agent-elastic-agent-control-sock-does-not-exist/316619 "2022-10-14T09:43:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoza](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@stoza](https://discuss.elastic.co/u/stoza)\
**Post date:** [October 14, 2022, 9:43am UTC](https://discuss.elastic.co/t/elastic-agent-elastic-agent-control-sock-does-not-exist/316619/1 "2022-10-14T09:43:06Z")

</div>

Hi Everyone,

I'm trying to install an elastic agent and to enroll it with fleet.  
The enrollment is working, I can see the agent on my fleet server but after few seconds it goes into the unhealthy state.

when I run `elastic-agent status` this is the output:

```auto
Error: failed to communicate with Elastic Agent daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix your_path_to_elastic_agent/data/tmp/elastic-agent-control.sock: connect: no such file or directory"

```

And indeed there is not file called elastic-agent-control.sock in that path.

Anyone has an idea why this file does not exist and how I can create it?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![gbeltramelli](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@gbeltramelli](https://discuss.elastic.co/u/gbeltramelli)\
**Post date:** [October 14, 2022, 5:32pm UTC](https://discuss.elastic.co/t/elastic-agent-elastic-agent-control-sock-does-not-exist/316619/2 "2022-10-14T17:32:50Z")

</div>

Hi stoza!!  
can you specify what version are you using?

---

<div class="post-metadata">

**Author:** ![stoza](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@stoza](https://discuss.elastic.co/u/stoza)\
**Post date:** [October 17, 2022, 7:23am UTC](https://discuss.elastic.co/t/elastic-agent-elastic-agent-control-sock-does-not-exist/316619/3 "2022-10-17T07:23:40Z")

</div>

Hi gbeltramelli,

I'm using version 7.17.2.  
I think something is not install on the computer because when I use the docker image everything works fine.

---

<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 14, 2022, 7:24am UTC](https://discuss.elastic.co/t/elastic-agent-elastic-agent-control-sock-does-not-exist/316619/4 "2022-11-14T07:24:03Z")

</div>

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