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> |
||
|---|---|---|
| .. | ||
| bd | ||