{"record":{"id":"5d09eb27aecc1fa8","repo":"zeroclaw-labs/zeroclaw","slug":"openrc-runtime-user-zeroclaw-cannot-write-d","errorCode":null,"errorMessage":"OpenRC runtime user 'zeroclaw' cannot write {} ({details}). Re-run `sudo zeroclaw service install` and ensure ownership is zeroclaw:zeroclaw.","messagePattern":"OpenRC runtime user 'zeroclaw' cannot write (.+?) \\((.+?)\\)\\. Re-run `sudo zeroclaw service install` and ensure ownership is zeroclaw:zeroclaw\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-runtime/src/service/mod.rs","lineNumber":1741,"sourceCode":"    let (program, args) = build_openrc_writability_probe_command(path, has_runuser);\n    let output = Command::new(&program)\n        .args(args.iter().map(String::as_str))\n        .output()\n        .with_context(|| {\n            format!(\n                \"Failed to verify OpenRC runtime write access for {}\",\n                path.display()\n            )\n        })?;\n\n    if !output.status.success() {\n        let stderr = String::from_utf8_lossy(&output.stderr);\n        let details = if stderr.trim().is_empty() {\n            \"write-access probe failed\"\n        } else {\n            stderr.trim()\n        };\n        bail!(\n            \"OpenRC runtime user 'zeroclaw' cannot write {} ({details}). \\\n             Re-run `sudo zeroclaw service install` and ensure ownership is zeroclaw:zeroclaw.\",\n            path.display().to_string(),\n        );\n    }\n\n    Ok(())\n}\n\n#[cfg(unix)]\nfn ensure_openrc_runtime_dirs_writable(\n    config_dir: &Path,\n    workspace_dir: &Path,\n    log_dir: &Path,\n) -> Result<()> {\n    for path in [config_dir, workspace_dir, log_dir] {\n        ensure_openrc_runtime_path_writable(path)?;\n    }","sourceCodeStart":1723,"sourceCodeEnd":1759,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-runtime/src/service/mod.rs#L1723-L1759","documentation":"Error \"OpenRC runtime user 'zeroclaw' cannot write {} ({details}). Re-run `sudo zeroclaw service install` and ensure ownership is zeroclaw:zeroclaw.\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-runtime/src/service/mod.rs:1741 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run `sudo zeroclaw service install` and ensure the path is owned by zeroclaw:zeroclaw."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}