{"record":{"id":"92345101251e8b84","repo":"SeleniumHQ/selenium","slug":"problem-uncompressing-zip-files-extracted","errorCode":null,"errorMessage":"Problem uncompressing zip ({} files extracted)","messagePattern":"Problem uncompressing zip \\((.+?) files extracted\\)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"rust/src/files.rs","lineNumber":549,"sourceCode":"\n                if single_file.is_some() {\n                    fs::set_permissions(&target_path, fs::Permissions::from_mode(0o755))?;\n                } else if let Some(mode) = file.unix_mode() {\n                    fs::set_permissions(&target_path, fs::Permissions::from_mode(mode))?;\n                }\n            }\n\n            io::copy(&mut file, &mut outfile)?;\n            unzipped_files += 1;\n            log.trace(format!(\n                \"File extracted to {} ({} bytes)\",\n                target_path.display(),\n                file.size()\n            ));\n        }\n    }\n    if unzipped_files == 0 {\n        return Err(anyhow!(format!(\n            \"Problem uncompressing zip ({} files extracted)\",\n            unzipped_files\n        )));\n    }\n\n    fs::remove_file(compressed_path)?;\n    copy_folder_content(\n        tmp_path,\n        final_path,\n        single_file,\n        &compressed_path.to_path_buf(),\n        log,\n    )?;\n\n    Ok(())\n}\n\npub fn copy_folder_content(","sourceCodeStart":531,"sourceCodeEnd":567,"githubUrl":"https://github.com/SeleniumHQ/selenium/blob/aa36b38e696a0909e973bdf5e2f9031ffe842c4b/rust/src/files.rs#L531-L567","documentation":"Error \"Problem uncompressing zip ({} files extracted)\" thrown in SeleniumHQ/selenium.","triggerScenarios":"Thrown at rust/src/files.rs:549 when the library encounters an invalid state.","commonSituations":"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.","solutions":["Verify the downloaded zip archive is valid (unzip -t) and re-download if corrupt","Check available disk space and write permissions on the cache folder","Ensure the archive actually contains the expected browser/driver binary"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"aa36b38e696a0909e973bdf5e2f9031ffe842c4b","analyzedAt":"2026-08-14T02:32:32.244Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}