# Elastic-agent-control.sock: operation not supported on socket

**URL:** <https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101>\
**Category:** Beats\
**Tags:** docker, elastic-agent\
**Created:** [September 24, 2021, 4:52pm UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101 "2021-09-24T16:52:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [September 24, 2021, 4:52pm UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101/1 "2021-09-24T16:52:13Z")

</div>

Hey there,  
I have an Elasticsearch and Kibana instance running via Docker images (I have configured the secure option). Now I am trying to install the elastic-agent to start the Fleet Server but I am facing this error:

> Error: failed to copy source directory (/Users/aaa/Work/ELK/elastic-agent-7.15.0-darwin-x86\_64) to destination (/Library/Elastic/Agent): open /Users/aaa/Work/ELK/elastic-agent-7.15.0-darwin-x86\_64/data/tmp/elastic-agent-control.sock: operation not supported on socket

I downloaded the elastic-agent version for Mac and I am using the install command copied from Fleet UI.  
Command is running using `sudo` directive. Is there anyone can help me?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 28, 2021, 11:33am UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101/2 "2021-09-28T11:33:22Z")

</div>

Did you just unpack the directory and then run install or run anything before?

What version of OS X are you running?

@blaker I remember we had some previous discussions around permissions on OS X needed?

---

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [September 28, 2021, 12:39pm UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101/3 "2021-09-28T12:39:03Z")

</div>

hi @ruflin  
just unpack and run the command  
Mac version is Big Sure 11.5.2

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 29, 2021, 2:53pm UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101/4 "2021-09-29T14:53:54Z")

</div>

Hm, one thing that came to mind is maybe in the Security settings in OS X you would need to grant Elastic Agent more premissions but I don't think this it.

Could you share the exact install command you were running?

---

<div class="post-metadata">

**Author:** ![EricDavisX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ericdavisx/32/73456_2.png) [@EricDavisX](https://discuss.elastic.co/u/EricDavisX)\
**Post date:** [September 29, 2021, 4:06pm UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101/5 "2021-09-29T16:06:01Z")

</div>

I don't have any specifics to offer yet, but generally - I might ask:

- are you running this locally, live on the Big Sur host or is it via a tool like Ansible? Or over SSH in terminal?

- Attaching a non-Docker Fleet Server into the Docker based stack with correct networking / permissions sounds like a possible source of the problem - did you mind to share any docker.compose file you used? there will be some public examples in our Elastic repos about doing this, that may help

- it is a long shot, but after a failed attempt, are there any files on the local macOS disk that could be cleaned up before trying again? I don't see anything about sockets in the [Troubleshoot common problems | Fleet User Guide [7.15] | Elastic](https://www.elastic.co/guide/en/fleet/current/fleet-troubleshooting.html) troubleshooting guide, but elsewhere for macOS the Agent docs will tell you where files on disk and you can remove them to clear cruft perhaps?

---

<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 27, 2021, 6:06pm UTC](https://discuss.elastic.co/t/elastic-agent-control-sock-operation-not-supported-on-socket/285101/6 "2021-10-27T18:06:36Z")

</div>

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