Docker crashes after docker-osx-keychain invocation (Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9) [v2.1.0.4 and v2.0.0.3]
- [x] I have tried with the latest version of my channel (Stable or Edge)
- [x] I have uploaded Diagnostics
- Diagnostics ID: E4D4B3D2-EE6C-40DA-B300-FFC7F34D13FD/20191111203839 (uploaded)
Expected behavior
- Docker boots and continues to run
Actual behavior
- After 2 - 3 minutes running, Docker crashes with error
Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9
The issue seems to directly follow a docker-credential-osxkeychain invocation. This lines up with previous crashes I was experiencing, which caused me to upgrade from macOS Mojave to Catalina --- an infinite stream of keychain events / failures wound up crashing Docker Desktop.
2019-11-11 15:43:57.348886-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:ssCrypt] ===outputSize final 1 inSize=0
2019-11-11 15:43:57.359451-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:ssCrypt] ===outSize(pre-op) 100
2019-11-11 15:43:57.359475-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:ssCrypt] ===final via pre-op and copy
2019-11-11 15:43:57.359499-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:freeKey] CSPDL FreeKey
2019-11-11 15:43:57.359515-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:SecAccessReference] found a referenced key 0x430e470 for key reference 70313072 [70313072]
2019-11-11 15:43:57.359818-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:dbsession] FreeUniqueRecord: 6200050
2019-11-11 15:43:57.359846-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:dbsession] 0x6301320 DataAbortQuery(6200050)
2019-11-11 15:43:57.359898-0500 localhost docker-credential-osxkeychain[71483]: (Security) Created Activity ID: 0x1c6844, Description: SecKeychainItemFreeContent
2019-11-11 15:43:57.359927-0500 localhost docker-credential-osxkeychain[71483]: (Security) Created Activity ID: 0x1c6845, Description: SecKeychainItemCopyContent
2019-11-11 15:43:57.359954-0500 localhost docker-credential-osxkeychain[71483]: (Security) [com.apple.securityd:dbsession] 0x6301320 DataGetFromUniqueId(6200050)
2019-11-11 15:43:57.359976-0500 localhost docker-credential-osxkeychain[71483]: (Security) Created Activity ID: 0x1c6846, Description: SecKeychainItemFreeContent
2019-11-11 15:43:57.363503-0500 localhost Docker[66519]: (libsystem_trace.dylib) Created Activity ID: 0x1be309, Description: Activity for state dumps
2019-11-11 15:43:57.363530-0500 localhost Docker[66519]: [Docker:] CrashReport: report: Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9
2019-11-11 15:43:57.363684-0500 localhost Docker[66519]: (CoreFoundation) [com.apple.defaults:User Defaults] found no value for key NSUsesDefaultHyphenation in CFPrefsSearchListSource<0x6000014bc880> (Domain: com.docker.docker, Container: (null))
2019-11-11 15:43:57.363712-0500 localhost Docker[66519]: (CoreFoundation) [com.apple.defaults:User Defaults] found no value for key NSFontAllowsScreenSubstitutionForNonScaledBacking in CFPrefsSearchListSource<0x6000014bc880> (Domain: com.docker.docker, Container: (null))
2019-11-11 15:43:57.363772-0500 localhost Docker[66519]: (CoreFoundation) [com.apple.defaults:User Defaults] found no value for key _NSRaiseWithRecursiveLayoutRequest in CFPrefsSearchListSource<0x6000014bc880> (Domain: com.docker.docker, Container: (null))
2019-11-11 15:43:57.366778-0500 localhost Docker[66519]: (CoreFoundation) [com.apple.defaults:User Defaults] found no value for key _NSAllowsScreenFontKerning in CFPrefsSearchListSource<0x6000014bc880> (Domain: com.docker.docker, Container: (null))
2019-11-11 15:43:57.369224-0500 localhost Docker[66519]: (CoreFoundation) [com.apple.defaults:User Defaults] found no value for key NSUseTextLayoutManager in CFPrefsSearchListSource<0x6000014bc880> (Domain: com.docker.docker, Container: (null))
2019-11-11 15:43:57.369320-0500 localhost Docker[66519]: (LaunchServices) [com.apple.launchservices:error] Constructing NSError NSOSStatusErrorDomain/-10813 at _LSCopyLocalDatabase:671
2019-11-11 15:43:57.369344-0500 localhost Docker[66519]: (LaunchServices) [com.apple.launchservices:db] notify_check(user.uid.501.com.apple.LaunchServices.database) == true
2019-11-11 15:43:57.369356-0500 localhost Docker[66519]: (LaunchServices) [com.apple.launchservices:db] LS DB needs to be mapped into process 66519 for UID 501 (existing DB @ 0x0).
2019-11-11 15:43:57.369671-0500 localhost Docker[66519]: (CoreServicesStore) [com.apple.coreservicesstore:default] Creating CSStore from XPC coder with length 5206016
2019-11-11 15:43:57.369705-0500 localhost Docker[66519]: (CoreServicesStore) [com.apple.coreservicesstore:default] Checked CSStore data with lengths 5206016/5197072/5205252
2019-11-11 15:43:57.369864-0500 localhost Docker[66519]: (CoreServicesStore) [com.apple.coreservicesstore:default] Checked CSStore data with lengths 5206016/5197072/5205252
2019-11-11 15:43:57.370153-0500 localhost Docker[66519]: (LaunchServices) [com.apple.launchservices:db] Loaded LS database with sequence number 3860
2019-11-11 15:43:57.370181-0500 localhost Docker[66519]: (LaunchServices) [com.apple.launchservices:db] Client database updated - seq#: 3860
Resetting to factory defaults does not change or improve the issue.
This happens for both Docker Desktop 2.1.0.4 and 2.0.0.3
Information
- macOS Version:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15
BuildVersion: 19A603
Diagnostic logs
Docker crashes before the log generation completes.
Under 2.1.0.4:
$ docker --version
Docker version 19.03.4, build 9013bf5
Under 2.0.0.3:
$ docker --version
Docker version 18.09.2, build 6247962
Steps to reproduce the behavior
- Open docker
Also facing this issue. Seems like docker is fine for days and then it will suddenly encounter this and require a reboot. Even restarting docker doesn't help. During the restart/initialization process it will come back with the same error. Uploaded diagnostics: 38545BA6-7596-4073-BBE7-96CA78458783/20200120193337
Also seeing this
$ docker --version
Docker version 19.03.5, build 633a0ea
MacOS
10.15.2 (19C57)
Same issue here.
Docker version 19.03.5, build 633a0ea MacOS 10.15.2 (19C57)
I have this issue too, I've temporarily downgraded to docker 1.13.1 as a workaround
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d 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
/remove-lifecycle stale
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
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