Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-desktop for mac stuck in "Kubernetes is starting.." state #3594

Closed
jskelcy opened this issue Mar 25, 2019 · 12 comments
Closed

Docker-desktop for mac stuck in "Kubernetes is starting.." state #3594

jskelcy opened this issue Mar 25, 2019 · 12 comments

Comments

@jskelcy
Copy link

jskelcy commented Mar 25, 2019

  • [x ] I have tried with the latest version of my channel (Stable or Edge)
  • [ x] I have uploaded Diagnostics
  • Diagnostics ID: 10C21740-9C12-4B90-A659-E1ED6F894FF5/20190325220912

Expected behavior

Kubernetes starts

Actual behavior

Kubernetes is stuck in starting

Information

  • macOS Version: 10.13.6

Diagnostic logs

Docker for Mac: 2.0.3.0

time="2019-03-25T18:09:12-04:00" level=info msg="Start gathering list of 72 elements (timeout=10m0s)" type=list
time="2019-03-25T18:09:12-04:00" level=info msg="Executing: [sw_vers -productVersion]" type=cmd
time="2019-03-25T18:09:12-04:00" level=info msg="Executing: [sw_vers -buildVersion]" type=cmd
time="2019-03-25T18:09:12-04:00" level=info msg="Executing: [uname -r]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [sysctl kern.boottime]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [sysctl hw.memsize]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [vm_stat]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [sysctl machdep.cpu]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [uname -a]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [ps uax]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [dmesg]" type=cmd
time="2019-03-25T18:09:13-04:00" level=warning msg="[dmesg] exit status 1" type=cmd
time="2019-03-25T18:09:13-04:00" level=warning msg="[dmesg]: Unable to obtain kernel buffer: Operation not permitted\nusage: sudo dmesg\n" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [id]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [sysctl -a]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [mount]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [df -h]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [launchctl print-disabled system]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [system_profiler SPHardwareDataType]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [defaults read /Library/Preferences/com.apple.alf.plist]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [ifconfig -a]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [netstat -ln]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [netstat -mm]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [netstat -nr]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Gathering: /etc/resolv.conf" type=file
time="2019-03-25T18:09:13-04:00" level=info msg="Gathering: /etc/hosts" type=file
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [scutil --dns]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [scutil --nc list]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [scutil --proxy list]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [system_profiler SPFirewallDataType]" type=cmd
time="2019-03-25T18:09:13-04:00" level=info msg="HTTP GET: localhost /v1.24/version" type=http
time="2019-03-25T18:09:13-04:00" level=info msg="HTTP GET: localhost /v1.24/info" type=http
time="2019-03-25T18:09:13-04:00" level=info msg="HTTP GET: localhost /v1.24/containers/json?all=1" type=http
time="2019-03-25T18:09:13-04:00" level=info msg="HTTP GET: localhost /v1.24/nodes" type=http
time="2019-03-25T18:09:13-04:00" level=info msg="HTTP GET: localhost /v1.24/services" type=http
time="2019-03-25T18:09:13-04:00" level=info msg="HTTP GET: localhost /v1.24/networks" type=http
time="2019-03-25T18:09:13-04:00" level=info msg="Executing: [/bin/sh -c docker network inspect $(docker network ls -q)]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace docker describe pods]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace docker describe daemonset]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace docker describe replicaset]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace docker describe deployments]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace kube-system describe pods]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace kube-system describe daemonset]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace kube-system describe replicaset]" type=cmd
time="2019-03-25T18:09:14-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-for-desktop --namespace kube-system describe deployments]" type=cmd
time="2019-03-25T18:09:15-04:00" level=info msg="Executing: [/bin/sh -c /usr/bin/log show --debug --info --style syslog --last 1d --predicate 'process matches \".*[Dd]ocker.*\" || (process in {\"kernel\", \"launchservicesd\", \"taskgated-helper\"} && eventMessage contains[c] \"docker\")']" type=cmd
time="2019-03-25T18:09:18-04:00" level=info msg="Executing: [syslog -F $((Time)(JZ)) $Host $(Sender)[$(Facility)][$(PID)] <$((Level)(str))>: $Message -o -k Sender Seq docker -o -k Sender Seq Docker -o -k Message Seq docker -o -k Message Seq Docker]" type=cmd
time="2019-03-25T18:09:18-04:00" level=warning msg="[syslog -F $((Time)(JZ)) $Host $(Sender)[$(Facility)][$(PID)] <$((Level)(str))>: $Message -o -k Sender Seq docker -o -k Sender Seq Docker -o -k Message Seq docker -o -k Message Seq Docker]: NOTE:  Most system logs have moved to a new logging system.  See log(1) for more information.\n" type=cmd
time="2019-03-25T18:09:18-04:00" level=info msg="Executing: [/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.driver.amd64-linux)]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.hyperkit)]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.osxfs)]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.supervisor)]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.vpnkit)]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.vmnetd)]" type=cmd
time="2019-03-25T18:09:19-04:00" level=warning msg="[/bin/sh -c lsof -n -P -p $(pgrep -o com.docker.vmnetd)] exit status 1" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop version ]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop config get-contexts]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop config current-context]" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop get nodes]" type=cmd
time="2019-03-25T18:09:19-04:00" level=warning msg="[/usr/local/bin/kubectl.docker --context docker-desktop get nodes]: No resources found.\n" type=cmd
time="2019-03-25T18:09:19-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop get namespaces]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop describe nodes]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop describe pods --all-namespaces]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop cluster-info dump]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop describe services --all-namespaces]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Executing: [/usr/local/bin/kubectl.docker --context docker-desktop describe storageclass,pv,pvc]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Executing: [ls -l /Users/jskelc/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw]" type=cmd
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/Library/Group Containers/group.com.docker/DockerAppStderr.txt" type=file
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/Library/Group Containers/group.com.docker/already-enabled-features.json" type=file
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/Library/Group Containers/group.com.docker/dhcp.json" type=file
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/Library/Group Containers/group.com.docker/features.json" type=file
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/Library/Group Containers/group.com.docker/http_proxy.json" type=file
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/Library/Group Containers/group.com.docker/settings.json" type=file
time="2019-03-25T18:09:20-04:00" level=warning msg="/Users/jskelc/Library/Preferences/group.com.docker.pliststat /Users/jskelc/Library/Preferences/group.com.docker.plist: no such file or directory" type=file
time="2019-03-25T18:09:20-04:00" level=warning msg="exit status 1" type=directorylist
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/.docker/config.json" type=redacted-json
time="2019-03-25T18:09:20-04:00" level=info msg="Gathering: /Users/jskelc/.docker/daemon.json" type=redacted-json
time="2019-03-25T18:09:20-04:00" level=warning msg="/Library/Application Support/Docker/DockerDesktop/version-packs/version-packs.jsonstat /Library/Application Support/Docker/DockerDesktop/version-packs/version-packs.json: no such file or directory" type=file
time="2019-03-25T18:09:20-04:00" level=info msg="Getting Linux Diagnostics via a virtio socket: hyperkit:vms/0:62374" type=virtsock
time="2019-03-25T18:09:55-04:00" level=info msg="All 72 gatherers finished" type=list

Steps to reproduce the behavior

  1. Enable Kuberenetes
@jskelcy
Copy link
Author

jskelcy commented Mar 25, 2019

There are a number of other troublesome logs in the log.txt which was generated by the diagnostics run including:

2019-03-25 17:04:03.747449-0400  localhost com.docker.driver.amd64-linux[70172]: cannot read sysevent: EOF

and

2019-03-25 17:14:29.384308-0400  localhost com.docker.driver.amd64-linux[70172]: Cannot list nodes: Get https://localhost:6443/api/v1/nodes: EOF

and

[com.apple.network:] nw_resolver_host_resolve_callback flags=0x3 ifindex=0 error=NoSuchRecord(-65554) hostname=hub.docker.com. addr=::.0 ttl=60

@jskelcy jskelcy changed the title Kuberenetes not starting on version 2.0.3.0 Docker-desktop for mac stuck in "Kuberbetes is starting.." state Mar 25, 2019
@jskelcy jskelcy changed the title Docker-desktop for mac stuck in "Kuberbetes is starting.." state Docker-desktop for mac stuck in "Kubernetes is starting.." state Mar 25, 2019
@ulrich
Copy link

ulrich commented Mar 28, 2019

Hello @jskelcy

If it is possible can you reset to default settings and try again?

Reset will destroy your cluster and images, so don't forget to save settings and images.

@jskelcy
Copy link
Author

jskelcy commented Mar 28, 2019

I should have updated this ticket. That is exactly what I did and it worked.

@jskelcy jskelcy closed this as completed Mar 28, 2019
@ulrich
Copy link

ulrich commented Mar 28, 2019

Thank you @jskelcy

@kkzz8888
Copy link

Is there a way to recover the k8s cluster without having to reset k8s cluster (which will cause loss of all current k8s resource/data)? that is a lot of work that I have done including a database running posgresql within k8s.

@fksimon
Copy link

fksimon commented Nov 15, 2019

I experienced the same problem. Only option I had was a full reset of docker desktop which was quite annoying. And because it was stuck in starting I couldn't just disable the kubernetes cluster and reenable, that option was grayed out.

@fescobar
Copy link

#3649 (comment)

@stephanandre
Copy link

I was able to disable Kubernetes as follows without full reset (Status: Docker running / Kubernetes starting, Preferences all grayed out):

From the docker icon, select Restart.
Quickly open the preferences. Most likely it is not grayed out now.
Quickly select Kubernetes, turn off "Enable Kubernetes", press Apply & Restart.
This needs to be done within a few seconds.

When back, only Docker is running. Preferences can be used again.

@n1t1nv3rma
Copy link

n1t1nv3rma commented Apr 15, 2020

It seems one can also disable the Kubernetes cluster via /Users//Library/Group\ Containers/group.com.docker/settings.json file by making "kubernetesEnabled" : false

@croydondias
Copy link

croydondias commented Apr 29, 2020

As per #3649 (comment) , deleting the pki folder fixed this issue on Docker desktop version 2.2.0.5

rm -rf ~/Library/Group\ Containers/group.com.docker/pki/

@dgioulakis
Copy link

Thank you @croydondias. I did a Reset to Defaults, but that didn't solve the issue. Removing /pki did.

@docker-robott
Copy link
Collaborator

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 docker locked and limited conversation to collaborators Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants