{"record":{"id":"bb3d0faec7fa9eda","repo":"jdx/mise","slug":"remote-linux-libc-family-could-not-be-identified","errorCode":null,"errorMessage":"remote Linux libc family could not be identified","messagePattern":"remote Linux libc family could not be identified","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1710,"sourceCode":"    if [ -z \"$libc\" ]; then\n      for loader in /lib/ld-musl-*.so.1 /usr/lib/ld-musl-*.so.1; do\n        if [ -e \"$loader\" ]; then libc=musl; break; fi\n      done\n    fi\n    printf '%s\\n' \"${libc:-unknown}\"\n    ;;\n  *) printf '%s\\n' none ;;\nesac\"#\n}\n\nfn parse_remote_platform(output: &str) -> Result<RemotePlatform> {\n    let mut lines = output.lines();\n    let os = normalize_os(lines.next().unwrap_or_default());\n    let arch = normalize_arch(lines.next().unwrap_or_default());\n    let libc = match (os.as_str(), lines.next()) {\n        (\"linux\", Some(\"glibc\")) => Some(LibcFlavor::Glibc),\n        (\"linux\", Some(\"musl\")) => Some(LibcFlavor::Musl),\n        (\"linux\", _) => bail!(\"remote Linux libc family could not be identified\"),\n        (_, Some(\"none\")) => None,\n        _ => bail!(\"remote platform response is incomplete\"),\n    };\n    if os.is_empty() || arch.is_empty() || lines.next().is_some() {\n        bail!(\"remote platform response is invalid\");\n    }\n    Ok(RemotePlatform { os, arch, libc })\n}\n\n#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]\nstruct AbiVersion(Vec<u32>);\n\nimpl fmt::Display for AbiVersion {\n    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {\n        f.write_str(\n            &self\n                .0\n                .iter()","sourceCodeStart":1692,"sourceCodeEnd":1728,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1692-L1728","documentation":"parse_remote_platform ran the detection script on the remote host and the third line for a Linux host was neither glibc nor musl (often \"unknown\"), so the libc family could not be classified and platform parsing fails.","triggerScenarios":"Thrown at src/system/remote.rs:1710 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set mise_bin/remote_mise/bootstrap_command to sidestep remote artifact matching","Inspect the remote manually (ldd --version, /lib/ld-musl-*) to see why detection failed","Extend the detection script if the remote uses an exotic libc setup"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}