{"record":{"id":"141d686107ed9498","repo":"tinyhumansai/openhuman","slug":"low-disk-space-avail-mb-mb-free","errorCode":null,"errorMessage":"low disk space: {avail_mb} MB free","messagePattern":"low disk space: (.+?) MB free","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/platform/doctor/core.rs","lineNumber":464,"sourceCode":"\n    // Check for config templates or docs\n    let prompt = ws.join(\"SYSTEM.md\");\n    if prompt.exists() {\n        items.push(DiagnosticItem::ok(\n            cat,\n            format!(\"SYSTEM prompt: {}\", prompt.display()),\n        ));\n    } else {\n        items.push(DiagnosticItem::warn(\n            cat,\n            format!(\"SYSTEM prompt missing: {}\", prompt.display()),\n        ));\n    }\n\n    // Disk space warning (best-effort)\n    if let Some(avail_mb) = available_disk_space_mb(ws) {\n        if avail_mb < 512 {\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\"low disk space: {avail_mb} MB free\"),\n            ));\n        } else {\n            items.push(DiagnosticItem::ok(\n                cat,\n                format!(\"disk space OK: {avail_mb} MB free\"),\n            ));\n        }\n    }\n}\n\nfn available_disk_space_mb(path: &Path) -> Option<u64> {\n    #[cfg(target_os = \"windows\")]\n    {\n        return available_disk_space_mb_windows(path);\n    }\n","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/platform/doctor/core.rs#L446-L482","documentation":"Doctor disk-space check: a best-effort available_disk_space_mb probe on the workspace reports under 512 MB free. Memory ingestion, SQLite WAL growth, artifact generation and model/file caches all write to this volume; with <512 MB those operations risk ENOSPC failures and possible store corruption from truncated writes.","triggerScenarios":"Thrown at src/openhuman/platform/doctor/core.rs:464 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Free space on the volume hosting the workspace (clear caches, logs, old artifacts)","Move the workspace to a larger volume via workspace_dir in config","Check for a runaway memory_tree chunks.db or logs directory consuming the disk"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}