magento2: The checksum verification of the file failed (downloaded from https://repo.magento.com/archives/vertex/sdk/vertex-sdk-1.0.0.0.zip)
Summary (*)
Magento v2.2.5
We are trying to install vertex/sdk package within Magento2 regular installation from exist composer.lock file.
This packages requires magento/product-community-edition package through "vertex/module-tax": "^2.1.2".
And we got an exception:
- Installing magento/module-wishlist-analytics (100.2.1): Downloading (100%)
- Installing vertex/sdk (1.0.0): Downloading (100%)
[UnexpectedValueException]
The checksum verification of the file failed (downloaded from https://repo.magento.com/archives/vertex/sdk/vertex-sdk-1.0.0.0.zip)
Examples (*)
This package description in composer.lock:
{
"name": "vertex/sdk",
"version": "1.0.0",
"dist": {
"type": "zip",
"url": "https://repo.magento.com/archives/vertex/sdk/vertex-sdk-1.0.0.0.zip",
"reference": null,
"shasum": "f57d48ec0d4f79bef9daefa5364c1e67d621e22c"
},
"require": {
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-soap": "*",
"php": "^5.4|^7"
},
"require-dev": {
"php": "^7.1",
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "^7.2",
"squizlabs/php_codesniffer": "^3.3"
},
"type": "library",
"autoload": {
"psr-4": {
"Vertex\\": "src/"
}
},
"license": [
"proprietary"
],
"description": "Tools for communicating with Vertex Cloud and Vertex O-Series"
},
Proposed solution
Please provide information why an archive has been updated and expected shasum value.
Just for the record, the current shasum is c78a12a5a07994a88502eb09729605bc192d5840.
Thank you.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 22 (11 by maintainers)
To make it work (this is not fix, this is to bypass someone’s bad decisions):
rm -rf vendor/vertexrm -rf ~/.cache/composer/files/vertexorrm -rf ~/.composer/cache/files/vertex(depeneds on OS)composer update vertex/module-taxThat will download new zip, with different checksum. I’m pissed of changing module files without changing the version, that is bad practise and it’s not only for the
vertexpackage. I had problems withmagento/composerpackage in the past.That problem blocked our team for a good chunk of time and I understand the frustration of developers on that subject, especially those, who use deployment process installing packages on infrastructure with multiple machines.
I think it is ridiculous that such things are happening.
In case someone is looking for a temporary workaround:
Update your composer.lock vertex/sdk entry with that sha and you should be good to go.
@engcom-backlog-nazar This should be considered a Magento Core Technical issue.
That package is hosted on repo.magento.com and it’s a default Magento dependency. This is not the first time that some weird operation performed on repo.magento.com breaks existing installations, see #16129. Probably there is some procedure (manual or automatic) that is failing.
This package vertex/sdk 1.0.0 hasn’t been changed since ~ Nov 19th, but it is likely that the same version was overridden which was live. We are looking into the publication process if an identical package and version is being re-zipped and overwriting it even if there are no changes.
Note: re-zipping same contents can change the shasum of the zip file even if there were no changes.
The correct shasum here is 6c7ed091879e66d75faf95fed7e48751693c68c7
If you are running into shasum error here, try composer clear-cache and/or updating the composer.lock file with the aforesaid shasum for this package.
The issue happens when you have
vertex/sdkalready incomposer.lockfrom before the checksum on server changed. If you install or update it now you won’t have any error.What I’m reporting is that in some occasions packages in repo.magento.com change their content without a change in the version number (possibily some
git push --tags --force?). This causes existing installations to fail when package is re-downloaded from the samecomposer.lockwith the old checksum.If you install Magento now it works, if you installed it, say, three days ago and today you do a
composer installof the old instance it will fail.Magento 2.3.0 is here:
no more
vertex/sdk ^1.0.0failure for now.