-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zip extraction issues investigation #11148
Comments
Hi @Seldaek , We have executed the job again and it reported the same error. No debug statements are printed. Do we need to enable anything from our end.. Please find the attached log file. Regards, |
This Make sure that the zip they provide is not corrupted. |
You can try to run |
2.4.4 is out now so hopefully you'll get the extra output if it happens again.. But I think what @stof said might be worth looking at as well. |
Do you want reports submitted here? I've got a failure in a GitHub Actions run which links to this issue. https://github.com/magento/magento-coding-standard/actions/runs/5092612078/jobs/9154185912?pr=435 Logs
PHP version doesn't seem relevant, as there are similar failures on other PHP versions, eg:
These are all failing with URLs like |
Data from the log you shared above:
Data I got from downloading https://api.github.com/repos/phpstan/phpstan/zipball/762c4dac4da6f8756eebb80e528c3a47855da9bd here:
So we can indeed see the file appears truncated, they begin with the same but yours is much shorter. What I find odd is that The other question is what can we do about this.. I'd imagine if we detect a corrupt zip file and we see that it came from cache we probably should wipe the cache and redownload it + retry extraction. |
I'm also seeing this problem with the latest laravel/framework release laravel/framework@ae93199 |
At https://github.com/wikimedia/less.php/actions/runs/6079215498/job/16491426989
|
Having a similar problem in our WordPress plugin: Details
Any ideas what can cause this or how we can fix it? |
Also having an issue installing a WordPress plugin, from Envato:
|
In our case the repo was renamed/moved and the redirection from GitLab was not working correctly for ZIP files in GitHub Actions (only locally). A |
Hello @Seldaek , I'm having a similar problem (extraction issues) when installing The message includes "O cliente não tem o privilégio necessário" (in Portuguese) which means something like "The user doesn't have the enough access privileges". Environment: C:\code\oss\router>composer diagnose -vvv
Running 2.7.7 (2024-06-10 22:11:12) with PHP 8.2.12 on Windows NT / 10.0
Reading ./composer.json (C:\code\oss\router\composer.json)
Loading config file ./composer.json (C:\code\oss\router\composer.json)
Checked CA file C:\dev\xampp\apache\bin\curl-ca-bundle.crt: valid
Executing command (C:\code\oss\router): git branch -a --no-color --no-abbrev -v
Failed to initialize global composer: Composer could not find the config file: C:/Users/thiag/AppData/Roaming/Composer/composer.json
Reading ./composer.lock (C:\code\oss\router\composer.lock)
Reading C:\code\oss\router/vendor/composer/installed.json (C:\code\oss\router\vendor\composer\installed.json)
Checking composer.json: Reading ./composer.json (C:\code\oss\router\composer.json)
OK
Checking platform settings: OK
Checking git settings: Executing command (CWD): git config color.ui
Executing command (CWD): git --version
OK git version 2.45.2
Checking http connectivity to packagist: Downloading http://repo.packagist.org/packages.json
[200] http://repo.packagist.org/packages.json
OK
Checking https connectivity to packagist: Downloading https://repo.packagist.org/packages.json
[200] https://repo.packagist.org/packages.json
OK
Checking github.com rate limit: Downloading https://api.github.com/rate_limit
[200] https://api.github.com/rate_limit
OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking Composer version: Downloading https://getcomposer.org/versions
[200] https://getcomposer.org/versions
OK
Checking Composer and its dependencies for vulnerabilities: Downloading https://repo.packagist.org/packages.json if modified
[304] https://repo.packagist.org/packages.json
Downloading https://packagist.org/api/security-advisories/
[200] https://packagist.org/api/security-advisories/
OK
Composer version: 2.7.7
PHP version: 8.2.12
PHP binary path: C:\dev\xampp\php\php.exe
OpenSSL version: OpenSSL 3.0.11 19 Sep 2023
curl version: 8.4.0 libz 1.2.12 ssl OpenSSL/3.0.11
zip: extension not loaded, unzip not available, 7-Zip present (7z) |
Hi Team,
We are using php-actions/composer@v6 version.
When we are trying to deploy our code we are getting below error.
We have noticed that the extraction is failed at GitHub runners it self. Is it an issue with composer?
Can you please let us know.
**Error: Failed to extract rankmath/seo-by-rank-math-pro: (1) '/usr/bin/unzip' -qq '/app/vendor/composer/tmp-d924851250d3e7553dbb2ddae8e6e83c' -d '/app/vendor/composer/57aa60f7'
warning [/app/vendor/composer/tmp-d924851250d3e7553dbb2ddae8e6e83c]: 1524255 extra bytes at beginning or within zipfile
(attempting to process anyway)
In ZipDownloader.php line 171:
Failed to extract rankmath/seo-by-rank-math-pro: (1) '/usr/bin/unzip' -qq '
/app/vendor/composer/tmp-d924851250d3e7553dbb2ddae8e6e83c' -d '/app/vendor/
composer/57aa60f7'
warning [/app/vendor/composer/tmp-d924851250d3e7553dbb2ddae8e6e83c]: 15242
55 extra bytes at beginning or within zipfile
(attempting to process anyway)
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]**
The text was updated successfully, but these errors were encountered: