kubernetes-retired / heapster

[EOL] Compute Resource Usage Analysis and Monitoring of Container Clusters
Apache License 2.0
2.63k stars 1.25k forks source link

panic: runtime error: invalid memory address or nil pointer dereference #2098

Closed samuela closed 5 years ago

samuela commented 6 years ago

Description

I have a base kubernetes cluster setup through GKE with Ambassador, Calico, and a few NetworkPolicies running. I just got this error out of the blue:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x15f7433]

goroutine 1 [running]:
k8s.io/heapster/metrics/sinks.(*SinkFactory).BuildAll(0xc4205e5cd8, 0xc420138ab0, 0x1, 0x1, 0x0, 0x0, 0x7fbb7576e000, 0x0, 0x2, 0x0, ...)
    /go/src/k8s.io/heapster/metrics/sinks/factory.go:90 +0x563
main.createAndInitSinksOrDie(0xc420138ab0, 0x1, 0x1, 0x0, 0x0, 0x4a817c800, 0x0, 0x0, 0xc42045c820, 0x0, ...)
    /go/src/k8s.io/heapster/metrics/heapster.go:194 +0x8d
main.main()
    /go/src/k8s.io/heapster/metrics/heapster.go:89 +0x458

Output of heapster --version:

Whatever the GKE default is. I don't have the heapster CLI installed.

Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.7", GitCommit:"0c38c362511b20a098d7cd855f1314dad92c2780", GitTreeState:"clean", BuildDate:"2018-08-20T10:09:03Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.7-gke.6", GitCommit:"06898a4d0f2b96f82b43d9e59fa2825bd3d616a2", GitTreeState:"clean", BuildDate:"2018-10-02T17:32:01Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}