{"record":{"id":"d7f3637da02f1381","repo":"gitbutlerapp/gitbutler","slug":"failed-to-get-signature-for-but-requested-version","errorCode":null,"errorMessage":"Failed to get signature for but, requested version may be too old","messagePattern":"Failed to get signature for but, requested version may be too old","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but-installer/src/install_linux.rs","lineNumber":53,"sourceCode":"        .ok_or_else(|| anyhow::anyhow!(\"Failed to construct but cli URL\"))?;\n    let download_url = format!(\"{base_download_url}/{filename}\");\n    let signature_url = format!(\"{download_url}.sig\");\n\n    validate_download_url(&signature_url)?;\n    validate_download_url(&download_url)?;\n    info(&format!(\"Download URL: {download_url}\"));\n\n    let temp_dir = tempfile::Builder::new()\n        .prefix(\"gitbutler-install.\")\n        .tempdir()?;\n    let tmp_filepath = temp_dir.path().join(filename);\n\n    info(&format!(\"Downloading GitButler {}...\", release.version));\n    download_file(&download_url, &tmp_filepath)?;\n    info(\"Download completed successfully\");\n\n    let signature_b64 = download_to_string(&signature_url).with_context(|| {\n        anyhow!(\"Failed to get signature for but, requested version may be too old\")\n    })?;\n    verify_signature(&tmp_filepath, &signature_b64, temp_dir.path())?;\n\n    // Install the app bundle\n    install_app(&tmp_filepath, &config.home_dir, channel)?;\n\n    Ok(())\n}\n\nfn install_app(but_path: &Path, home_dir: &Path, channel: Option<Channel>) -> Result<()> {\n    let install_bin_path = but_binary_path(home_dir);\n    let bin_dir = install_bin_path\n        .parent()\n        .ok_or_else(|| anyhow!(\"Failed to resolve bin dir path\"))?;\n    fs::create_dir_all(bin_dir)?;\n\n    let but_backup = if install_bin_path.is_file() {\n        let suffix: u64 = std::time::SystemTime::now()","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but-installer/src/install_linux.rs#L35-L71","documentation":"After downloading the AppImage, the Linux installer fetches the `but` CLI signature from {download_url}.sig. This error (wrapping whatever download_to_string failed with) means the signature file could not be retrieved — typically because the release predates per-CLI signature publishing.","triggerScenarios":"download_and_install_app on Linux when HTTP GET of {download_url}.sig fails or returns a non-200/non-UTF-8 body — the conventional .sig asset doesn't exist for that release.","commonSituations":"Installing an old GitButler version whose releases lacked a `but.sig` asset; release assets not yet fully uploaded; CDN returning 404 for the .sig path.","solutions":["Request a newer version/channel where the but signature asset exists","Verify the .sig URL manually (curl -I) to see if it 404s or returns an error page","If you control publishing, ensure `but` and `but.sig` assets are uploaded with the AppImage"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// pre-check the signature URL before the full flow\nlet status = head_request(&format!(\"{download_url}.sig\"))?;\nif status != 200 { eprintln!(\"but.sig unavailable (HTTP {status}); version may be too old\"); }","typeGuard":null,"tryCatchPattern":"if let Err(e) = download_and_install_app(...) {\n    if e.to_string().contains(\"requested version may be too old\") {\n        eprintln!(\"Pin a newer GitButler version that publishes but.sig\");\n    }\n    return Err(e.into());\n}","preventionTips":["Prefer recent stable versions that publish per-CLI signatures","HEAD-check the .sig asset before starting a long install","Ensure .sig assets are part of the release checklist when publishing"],"tags":["signature","linux","release","installer"],"backgroundTag":"resource-not-found","analyzedSha":"58e5313667b857ef39a730e380af31816a7b1768","analyzedAt":"2026-09-18T06:50:32.052Z","contentChangedAt":"2026-09-18T06:50:32.052Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}