Repository navigation
acmeserver: say when the CA database is locked by another process - #8007
Merged
steadytao merged 1 commit intoSep 11, 2026
Merged
Conversation
faiyazrahmann
force-pushed
the
acmeserver-locked-db-error
branch
from
September 10, 2026 06:03
74cf7ab to
6ff6691
Compare
steadytao
requested changes
Sep 10, 2026
faiyazrahmann
force-pushed
the
acmeserver-locked-db-error
branch
from
September 10, 2026 18:23
6ff6691 to
79a10b6
Compare
Opening the bbolt database only reported timeout, which sounds like a broken config. Catch bolt.ErrTimeout with errors.Is and say another process holds the lock, and that caddy reload is the right command when Caddy is already running. The error stays fatal.
faiyazrahmann
force-pushed
the
acmeserver-locked-db-error
branch
from
September 10, 2026 18:25
79a10b6 to
94439c1
Compare
steadytao
approved these changes
Sep 11, 2026
htwe28937-maker
approved these changes
Sep 12, 2026
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8004
Running
caddy validatewhile Caddy is already running only reported "Error opening database of Type bbolt: timeout" for configs withacme_server, which reads like a broken config or a corrupt database.openDatabase()now catchesbolterrors.ErrTimeoutwitherrors.Isand adds the missing context:Added
TestHandler_openDatabaseLocked, which holds a real lock on the bbolt file and checks that the error wrapsbolterrors.ErrTimeoutand explains the lock. It is skipped under-shortsince it waits out bbolt's 5 second timeout.go mod tidydropped the// indirectmarker ongo.etcd.io/bbolt. No version change.Assistance Disclosure
I used an LLM to reproduce the issue after writing the regression.