{"record":{"id":"b8852674c4f4881a","repo":"zeroclaw-labs/zeroclaw","slug":"openrc-service-executable-path-contains-unsupporte","errorCode":null,"errorMessage":"OpenRC service executable path contains unsupported shell characters: {}. Install ZeroClaw at /usr/local/bin/zeroclaw and retry","messagePattern":"OpenRC service executable path contains unsupported shell characters: (.+?)\\. Install ZeroClaw at /usr/local/bin/zeroclaw and retry","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-runtime/src/service/mod.rs","lineNumber":1845,"sourceCode":"    if preferred.exists() {\n        return Ok(preferred.to_path_buf());\n    }\n\n    let exe = std::env::current_exe().context(\"Failed to resolve current executable\")?;\n    Ok(exe)\n}\n\nfn install_linux_openrc(config: &Config) -> Result<()> {\n    if !is_root() {\n        bail!(\n            \"OpenRC service installation requires root privileges.\\n\\\n             Please run with sudo: sudo zeroclaw service install\"\n        );\n    }\n\n    let exe = resolve_openrc_executable()?;\n    if !openrc_executable_path_is_safe(&exe) {\n        bail!(\n            \"OpenRC service executable path contains unsupported shell characters: {}. Install ZeroClaw at /usr/local/bin/zeroclaw and retry\",\n            exe.display()\n        );\n    }\n    ensure_zeroclaw_user()?;\n    warn_if_binary_in_home(&exe);\n\n    let config_dir = Path::new(\"/etc/zeroclaw\");\n    let workspace_dir = config_dir.join(\"workspace\");\n    let log_dir = Path::new(\"/var/log/zeroclaw\");\n\n    if !config_dir.exists() {\n        fs::create_dir_all(config_dir)\n            .with_context(|| format!(\"Failed to create {}\", config_dir.display().to_string()))?;\n        #[cfg(unix)]\n        {\n            use std::os::unix::fs::PermissionsExt;\n            fs::set_permissions(config_dir, fs::Permissions::from_mode(0o755)).with_context(","sourceCodeStart":1827,"sourceCodeEnd":1863,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-runtime/src/service/mod.rs#L1827-L1863","documentation":"Error \"OpenRC service executable path contains unsupported shell characters: {}. Install ZeroClaw at /usr/local/bin/zeroclaw and retry\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-runtime/src/service/mod.rs:1845 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install ZeroClaw at /usr/local/bin/zeroclaw (a path without special shell characters) and retry."],"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"}