Skip to content

Instantly share code, notes, and snippets.

@dongsupark
Created January 20, 2021 16:39
Show Gist options
  • Save dongsupark/e9787cac6ca709b9b34e00774c51b52d to your computer and use it in GitHub Desktop.
Save dongsupark/e9787cac6ca709b9b34e00774c51b52d to your computer and use it in GitHub Desktop.
capa-controller-manager panic
$ kubectl --namespace=capi-webhook-system logs capa-controller-manager-647fc8bfb8-ggvdh manager
```
2021/01/20 15:15:22 http: panic serving 10.244.0.1:60498: runtime error: invalid memory address or nil pointer dereference
goroutine 273 [running]:
net/http.(*conn).serve.func1(0xc0000e2a00)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x215a200, 0x3960f30)
/usr/local/go/src/runtime/panic.go:975 +0x47a
sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3.autoConvert_v1alpha4_AWSClusterSpec_To_v1alpha3_AWSClusterSpec(0xc00087e118, 0xc00087e818, 0x0, 0x0, 0xc00058c450, 0x28)
/workspace/api/v1alpha3/zz_generated.conversion.go:472 +0xaf
sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3.Convert_v1alpha4_AWSClusterSpec_To_v1alpha3_AWSClusterSpec(...)
/workspace/api/v1alpha3/zz_generated.conversion.go:488
sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3.autoConvert_v1alpha4_AWSCluster_To_v1alpha3_AWSCluster(0xc00087e000, 0xc00087e700, 0x0, 0x0, 0xc00087c400, 0x286bf80)
/workspace/api/v1alpha3/zz_generated.conversion.go:403 +0x8f
sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3.Convert_v1alpha4_AWSCluster_To_v1alpha3_AWSCluster(...)
/workspace/api/v1alpha3/zz_generated.conversion.go:414
sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3.(*AWSCluster).ConvertFrom(0xc00087e700, 0x286bf80, 0xc00087e000, 0x286bf80, 0xc00087e000)
/workspace/api/v1alpha3/conversion.go:33 +0x4e
sigs.k8s.io/controller-runtime/pkg/webhook/conversion.(*Webhook).convertObject(0xc0008a8b70, 0x2842a00, 0xc00087e000, 0x2842880, 0xc00087e700, 0x2842880, 0xc00087e700)
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/conversion/conversion.go:142 +0x7db
sigs.k8s.io/controller-runtime/pkg/webhook/conversion.(*Webhook).handleConvertRequest(0xc0008a8b70, 0xc0005f20c0, 0xc0005bc090, 0x0, 0x0)
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/conversion/conversion.go:107 +0x208
sigs.k8s.io/controller-runtime/pkg/webhook/conversion.(*Webhook).ServeHTTP(0xc0008a8b70, 0x7f97f7246eb8, 0xc0003d4000, 0xc0005b6000)
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/conversion/conversion.go:74 +0x10b
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f97f7246eb8, 0xc0003d4000, 0xc0005b6000)
/workspace/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00088fa40, 0x7f97f7246eb8, 0xc0003d4000, 0xc0005b6000)
/usr/local/go/src/net/http/server.go:2042 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0x286be40, 0xc00037e540, 0xc0005b6000)
/workspace/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:100 +0xda
net/http.HandlerFunc.ServeHTTP(0xc00088fb90, 0x286be40, 0xc00037e540, 0xc0005b6000)
/usr/local/go/src/net/http/server.go:2042 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2(0x286be40, 0xc00037e540, 0xc0005b6000)
/workspace/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:76 +0xb2
net/http.HandlerFunc.ServeHTTP(0xc00088fc80, 0x286be40, 0xc00037e540, 0xc0005b6000)
/usr/local/go/src/net/http/server.go:2042 +0x44
net/http.(*ServeMux).ServeHTTP(0xc00089cb00, 0x286be40, 0xc00037e540, 0xc0005b6000)
/usr/local/go/src/net/http/server.go:2417 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0008e00e0, 0x286be40, 0xc00037e540, 0xc0005b6000)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc0000e2a00, 0x28785c0, 0xc00089d840)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment