beads/cmd
Danno 76e01b270d
fix: auto-clean stale Dolt noms LOCK files on bd startup (#2059)
When a Dolt server process is killed uncleanly (SIGKILL, OOM, tmux
kill-session), it leaves behind .dolt/noms/LOCK files that prevent the
server from reopening databases on restart, causing SIGSEGV or
"database is locked" errors.

Add CleanStaleNomsLocks() to internal/storage/dolt/ that scans a dolt
data directory and removes any noms LOCK files. Call it pre-flight in
PersistentPreRun before connecting to the server.

Also update doctor/fix/locks.go to remove the flock probe dependency
for noms LOCK cleanup — the probe was designed for the now-removed
embedded mode and is unreliable in server mode.

Co-authored-by: mayor <mayor@gastown.local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 22:09:51 -08:00
..
bd fix: auto-clean stale Dolt noms LOCK files on bd startup (#2059) 2026-02-24 22:09:51 -08:00