SeleniumHQ/selenium · error · anyhow::Error

Problem uncompressing zip ({} files extracted)

Error message

Problem uncompressing zip ({} files extracted)

What it means

Error "Problem uncompressing zip ({} files extracted)" thrown in SeleniumHQ/selenium.

Source

Thrown at rust/src/files.rs:549

                if single_file.is_some() {
                    fs::set_permissions(&target_path, fs::Permissions::from_mode(0o755))?;
                } else if let Some(mode) = file.unix_mode() {
                    fs::set_permissions(&target_path, fs::Permissions::from_mode(mode))?;
                }
            }

            io::copy(&mut file, &mut outfile)?;
            unzipped_files += 1;
            log.trace(format!(
                "File extracted to {} ({} bytes)",
                target_path.display(),
                file.size()
            ));
        }
    }
    if unzipped_files == 0 {
        return Err(anyhow!(format!(
            "Problem uncompressing zip ({} files extracted)",
            unzipped_files
        )));
    }

    fs::remove_file(compressed_path)?;
    copy_folder_content(
        tmp_path,
        final_path,
        single_file,
        &compressed_path.to_path_buf(),
        log,
    )?;

    Ok(())
}

pub fn copy_folder_content(

View on GitHub (pinned to aa36b38e69)

Solutions

  1. Verify the downloaded zip archive is valid (unzip -t) and re-download if corrupt
  2. Check available disk space and write permissions on the cache folder
  3. Ensure the archive actually contains the expected browser/driver binary

When it happens

Trigger: Thrown at rust/src/files.rs:549 when the library encounters an invalid state.

Common situations: Occurs when unzipping a downloaded archive fails or extracts fewer files than expected, typically from an incomplete or corrupted download. Re-run with a stable network connection and clear the Selenium Manager cache (~/.cache/selenium) if the problem persists.


AI-assisted analysis of SeleniumHQ/selenium@aa36b38e69 (2026-08-14). Data as JSON: /api/errors/92345101251e8b84. Report an issue: GitHub.