{"record":{"id":"bec2804672f0a754","repo":"tinyhumansai/openhuman","slug":"db-not-yet-created-first-ingest-will-initialise-i","errorCode":null,"errorMessage":"DB not yet created (first ingest will initialise it): {}","messagePattern":"DB not yet created \\(first ingest will initialise it\\): (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/platform/doctor/core.rs","lineNumber":817,"sourceCode":"        .to_string_lossy()\n        .into_owned();\n    let shm = db_path.with_file_name(format!(\"{base_name}-shm\"));\n    let wal = db_path.with_file_name(format!(\"{base_name}-wal\"));\n    for sidecar in [&shm, &wal] {\n        if sidecar.exists() {\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\n                    \"stale SQLite side-file present (may indicate unclean shutdown): {}\",\n                    sidecar.display()\n                ),\n            ));\n        }\n    }\n\n    // ── File existence ──────────────────────────────────────────────\n    if !db_path.exists() {\n        items.push(DiagnosticItem::warn(\n            cat,\n            format!(\n                \"DB not yet created (first ingest will initialise it): {}\",\n                db_path.display()\n            ),\n        ));\n        return;\n    }\n\n    // ── Probe connection ─────────────────────────────────────────────\n    match tinymemory_core::store::chunks::store::with_connection(config, |conn| {\n        let n: i64 = conn.query_row(\"SELECT COUNT(*) FROM mem_tree_chunks\", [], |r| r.get(0))?;\n        Ok(n)\n    }) {\n        Ok(count) => {\n            items.push(DiagnosticItem::ok(\n                cat,\n                format!(\"DB accessible at {} ({count} chunks)\", db_path.display()),","sourceCodeStart":799,"sourceCodeEnd":835,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/platform/doctor/core.rs#L799-L835","documentation":"Doctor memory-tree check: <workspace>/memory_tree/chunks.db does not exist. This is a warn by design — the SQLite store is created lazily on first memory ingest — so on a fresh workspace it is expected. On an established install it means the memory tree has never been written (no ingest ran, or memory is pointed elsewhere).","triggerScenarios":"Thrown at src/openhuman/platform/doctor/core.rs:817 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Trigger one memory-ingesting action and re-run doctor to confirm the file appears","Verify workspace_dir and memory settings point at the intended location if data was expected","No action needed on a brand-new install"],"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"}