gitbutlerapp/gitbutler · error

Failed to get signature for but, requested version may be…

Error message

Failed to get signature for but, requested version may be too old

What it means

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.

Solutions

  1. Request a newer version/channel where the but signature asset exists
  2. Verify the .sig URL manually (curl -I) to see if it 404s or returns an error page
  3. If you control publishing, ensure `but` and `but.sig` assets are uploaded with the AppImage
Defensive patterns

Strategy: fallback

Validate before calling

// pre-check the signature URL before the full flow
let status = head_request(&format!("{download_url}.sig"))?;
if status != 200 { eprintln!("but.sig unavailable (HTTP {status}); version may be too old"); }

Try / catch

if let Err(e) = download_and_install_app(...) {
    if e.to_string().contains("requested version may be too old") {
        eprintln!("Pin a newer GitButler version that publishes but.sig");
    }
    return Err(e.into());
}

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Understand the failure class

Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.

Related errors


AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18). Data as JSON: /api/errors/d7f3637da02f1381. Report an issue: GitHub.

Appendix: source

Thrown at crates/but-installer/src/install_linux.rs:53

        .ok_or_else(|| anyhow::anyhow!("Failed to construct but cli URL"))?;
    let download_url = format!("{base_download_url}/{filename}");
    let signature_url = format!("{download_url}.sig");

    validate_download_url(&signature_url)?;
    validate_download_url(&download_url)?;
    info(&format!("Download URL: {download_url}"));

    let temp_dir = tempfile::Builder::new()
        .prefix("gitbutler-install.")
        .tempdir()?;
    let tmp_filepath = temp_dir.path().join(filename);

    info(&format!("Downloading GitButler {}...", release.version));
    download_file(&download_url, &tmp_filepath)?;
    info("Download completed successfully");

    let signature_b64 = download_to_string(&signature_url).with_context(|| {
        anyhow!("Failed to get signature for but, requested version may be too old")
    })?;
    verify_signature(&tmp_filepath, &signature_b64, temp_dir.path())?;

    // Install the app bundle
    install_app(&tmp_filepath, &config.home_dir, channel)?;

    Ok(())
}

fn install_app(but_path: &Path, home_dir: &Path, channel: Option<Channel>) -> Result<()> {
    let install_bin_path = but_binary_path(home_dir);
    let bin_dir = install_bin_path
        .parent()
        .ok_or_else(|| anyhow!("Failed to resolve bin dir path"))?;
    fs::create_dir_all(bin_dir)?;

    let but_backup = if install_bin_path.is_file() {
        let suffix: u64 = std::time::SystemTime::now()

View on GitHub (pinned to 58e5313667)