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

Observed a panic: runtime error: invalid memory address or nil pointer dereference #17

Open
klllmxx opened this issue Apr 10, 2024 · 2 comments

Comments

@klllmxx
Copy link

klllmxx commented Apr 10, 2024

When I apply for certificate resource making hapeened QAQ~~
Something like show this:
goroutine 1065 [running]:
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest.func1.1()
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/finisher/finisher.go:105 +0xa5
panic({0x22c3de0, 0x3def120})
/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/alibabacloud-go/darabonba-openapi/v2/client.(*Client).DoRequest.func1(0xc0006fb800, 0xc0006f6780, 0xc0006a8d40, 0xc000012ec8, 0xc000b1d6b8?)
/go/pkg/mod/github.com/alibabacloud-go/darabonba-openapi/v2@v2.0.5/client/client.go:1355 +0xf1e
github.com/alibabacloud-go/darabonba-openapi/v2/client.(*Client).DoRequest(0xc0006fb800, 0x0?, 0xc0006c49c0?, 0xc0006b3dd0)
/go/pkg/mod/github.com/alibabacloud-go/darabonba-openapi/v2@v2.0.5/client/client.go:1500 +0xc88
github.com/alibabacloud-go/darabonba-openapi/v2/client.(*Client).CallApi(0xc0006fb800, 0xc0006f6780, 0x26864ed?, 0xb?)
/go/pkg/mod/github.com/alibabacloud-go/darabonba-openapi/v2@v2.0.5/client/client.go:1685 +0x498
github.com/alibabacloud-go/alidns-20150109/v4/client.(*Client).DescribeDomainRecordsWithOptions(0xc0006fb800, 0xc0000ea700, 0xc000b1d9e8?)
/go/pkg/mod/github.com/alibabacloud-go/alidns-20150109/v4@v4.0.10/client/client.go:29580 +0xae5
github.com/alibabacloud-go/alidns-20150109/v4/client.(*Client).DescribeDomainRecords(0x1?, 0xc000b1daa0?)
/go/pkg/mod/github.com/alibabacloud-go/alidns-20150109/v4@v4.0.10/client/client.go:29599 +0x54
main.(*AliDNS).AddRecord(0xc000012e60, {0xc0003f1470, 0x25}, {0xc0007cf100, 0xd}, {0xc0003f1440, 0x2b})
/workspace/alidns.go:184 +0x21e
main.(*AliSolver).Present(0x2568c20?, 0xc00089d200)
/workspace/alidns.go:57 +0x1e6
github.com/cert-manager/cert-manager/pkg/acme/webhook/registry/challengepayload.(*REST).callSolver(0xc00055cc70, {{0x0, 0x0}, {0xc0007cf0e0, 0x7}, {0xc0007cf0e8, 0x6}, {0xc000772dc8, 0x14}, {0xc0003f1440, ..
.}, ...})
/go/pkg/mod/github.com/cert-manager/cert-manager@v1.12.6/pkg/acme/webhook/registry/challengepayload/challenge_payload.go:90 +0x168
github.com/cert-manager/cert-manager/pkg/acme/webhook/registry/challengepayload.(*REST).Create(0x0?, {0x6c3001?, 0xc0007a2810?}, {0x2a23d70?, 0xc0007a2810}, 0x2a44160?, 0x2a557a0?)
/go/pkg/mod/github.com/cert-manager/cert-manager@v1.12.6/pkg/acme/webhook/registry/challengepayload/challenge_payload.go:70 +0xe5
k8s.io/apiserver/pkg/endpoints/handlers.(*namedCreaterAdapter).Create(0x0?, {0x2a41008?, 0xc0007a2db0?}, {0xc0006a3e60?, 0x2a44160?}, {0x2a23d70?, 0xc0007a2810?}, 0xc00079d5e0?, 0xf?)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/create.go:254 +0x42
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1.1()
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/create.go:183 +0xd8
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1.2()
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/create.go:209 +0x413
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest.func1()
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/finisher/finisher.go:117 +0x8f
created by k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/finisher/finisher.go:92 +0xde
goroutine 1080 [running]:
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP.func1.1()
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/server/filters/timeout.go:110 +0x9c
panic({0x21aa620, 0xc00091fb60})
/usr/local/go/src/runtime/panic.go:884 +0x213
k8s.io/apiserver/pkg/endpoints/handlers/finisher.(*result).Return(0xc0007af770?)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/finisher/finisher.go:53 +0xbc
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest({0x2a41008, 0xc0007a2db0}, 0xc0007a0360, 0x45d964b800, 0x27bd208)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/finisher/finisher.go:126 +0x376
k8s.io/apiserver/pkg/endpoints/handlers/finisher.FinishRequest(...)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/finisher/finisher.go:84
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1({0x2a402c0, 0xc0008be200}, 0xc0006fac00)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/handlers/create.go:193 +0x217a
k8s.io/apiserver/pkg/endpoints.restfulCreateResource.func1(0xc0008be1e0, 0xc000108000)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/installer.go:1276 +0xcb
k8s.io/apiserver/pkg/endpoints/metrics.InstrumentRouteFunc.func1(0xc0008be1e0, 0xc000108000)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/endpoints/metrics/metrics.go:571 +0x22c
github.com/emicklei/go-restful/v3.(*Container).dispatch(0xc000774000, {0x2a402c0, 0xc0008254e0}, 0xc0006fac00)
/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.9.0/container.go:299 +0x5db
github.com/emicklei/go-restful/v3.(*Container).Dispatch(...)
/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.9.0/container.go:204
k8s.io/apiserver/pkg/server.director.ServeHTTP({{0x268f9c7?, 0x40bd94?}, 0xc000774000?, 0xc00065e690?}, {0x2a402c0, 0xc0008254e0}, 0xc0006fac00)
/go/pkg/mod/k8s.io/apiserver@v0.27.2/pkg/server/handler.go:146 +0x4e7

So....How to fix this problem

Certificate resource code like this:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cert-test-ssl
namespace: website
spec:
secretName: cert-test-ssl-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:

  • certssl.tomharry.com

Kubernetes Version: 1.28+

@wjiec
Copy link
Owner

wjiec commented Apr 10, 2024

hi @klllmxx, this seems to be a problem with your ClusterIssuer manifest, please provide more information about ClusterIssuer (be careful to protect your secret)

@klllmxx
Copy link
Author

klllmxx commented Apr 10, 2024

hi @klllmxx, this seems to be a problem with your ClusterIssuer manifest, please provide more information about ClusterIssuer (be careful to protect your secret)

OK,I will doublecheck as future will reply for you,thank you very much!!!~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants