Kubelite apiserver fails to start (deadline exceeded) but doesn't exit or retries

Hi!

I have been a happy user of MicroK8s for a couple of years now, But after the summer suddenly it’s unresponsive, and I would love some help to get it up and running again!

Basically kubelite is running, but never starts listenening on port 16443:

root@w ➜  richard: netstat -nlp | grep 16443 
root@w ➜  richard:  

I assume these lines are significant:

2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: Error: context deadline exceeded
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: F0731 12:52:31.422617 3250825 daemon.go:67] API Server exited context deadline exceeded
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 150 [running]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.stacks(0xc00013c001, 0xc0005681c0, 0x58, 0x1b9)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1021 +0xb9
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).output(0x98122c0, 0xc000000003, 0x0, 0x0, 0xc00040e380, 0x7cd17cb, 0x9, 0x43, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:970 +0x191
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).printf(0x98122c0, 0xc000000003, 0x0, 0x0, 0x0, 0x0, 0x5f2a447, 0x14, 0xc00069bcb0, 0x1, ...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:751 +0x191
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.Fatalf(...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1509
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/cmd/kubelite/app/daemons.StartAPIServer(0xc00053fa00, 0x1a, 0x20, 0xc00002b800)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/app/daemons/daemon.go:67 +0x225
sudo snap services
Service                               Startup  Current   Notes
microk8s.daemon-apiserver             enabled  inactive  -
microk8s.daemon-apiserver-kicker      enabled  active    -
microk8s.daemon-cluster-agent         enabled  active    -
microk8s.daemon-containerd            enabled  active    -
microk8s.daemon-control-plane-kicker  enabled  inactive  -
microk8s.daemon-controller-manager    enabled  inactive  -
microk8s.daemon-etcd                  enabled  inactive  -
microk8s.daemon-flanneld              enabled  inactive  -
microk8s.daemon-kubelet               enabled  inactive  -
microk8s.daemon-kubelite              enabled  active    -
microk8s.daemon-proxy                 enabled  inactive  -
microk8s.daemon-scheduler             enabled  inactive  -

The complete logs:

snap logs microk8s.daemon-kubelite -f 
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: --apiserver-args-file=$SNAP_DATA/args/kube-apiserver
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: --kubeconfig-file=$SNAP_DATA/credentials/client.config
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: --start-control-plane=true)'
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: + exec /snap/microk8s/2346/kubelite --scheduler-args-file=/var/snap/microk8s/2346/args/kube-scheduler --controller-manager-args-file=/var/snap/microk8s/2346/args/kube-controller-manager --proxy-args-file=/var/snap/microk8s/2346/args/kube-proxy --kubelet-args-file=/var/snap/microk8s/2346/args/kubelet --apiserver-args-file=/var/snap/microk8s/2346/args/kube-apiserver --kubeconfig-file=/var/snap/microk8s/2346/credentials/client.config --start-control-plane=true
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: Starting kubelite
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: I0731 12:47:30.831790 3250825 daemon.go:73] Waiting for the API server
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: I0731 12:47:30.832263 3250825 daemon.go:65] Starting API Server
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: I0731 12:47:30.832647 3250825 server.go:654] external host was not specified, using 192.168.2.42
2021-07-31T10:47:30Z microk8s.daemon-kubelite[3250825]: W0731 12:47:30.832657 3250825 authentication.go:507] AnonymousAuth is not allowed with the AlwaysAllow authorizer. Resetting AnonymousAuth to false. You should use a different authorizer
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: Error: context deadline exceeded
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: F0731 12:52:31.422617 3250825 daemon.go:67] API Server exited context deadline exceeded
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 150 [running]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.stacks(0xc00013c001, 0xc0005681c0, 0x58, 0x1b9)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1021 +0xb9
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).output(0x98122c0, 0xc000000003, 0x0, 0x0, 0xc00040e380, 0x7cd17cb, 0x9, 0x43, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:970 +0x191
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).printf(0x98122c0, 0xc000000003, 0x0, 0x0, 0x0, 0x0, 0x5f2a447, 0x14, 0xc00069bcb0, 0x1, ...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:751 +0x191
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.Fatalf(...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1509
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/cmd/kubelite/app/daemons.StartAPIServer(0xc00053fa00, 0x1a, 0x20, 0xc00002b800)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/app/daemons/daemon.go:67 +0x225
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/cmd/kubelite/app.glob..func1
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/app/server.go:42 +0x177
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 1 [select]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.WaitFor(0xc00078fb00, 0xc000fd1c08, 0xc00002bc20, 0x0, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:539 +0xf1
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.pollInternal(0xc00078fb00, 0xc000f6fc08, 0x0, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:427 +0x87
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.pollImmediateInternal(0xc00078fb00, 0xc000f6fc08, 0xc00078fb00, 0x44f)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:452 +0x74
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.PollImmediate(0x3b9aca00, 0x53d1ac1000, 0xc000f6fc08, 0x0, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:441 +0x4d
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/controller-manager/app.WaitForAPIServer(0x6a4b2e8, 0xc000d358c0, 0x53d1ac1000, 0x0, 0xc0005f9d40)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/controller-manager/app/helper.go:35 +0x98
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/cmd/kubelite/app/daemons.WaitForAPIServer(0x7ffd70dd0b0b, 0x31, 0x53d1ac1000)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/app/daemons/daemon.go:83 +0x2cc
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/cmd/kubelite/app.glob..func1(0x96ec2c0, 0xc00040e310, 0x0, 0x7)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/app/server.go:43 +0x1a5
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).execute(0x96ec2c0, 0xc000140010, 0x7, 0x7, 0x96ec2c0, 0xc000140010)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:854 +0x2c2
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x96ec2c0, 0x10, 0xc000000180, 0x7cb6ca)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:958 +0x375
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).Execute(...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:895
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/cmd/kubelite/app.Execute()
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/app/server.go:63 +0x31
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: main.main()
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	_output/local/go/src/k8s.io/kubernetes/cmd/kubelite/kubelite.go:26 +0x111
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 19 [chan receive]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).flushDaemon(0x98122c0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1164 +0x8b
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/k8s.io/klog/v2.init.0
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:418 +0xdf
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 74 [select]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/go.opencensus.io/stats/view.(*worker).start(0xc000376fa0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/go.opencensus.io/stats/view/worker.go:154 +0xcd
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/go.opencensus.io/stats/view.init.0
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/go.opencensus.io/stats/view/worker.go:32 +0x57
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 140 [sleep]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: time.Sleep(0x3b9aca00)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/runtime/time.go:193 +0xd2
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/internal/protocol.makeRetryStrategies.func1(0x12e, 0x12d)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/internal/protocol/connector.go:314 +0x65
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/Rican7/retry.shouldAttempt(0x12e, 0xc000ca87d0, 0x1, 0x1, 0x9845c01)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/Rican7/retry/retry.go:32 +0x47
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/Rican7/retry.Retry(0xc000907d48, 0xc000ca87d0, 0x1, 0x1, 0x1, 0x1)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/Rican7/retry/retry.go:19 +0x9c
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/internal/protocol.(*Connector).Connect(0xc000907df8, 0x69bd910, 0xc000447640, 0x7f2dbc0ff6d0, 0x10, 0x10)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/internal/protocol/connector.go:73 +0xc7
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/client.FindLeader(0x69bd910, 0xc000447640, 0x6944e28, 0xc0004475c0, 0xc000408420, 0x2, 0x2, 0x19ddde9d90e9a, 0xc0003760f0, 0xc00068eb40)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/client/leader.go:26 +0x1ac
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app.(*App).Leader(0xc0007188f0, 0x69bd910, 0xc000447640, 0x0, 0x2, 0xc0008e5f01)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app/app.go:403 +0x7c
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app.(*App).run(0xc0007188f0, 0x69bd910, 0xc000447640, 0x6fc23ac00, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app/app.go:458 +0x15f
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app.New
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app/app.go:238 +0x1013
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 79 [IO wait, 5 minutes]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: internal/poll.runtime_pollWait(0x7f2dbe220a70, 0x72, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/runtime/netpoll.go:222 +0x55
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: internal/poll.(*pollDesc).wait(0xc000c29d18, 0x72, 0x0, 0x0, 0x5ef65d4)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/internal/poll/fd_poll_runtime.go:87 +0x45
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: internal/poll.(*pollDesc).waitRead(...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/internal/poll/fd_poll_runtime.go:92
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: internal/poll.(*FD).Accept(0xc000c29d00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/internal/poll/fd_unix.go:401 +0x212
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: net.(*netFD).accept(0xc000c29d00, 0xc00049bee0, 0x414f38, 0x10)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/net/fd_unix.go:172 +0x45
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: net.(*TCPListener).accept(0xc00040bb30, 0x5640ce0, 0xc00082f520, 0x6941a70)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/net/tcpsock_posix.go:139 +0x32
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: net.(*TCPListener).Accept(0xc00040bb30, 0xc00013a010, 0x69bd910, 0xc000447680, 0xc00082f520)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/net/tcpsock.go:261 +0x65
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app.(*App).proxy(0xc0007188f0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app/app.go:416 +0xa3
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app.New
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/canonical/go-dqlite/app/app.go:232 +0x1227
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 146 [select]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0x6158810, 0x6939b60, 0xc00043ab40, 0x1, 0xc00010e0c0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:167 +0x118
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil(0x6158810, 0x12a05f200, 0x0, 0x1, 0xc00010e0c0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x98
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.Until(...)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.Forever(0x6158810, 0x12a05f200)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:81 +0x4f
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/k8s.io/component-base/logs.InitLogs
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/component-base/logs/logs.go:58 +0x8a
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 148 [syscall, 5 minutes]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: os/signal.signal_recv(0x0)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/runtime/sigqueue.go:168 +0xa5
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: os/signal.loop()
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/os/signal/signal_unix.go:23 +0x25
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by os/signal.Notify.func1.1
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/snap/go/7954/src/os/signal/signal.go:151 +0x45
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 149 [chan receive, 5 minutes]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server.SetupSignalContext.func1(0xc00071ca30)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/signal.go:48 +0x36
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server.SetupSignalContext
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/signal.go:47 +0xf3
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: goroutine 154 [select]:
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.poller.func1.1(0xc00002bce0, 0x3b9aca00, 0x53d1ac1000, 0xc00002bc80)
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:588 +0x135
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: created by k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.poller.func1
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3250825]: 	/build/microk8s/parts/k8s-binaries/build/go/src/github.com/kubernetes/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:571 +0x8c
2021-07-31T10:52:31Z systemd[1]: snap.microk8s.daemon-kubelite.service: Main process exited, code=exited, status=255/EXCEPTION
2021-07-31T10:52:31Z systemd[1]: snap.microk8s.daemon-kubelite.service: Failed with result 'exit-code'.
2021-07-31T10:52:31Z systemd[1]: snap.microk8s.daemon-kubelite.service: Consumed 1.268s CPU time.
2021-07-31T10:52:31Z systemd[1]: snap.microk8s.daemon-kubelite.service: Scheduled restart job, restart counter is at 2.
2021-07-31T10:52:31Z systemd[1]: Stopped Service for snap application microk8s.daemon-kubelite.
2021-07-31T10:52:31Z systemd[1]: snap.microk8s.daemon-kubelite.service: Consumed 1.268s CPU time.
2021-07-31T10:52:31Z systemd[1]: Started Service for snap application microk8s.daemon-kubelite.
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + export PATH=/snap/microk8s/2346/usr/sbin:/snap/microk8s/2346/usr/bin:/snap/microk8s/2346/sbin:/snap/microk8s/2346/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + PATH=/snap/microk8s/2346/usr/sbin:/snap/microk8s/2346/usr/bin:/snap/microk8s/2346/sbin:/snap/microk8s/2346/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3256015]: ++ /snap/microk8s/2346/bin/uname -m
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + ARCH=x86_64
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + export LD_LIBRARY_PATH=:/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + LD_LIBRARY_PATH=:/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + export LD_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void::/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + LD_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void::/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + export XDG_RUNTIME_DIR=/var/snap/microk8s/common/run
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + XDG_RUNTIME_DIR=/var/snap/microk8s/common/run
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + mkdir -p /var/snap/microk8s/common/run
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + source /snap/microk8s/2346/actions/common/utils.sh
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + app=kubelite
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + '[' -e /var/snap/microk8s/2346/var/lock/lite.lock ']'
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + '[' -e /var/snap/microk8s/2346/var/lock/clustered.lock ']'
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + refresh_opt_in_local_config start-control-plane true kubelite
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + local opt=--start-control-plane
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + local value=true
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + local config_file=/var/snap/microk8s/2346/args/kubelite
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + local replace_line=--start-control-plane=true
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3256017]: ++ grep -qE '^--start-control-plane=' /var/snap/microk8s/2346/args/kubelite
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + run_with_sudo /snap/microk8s/2346/bin/sed -i 's;^--start-control-plane=.*;--start-control-plane=true;' /var/snap/microk8s/2346/args/kubelite
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + '[' -n /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void::/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu ']'
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + GLOBAL_LD_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void::/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + local LD_LIBRARY_PATH=
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + '[' /snap/microk8s/2346/bin/sed == preserve_env ']'
2021-07-31T10:52:31Z microk8s.daemon-kubelite[3255997]: + sudo LD_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void::/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu /snap/microk8s/2346/bin/sed -i 's;^--start-control-plane=.*;--start-control-plane=true;' /var/snap/microk8s/2346/args/kubelite
2021-07-31T10:52:31Z sudo[3256018]:     root : PWD=/var/snap/microk8s/2346 ; USER=root ; ENV=LD_LIBRARY_PATH=/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void::/snap/microk8s/2346/lib:/snap/microk8s/2346/usr/lib:/snap/microk8s/2346/lib/x86_64-linux-gnu:/snap/microk8s/2346/usr/lib/x86_64-linux-gnu ; COMMAND=/snap/microk8s/2346/bin/sed -i s;^--start-control-plane=.*;--start-control-plane=true; /var/snap/microk8s/2346/args/kubelite
2021-07-31T10:52:32Z sudo[3256018]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
2021-07-31T10:52:32Z sudo[3256018]: pam_unix(sudo:session): session closed for user root
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -e /var/snap/microk8s/2346/var/lock/stopped.lock ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + n=0
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' 0 -ge 20 ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256033]: + ip route
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256034]: + grep default
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + break
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -e /var/snap/microk8s/2346/args/ha-conf ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256035]: ++ get_opt_in_config --storage-dir kube-apiserver
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256035]: ++ local opt=--storage-dir
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256035]: ++ local config_file=/var/snap/microk8s/2346/args/kube-apiserver
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256035]: ++ val=
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256036]: +++ grep -qE '^--storage-dir=' /var/snap/microk8s/2346/args/kube-apiserver
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256038]: +++ grep -E '^--storage-dir' /var/snap/microk8s/2346/args/kube-apiserver
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256039]: +++ cut -d= -f2
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256035]: ++ val='${SNAP_DATA}/var/kubernetes/backend/'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256035]: ++ echo '${SNAP_DATA}/var/kubernetes/backend/'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + storage_param='${SNAP_DATA}/var/kubernetes/backend/'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256040]: ++ eval echo '${SNAP_DATA}/var/kubernetes/backend/'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256040]: +++ echo /var/snap/microk8s/2346/var/kubernetes/backend/
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + storage_dir=/var/snap/microk8s/2346/var/kubernetes/backend/
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256041]: ++ grep -qE '^failure-domain' /var/snap/microk8s/2346/args/ha-conf
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256042]: ++ get_opt_in_config failure-domain ha-conf
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256042]: ++ local opt=failure-domain
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256042]: ++ local config_file=/var/snap/microk8s/2346/args/ha-conf
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256042]: ++ val=
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256043]: +++ grep -qE '^failure-domain=' /var/snap/microk8s/2346/args/ha-conf
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256045]: +++ grep -E '^failure-domain' /var/snap/microk8s/2346/args/ha-conf
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256046]: +++ cut -d= -f2
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256042]: ++ val=1
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256042]: ++ echo 1
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + val=1
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + echo 1
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256048]: ++ cat /var/snap/microk8s/2346/args/kubelet
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256049]: ++ grep pod-cidr
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256050]: ++ tr = ' '
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256051]: ++ gawk '{print $2}'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + pod_cidr=
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -z '' ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256053]: ++ jq .Network /var/snap/microk8s/2346/args/flannel-network-mgr-config
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256054]: ++ tr -d '\"'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + pod_cidr=10.1.0.0/16
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -z 10.1.0.0/16 ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + iptables -C FORWARD -s 10.1.0.0/16 -m comment --comment 'generated for MicroK8s pods' -j ACCEPT
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + grep -e '--address ' /var/snap/microk8s/2346/args/containerd
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256058]: ++ grep -e '--address ' /var/snap/microk8s/2346/args/containerd
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256059]: ++ gawk '{print $2}'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + socket='${SNAP_COMMON}/run/containerd.sock'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256060]: ++ eval echo '${SNAP_COMMON}/run/containerd.sock'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256060]: +++ echo /var/snap/microk8s/common/run/containerd.sock
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + socket_file_expand=/var/snap/microk8s/common/run/containerd.sock
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + n=0
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' 0 -ge 10 ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + test -S /var/snap/microk8s/common/run/containerd.sock
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + break
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -e /proc/3255997/cgroup ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256062]: ++ gawk -F '[:]' '(/cpu/ && !/cpuset/) || /memory/ {print $3}' /proc/3255997/cgroup
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256063]: ++ uniq
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256064]: ++ wc -l
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + [[ 0 -eq 2 ]]
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -L /var/lib/kubelet ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + echo '`/var/lib/kubelet` already exists. CSI add-ons have to point to /var/snap/microk8s/common for kubelet.'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: `/var/lib/kubelet` already exists. CSI add-ons have to point to /var/snap/microk8s/common for kubelet.
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + grep -E '(--advertise-address|--bind-address)' /var/snap/microk8s/2346/args/kube-apiserver
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + rm -f /var/snap/microk8s/2346/external_ip.txt
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + n=0
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' 0 -ge 20 ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256067]: + ip route
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256068]: + grep default
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + break
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -e /var/snap/microk8s/2346/args/cni-network/cni.yaml ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + ipvs='ipv4 ipv6'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + for ipv in $ipvs
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -e /proc/sys/net/ipv4/conf/all/forwarding ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + grep -e 1 /proc/sys/net/ipv4/conf/all/forwarding
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256069]: 1
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + for ipv in $ipvs
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -e /proc/sys/net/ipv6/conf/all/forwarding ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + grep -e 1 /proc/sys/net/ipv6/conf/all/forwarding
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256070]: 1
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -f /var/snap/microk8s/2346/var/lock/host-access-enabled ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -f /proc/sys/net/bridge/bridge-nf-call-iptables ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + '[' -f /proc/sys/net/bridge/bridge-nf-call-iptables ']'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + grep 0 /proc/sys/net/bridge/bridge-nf-call-iptables
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3256072]: ++ cat /var/snap/microk8s/2346/args/kubelite
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + declare -a 'args=(--scheduler-args-file=$SNAP_DATA/args/kube-scheduler
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: --controller-manager-args-file=$SNAP_DATA/args/kube-controller-manager
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: --proxy-args-file=$SNAP_DATA/args/kube-proxy
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: --kubelet-args-file=$SNAP_DATA/args/kubelet
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: --apiserver-args-file=$SNAP_DATA/args/kube-apiserver
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: --kubeconfig-file=$SNAP_DATA/credentials/client.config
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: --start-control-plane=true)'
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: + exec /snap/microk8s/2346/kubelite --scheduler-args-file=/var/snap/microk8s/2346/args/kube-scheduler --controller-manager-args-file=/var/snap/microk8s/2346/args/kube-controller-manager --proxy-args-file=/var/snap/microk8s/2346/args/kube-proxy --kubelet-args-file=/var/snap/microk8s/2346/args/kubelet --apiserver-args-file=/var/snap/microk8s/2346/args/kube-apiserver --kubeconfig-file=/var/snap/microk8s/2346/credentials/client.config --start-control-plane=true
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: Starting kubelite
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: I0731 12:52:32.104366 3255997 daemon.go:73] Waiting for the API server
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: I0731 12:52:32.104833 3255997 daemon.go:65] Starting API Server
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: I0731 12:52:32.105252 3255997 server.go:654] external host was not specified, using 192.168.2.42
2021-07-31T10:52:32Z microk8s.daemon-kubelite[3255997]: W0731 12:52:32.105263 3255997 authentication.go:507] AnonymousAuth is not allowed with the AlwaysAllow authorizer. Resetting AnonymousAuth to false. You should use a different authorizer

microk8s insepct:

root@w ➜  richard microk8s inspect                       
Inspecting Certificates
Inspecting services
  Service snap.microk8s.daemon-cluster-agent is running
  Service snap.microk8s.daemon-containerd is running
  Service snap.microk8s.daemon-apiserver-kicker is running
  Service snap.microk8s.daemon-kubelite is running
  Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
  Copy processes list to the final report tarball
  Copy snap list to the final report tarball
  Copy VM name (or none) to the final report tarball
  Copy disk usage information to the final report tarball
  Copy memory usage information to the final report tarball
  Copy server uptime to the final report tarball
  Copy current linux distribution to the final report tarball
  Copy openSSL information to the final report tarball
  Copy network configuration to the final report tarball
Inspecting kubernetes cluster
  Inspect kubernetes cluster
Inspecting juju
  Inspect Juju
Inspecting kubeflow
  Inspect Kubeflow

WARNING:  The memory cgroup is not enabled. 
The cluster may not be functioning properly. Please ensure cgroups are enabled 
See for example: https://microk8s.io/docs/install-alternatives#heading--arm 
 FAIL:  Cgroup v1 seems not to be enabled. Please enable it 
	by executing the following command and reboot: 
	grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" 
Building the report tarball
  Report tarball is at /var/snap/microk8s/2346/inspection-report-20210731_130056.tar.gz

root@w ➜  richard  microk8s status 
microk8s is not running. Use microk8s inspect for a deeper inspection.

I opend a Issue on Github here: Kubelite apiserver fails to start (deadline exceeded) but doesn't exit or retries

Thanks @Richard87 for logging the issue.
This is now resolved see API Server (inside kubelite) fails to start for unknown reason · Issue #2486 · ubuntu/microk8s · GitHub

1 Like