{"record":{"id":"00dbdc7f67bd33e5","repo":"gastownhall/beads","slug":"automatic-integrity-recovery-is-disabled-for-serve","errorCode":null,"errorMessage":"automatic integrity recovery is disabled for server-mode repos because it can replace the wrong Dolt root; preserve %s and verify the configured database %q manually before reinitializing","messagePattern":"automatic integrity recovery is disabled for server-mode repos because it can replace the wrong Dolt root; preserve (.+?) and verify the configured database %q manually before reinitializing","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/doctor/fix/database_integrity.go","lineNumber":90,"sourceCode":"\t}\n\n\tfmt.Printf(\"  Recovered Dolt database\\n\")\n\tfmt.Printf(\"  Corrupted database preserved at: %s\\n\", filepath.Base(backupPath))\n\treturn nil\n}\n\nfunc serverModeIntegrityRecoveryGuard(beadsDir string) error {\n\tcfg, err := configfile.Load(beadsDir)\n\tif err != nil || cfg == nil || !cfg.IsDoltServerMode() {\n\t\treturn nil\n\t}\n\n\tdbName := cfg.GetDoltDatabase()\n\tif dbName == \"\" {\n\t\tdbName = configfile.DefaultDoltDatabase\n\t}\n\n\treturn fmt.Errorf(\n\t\t\"automatic integrity recovery is disabled for server-mode repos because it can replace the wrong Dolt root; preserve %s and verify the configured database %q manually before reinitializing\",\n\t\tgetDatabasePath(beadsDir),\n\t\tdbName,\n\t)\n}\n","sourceCodeStart":72,"sourceCodeEnd":96,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/doctor/fix/database_integrity.go#L72-L96","documentation":"Error \"automatic integrity recovery is disabled for server-mode repos because it can replace the wrong Dolt root; preserve %s and verify the configured database %q manually before reinitializing\" thrown in gastownhall/beads.","triggerScenarios":"Thrown at cmd/bd/doctor/fix/database_integrity.go:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}