acme crash in 1.23 preventing start of gitea #13945

Closed
opened 2025-11-02 10:58:01 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @bvgastel on GitHub (Jan 9, 2025).

Description

Using gitea/gitea:latest docker image that was updated 11-12 hours ago to version 1.23. Since then start failure, see crash report.

2025/01/09 13:36:13 cmd/web.go:315:listen() [I] Listen: https://0.0.0.0:443
2025/01/09 13:36:13 cmd/web.go:319:listen() [I] AppURL(ROOT_URL): https://gitea.bitpowder.com/
2025/01/09 13:36:13 cmd/web.go:322:listen() [I] LFS server enabled
2025/01/09 13:36:13 cmd/web.go:242:func1() [F] PANIC: runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x47bb78)
/usr/local/go/src/runtime/signal_unix.go:917 (0x47bb48)
/go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/cache.go:335 (0x2d534ed)
/go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/config.go:398 (0x2d59bc4)
/go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/config.go:387 (0x2d59af1)
/go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/config.go:322 (0x2dab259)
/go/src/code.gitea.io/gitea/cmd/web_acme.go:83 (0x2dab205)
/go/src/code.gitea.io/gitea/cmd/web.go:334 (0x2daaa34)
/go/src/code.gitea.io/gitea/cmd/web.go:223 (0x2da9b84)
/go/src/code.gitea.io/gitea/cmd/web.go:273 (0x2daa08b)
/go/src/code.gitea.io/gitea/cmd/main.go:111 (0x2da0242)
/go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:276 (0x1f6cca1)
/go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:269 (0x1f6cf24)
/go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/app.go:333 (0x1f69704)
/go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/app.go:307 (0x2da0d38)
/go/src/code.gitea.io/gitea/cmd/main.go:172 (0x2da0d1c)
/go/src/code.gitea.io/gitea/main.go:46 (0x2de6bb8)
/usr/local/go/src/runtime/proc.go:272 (0x442fca)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x482100)
Received signal 15; terminating.

Did a rollback to 1.22 for now.

Gitea Version

1.23.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker/ACME.

Database

SQLite

Originally created by @bvgastel on GitHub (Jan 9, 2025). ### Description Using gitea/gitea:latest docker image that was updated 11-12 hours ago to version 1.23. Since then start failure, see crash report. ``` 2025/01/09 13:36:13 cmd/web.go:315:listen() [I] Listen: https://0.0.0.0:443 2025/01/09 13:36:13 cmd/web.go:319:listen() [I] AppURL(ROOT_URL): https://gitea.bitpowder.com/ 2025/01/09 13:36:13 cmd/web.go:322:listen() [I] LFS server enabled 2025/01/09 13:36:13 cmd/web.go:242:func1() [F] PANIC: runtime error: invalid memory address or nil pointer dereference /usr/local/go/src/runtime/panic.go:262 (0x47bb78) /usr/local/go/src/runtime/signal_unix.go:917 (0x47bb48) /go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/cache.go:335 (0x2d534ed) /go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/config.go:398 (0x2d59bc4) /go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/config.go:387 (0x2d59af1) /go/pkg/mod/github.com/caddyserver/certmagic@v0.21.4/config.go:322 (0x2dab259) /go/src/code.gitea.io/gitea/cmd/web_acme.go:83 (0x2dab205) /go/src/code.gitea.io/gitea/cmd/web.go:334 (0x2daaa34) /go/src/code.gitea.io/gitea/cmd/web.go:223 (0x2da9b84) /go/src/code.gitea.io/gitea/cmd/web.go:273 (0x2daa08b) /go/src/code.gitea.io/gitea/cmd/main.go:111 (0x2da0242) /go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:276 (0x1f6cca1) /go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:269 (0x1f6cf24) /go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/app.go:333 (0x1f69704) /go/pkg/mod/github.com/urfave/cli/v2@v2.27.5/app.go:307 (0x2da0d38) /go/src/code.gitea.io/gitea/cmd/main.go:172 (0x2da0d1c) /go/src/code.gitea.io/gitea/main.go:46 (0x2de6bb8) /usr/local/go/src/runtime/proc.go:272 (0x442fca) /usr/local/go/src/runtime/asm_amd64.s:1700 (0x482100) Received signal 15; terminating. ``` Did a rollback to 1.22 for now. ### Gitea Version 1.23.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker/ACME. ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:58:01 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jan 9, 2025):

Sorry for the inconvenience: Fix ACME panic #33178

@wxiaoguang commented on GitHub (Jan 9, 2025): Sorry for the inconvenience: Fix ACME panic #33178
Author
Owner

@bvgastel commented on GitHub (Jan 9, 2025):

These things happen. Thanks for the quick response. Hope it can be released in a few days.

@bvgastel commented on GitHub (Jan 9, 2025): These things happen. Thanks for the quick response. Hope it can be released in a few days.
Author
Owner

@wxiaoguang commented on GitHub (Jan 10, 2025):

1.23 nightly (will be 1.23.1 soon) is ready, it also contains some other fixes to have.

@wxiaoguang commented on GitHub (Jan 10, 2025): 1.23 nightly (will be 1.23.1 soon) is ready, it also contains some other fixes to have. * https://dl.gitea.com/gitea/1.23-nightly/ * https://hub.docker.com/r/gitea/gitea/tags?name=1.23-nightly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13945