for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Failed to set posix_spawn_file_actions for fd -1 (errno 9)

Open sgammon opened this issue 6 years ago • 13 comments

Expected behavior

Using Docker for Mac preferences to perform basic actions should be usable. In my case, I was adding a shared volume path with the OS dialog.

Actual behavior

Docker for Mac spuriously emits the following error. I do not know if it is related to shared volumes or not.

Screen Shot 2020-02-28 at 11 55 20 AM

Information

  • Is it reproducible? No idea.
  • Is the problem new? Yes.
  • Did the problem appear with an update? Yes, although it could have been the update to Catalina, or Docker's updates. Hard to say.
  • macOS Version: 10.15.3 (Catalina)

Diagnostic logs

I don't have diagnostic logs because they won't run (see #4319).

Docker for Mac: 2.2.0.3 (42716)
Engine: 19.03.5
Notary: 0.6.1
Compose: 1.25.4
Kubernetes: v1.15.5
Credential Helper: 0.6.3

Steps to reproduce the behavior

Unclear yet but the error code above should be enough to diagnose, since it is internal to Docker for Mac's code.

(encountered while researching #4319 / #4318 and #4314)

sgammon avatar Feb 28 '20 19:02 sgammon

Facing the same issue after upgrading my macOS to 10.15.3 (19D76) (Catalina)

image

$docker --version Docker version 19.03.5, build 633a0ea

karthikarul20 avatar Mar 09 '20 03:03 karthikarul20

Same issue here. Tried both restarting MacOS and reinstalling Docker Desktop. So far no luck. This totally sucks as Docker is now totally unusable

zapodot avatar Mar 10 '20 08:03 zapodot

Same issue here. Also tried reinstalling Docker for Desktop with no luck.

Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3

ed0906 avatar Mar 13 '20 15:03 ed0906

Same issue here. Also tried reinstalling Docker for Desktop with no luck.

Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3

If you have decided to reinstall, you can try this instead. cd ~/Library/Containers/com.docker.docker/ rename the "Data" Folder mv Data Data-old or delete the whole folder if you dont care about your local containers. rm -rf Data Then restarting docker will create the Data folder again. Docker should be working, but the only difficulty is to rebuild all your local containers.

karthikarul20 avatar Mar 14 '20 01:03 karthikarul20

Same issue here. Also tried reinstalling Docker for Desktop with no luck. Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3

If you have decided to reinstall, you can try this instead. cd ~/Library/Containers/com.docker.docker/ rename the "Data" Folder mv Data Data-old or delete the whole folder if you dont care about your local containers. rm -rf Data Then restarting docker will create the Data folder again. Docker should be working, but the only difficulty is to rebuild all your local containers.

I gave it a go but the Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9 still comes back :(

ed0906 avatar Mar 16 '20 10:03 ed0906

Can confirm restarting my Macbook seems to have helped

ed0906 avatar Mar 16 '20 15:03 ed0906

Same issue. I've experienced that problem ever since moving to Catalina. Always comes back after update. Restarting does not work, error occurres a few minutes after starting Docker desktop.

I've managed to resolve the issue on my machine by changing the docker config. Change the credsStore variable from desktop to osxkeychain

Config needs to be changed after updating docker:

➜  ~ cat ~/.docker/config.json 
{
  "auths" : {
    "https://index.docker.io/v1/" : {
    }
  },
  "stackOrchestrator" : "swarm",
  "credsStore" : "osxkeychain",
  "experimental" : "disabled",
  "HttpHeaders" : {
    "User-Agent" : "Docker-Client/19.03.5 (darwin)"
  }
}
  • Change config and restart. This works for me.

Issue:

Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9

MacOs: Catalina 10.15.3 (19D76) Docker: Docker version 19.03.8, build afacb8b Docker Desktop: 2.2.0.4

Problem persists, apparently there are other threads concering similar issues: #4035, #4192, *65

jdato avatar Mar 17 '20 10:03 jdato

Same issue here. Also tried reinstalling Docker for Desktop with no luck. Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3

If you have decided to reinstall, you can try this instead. cd ~/Library/Containers/com.docker.docker/ rename the "Data" Folder mv Data Data-old or delete the whole folder if you dont care about your local containers. rm -rf Data Then restarting docker will create the Data folder again. Docker should be working, but the only difficulty is to rebuild all your local containers.

This fixed the issue for me.

haroon-sheikh avatar Mar 17 '20 12:03 haroon-sheikh

Removing ~/Library/Containers/com.docker.docker/Data and restarting my mac seems to have solved the issued.

docker desktop: 2.3.0.2 catalina: 10.15.4

gvazqu1 avatar May 14 '20 21:05 gvazqu1

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Aug 12 '20 01:08 docker-robott

I get this also. Any word on a fix?

spoco2 avatar Sep 09 '20 01:09 spoco2

I get it pretty much after every Docker Desktop update... Always have to delete my ~/Library/Containers/com.docker.docker/Data folder too. That works, is just annoying with large and often used images that I need to rebuild after that.

jdato avatar Sep 10 '20 08:09 jdato

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Nov 09 '20 03:11 docker-robott