zed-industries/zed · error

failed to download remote server release

Error message

failed to download remote server release: {:?}

What it means

download_remote_server_binary fetched the release asset URL for the remote-server binary and the HTTP response carried a non-success status; the error embeds the response status, meaning the download endpoint rejected or failed the request (bad URL, missing asset, or server-side error) rather than a local I/O problem.

Solutions

  1. Retry the download after a short backoff for transient 5xx/network failures
  2. Verify the release asset URL and channel are still valid (the release may have been yanked)
  3. Check connectivity and proxy settings if the status indicates an auth or network error
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at crates/auto_update/src/auto_update.rs:997 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20). Data as JSON: /api/errors/b7e7275a614c85af. Report an issue: GitHub.

Appendix: source

Thrown at crates/auto_update/src/auto_update.rs:1008

    pub fn should_show_update_notification(&self, cx: &App) -> Task<Result<bool>> {
        let kvp = KeyValueStore::global(cx);
        cx.background_spawn(async move {
            Ok(kvp.read_kvp(SHOULD_SHOW_UPDATE_NOTIFICATION_KEY)?.is_some())
        })
    }
}

async fn download_remote_server_binary(
    target_path: &PathBuf,
    release: ReleaseAsset,
    client: Arc<HttpClientWithUrl>,
) -> Result<()> {
    let temp = tempfile::Builder::new().tempfile_in(remote_servers_dir())?;
    let mut temp_file = File::create(&temp).await?;

    let mut response = client.get(&release.url, Default::default(), true).await?;
    anyhow::ensure!(
        response.status().is_success(),
        "failed to download remote server release: {:?}",
        response.status()
    );
    smol::io::copy(response.body_mut(), &mut temp_file).await?;
    smol::fs::rename(&temp, &target_path).await?;

    Ok(())
}

async fn cleanup_remote_server_cache(
    platform_dir: &Path,
    keep_path: &Path,
    limit: usize,
) -> Result<()> {
    if limit == 0 {
        return Ok(());
    }

View on GitHub (pinned to 916fc2b8cb)