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

panic: certificate worker: runtime error invalid memory address or nil pointer dereference from certmagic #6609

Open
omertahaoztop opened this issue Oct 6, 2024 · 0 comments

Comments

@omertahaoztop
Copy link

I am facing with some error on our some Caddy Servers

{"level":"info","ts":1728241147.0235646,"msg":"panic: certificate worker: runtime error: invalid memory address or nil pointer dereference\ngoroutine 2376 [running]:\ngithub.com/caddyserver/certmagic.(*jobManager).worker.func1()\n\tgithub.com/caddyserver/[email protected]/async.go:58 +0x65\npanic({0x1b15f00?, 0x3f0d9a0?})\n\truntime/panic.go:770 +0x132\ngithub.com/caddyserver/certmagic.(*Config).storageHasNewerARI(_, {_, _}, {{{0xc0014f9da0, 0x2, 0x2}, {0x1cb99c0, 0xc001408150}, {0x0, 0x0, ...}, ...}, ...})\n\tgithub.com/caddyserver/[email protected]/maintain.go:430 +0x208\ngithub.com/caddyserver/certmagic.(*Config).updateARI(_, {_, _}, {{{0xc0014f9da0, 0x2, 0x2}, {0x1cb99c0, 0xc001408150}, {0x0, 0x0, ...}, ...}, ...}, ...)\n\tgithub.com/caddyserver/[email protected]/maintain.go:473 +0x55c\ngithub.com/caddyserver/certmagic.(*Config).manageOne.func2()\n\tgithub.com/caddyserver/[email protected]/config.go:453 +0x28b\ngithub.com/caddyserver/certmagic.(*jobManager).worker(0x3f34a80)\n\tgithub.com/caddyserver/[email protected]/async.go:73 +0x11b\ncreated by github.com/caddyserver/certmagic.(*jobManager).Submit in goroutine 1\n\tgithub.com/caddyserver/[email protected]/async.go:50 +0x279"}

We are using Redis Storage module

caddy.storage.redis
dns.providers.cloudflare
http.authentication.providers.authorizer
http.handlers.authenticator
http.ip_sources.cloudflare
http.matchers.maxmind_geolocation
security

But i don't think is the problem about storage.redis, i also encountered this error in places that use local disk for storage.

@omertahaoztop omertahaoztop changed the title panic: certificate worker: runtime error panic: certificate worker: runtime error invalid memory address or nil pointer dereference from certmagic Oct 6, 2024
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

1 participant