boost: Error installing boost Verification checksum was incorrect
I’m developing a Mobile app with React Native (0.73.1) and for building the app I need to install the pods. The pods contains installing boos, see this file.
I get the following error
Installing boost (1.83.0)
[!] Error installing boost
Verification checksum was incorrect, expected 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e, got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff
When I check this site I see the checksum should be 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e
When I do this on my Mac
curl -sL https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2 | shasum -a 256
5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff -
I get a different checksum
Please let me know what I need to provide more to debug this
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 65
- Comments: 118 (9 by maintainers)
Links to this issue
Commits related to this issue
- bump Boost to 1.84.0 & use SourceForge mirror The jfrog.io account is currently disabled; see https://github.com/boostorg/boost/issues/843 — committed to mbunkus/org.bunkus.mkvtoolnix-gui by mbunkus 3 years ago
- fix(test, iOS): patch boost podspec due to pod-install issue. Patch to resolve this issue: https://github.com/boostorg/boost/issues/843 — committed to wix/Detox by asafkorem 3 years ago
- fix(test, iOS): patch boost podspec due to pod-install issue. Patch to resolve this issue: https://github.com/boostorg/boost/issues/843 — committed to wix/Detox by asafkorem 3 years ago
- fix: React Native Patch due to issue https://github.com/boostorg/boost/issues/843 — committed to haqq-network/haqq-wallet by devkudasov 3 years ago
- fix: React Native Patch due to issue https://github.com/boostorg/boost/issues/843 — committed to haqq-network/haqq-wallet by devkudasov 3 years ago
- fix: React Native Patch due to issue https://github.com/boostorg/boost/issues/843 (#1607) — committed to haqq-network/haqq-wallet by devkudasov 3 years ago
- Add temporary monkeypatch for boost. See https://github.com/boostorg/boost/issues/843 for more information. — committed to Shopify/checkout-sheet-kit-react-native by markmur 3 years ago
- Repo name changes (#46) - Rename URL in package(s) - Update the Podfile.lock - Add a temporary monkeypatch for boost (react-native dependency). See boostorg/boost#843 for more information. — committed to Shopify/checkout-sheet-kit-react-native by markmur 3 years ago
- US1782181: patch Boost pod.spec while issue is being fixed - See Boost issue - https://github.com/boostorg/boost/issues/843 - See temporary workaround proposed by Facebook - https://github.com/faceboo... — committed to Worldpay/access-checkout-react-native by deleted user 3 years ago
- OPS: Temporary fix due to mismatch in dependency https://github.com/boostorg/boost/issues/843#issuecomment-1872943124 — committed to BlueWallet/BlueWallet by marcosrdz 3 years ago
- Fix ios build by patching boost https://github.com/boostorg/boost/issues/843#issuecomment-1872943124 — committed to AudiusProject/audius-protocol by dylanjeffers 3 years ago
- Add patch files to workaround boost checksum issue (see https://github.com/boostorg/boost/issues/843 and https://github.com/facebook/react-native/issues/42180) — committed to bitmovin/bitmovin-player-react-native by dweinber 3 years ago
- US1782181: patch Boost pod.spec while issue is being fixed - See Boost issue - https://github.com/boostorg/boost/issues/843 - See temporary workaround proposed by Facebook - https://github.com/faceboo... — committed to Worldpay/access-checkout-react-native by deleted user 3 years ago
- US1782181: patch Boost pod.spec while issue is being fixed - See Boost issue - https://github.com/boostorg/boost/issues/843 - See temporary workaround proposed by Facebook - https://github.com/faceboo... — committed to Worldpay/access-checkout-react-native by deleted user 3 years ago
- US1782181: patch Boost pod.spec while issue is being fixed - See Boost issue - https://github.com/boostorg/boost/issues/843 - See temporary workaround proposed by Facebook - https://github.com/faceboo... — committed to Worldpay/access-checkout-react-native by deleted user 3 years ago
- F253333: SAQ-A Native Components (#105) * Us1762585 - iOS Refactor Native components (#81) * US1762570: create view manager to native AccessCheckoutEditText component; override onTextChange to sup... — committed to Worldpay/access-checkout-react-native by abaeza-wp 3 years ago
- WT-13410: Switch Boost archive URL JFrog is no longer offering webspace to Boost. They used to do this, but this is costing them a lot. Boost now offers their own in-house URL to download archives. ... — committed to emweb/wt by deleted user 2 years ago
- WT-13410: Switch Boost archive URL JFrog is no longer offering webspace to Boost. They used to do this, but this is costing them a lot. Boost now offers their own in-house URL to download archives. ... — committed to emweb/wt by deleted user 2 years ago
Ok, created a simple patch for this for RN 0.73.1, but everyone could do this
Install
patch-package:Modify
boost.podspec:change
to
Create a Patch:
npx patch-package react-nativeto create a patch file based on your changes. This command generates a patch file in a directory calledpatches/.Apply the Patch Automatically:
package.jsonto apply the patch after installation. Add the following to your scripts section:npm install,patch-packagewill automatically apply the patch to theboost.podspecfile.move to node_modules/react-native/third-party-podspecs. Only change line spec.source = { :http => ‘https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2’, :sha256 => ‘6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e’ } to spec.source = { :http => ‘https://sourceforge.net/projects/boost/files/boost/1.83.0/boost_1_83_0.tar.bz2’, :sha256 => ‘6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e’ }
Maybe jfrog close their server
Changing the checksum without knowing what happened isn’t a good solution. The checksum ensures the integrity and authenticity of your downloaded file, protecting against corrupted, incomplete, or maliciously altered files. If you bypass the checksum verification, you risk introducing security vulnerabilities, stability issues, or subtle bugs in your application. These can be challenging to diagnose and may compromise your application or user data.
So there’s a reason why they use checksums and it’s up to you all if you want to skip it 😅
Yes:
node_modules/react-native/third-party-podspecsfrom the root of your projectboost.podspecfor the version you need to useI have the same issue with React Native 0.72.7
Error installing boost Verification checksum was incorrect, expected f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41, got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff
boost version 1.76.0
Fixed https://www.boost.org/users/history/version_1_76_0.html
I saw you removed your comment, but I understand it’s frustrating. I wanted my GHA workflow to work before the end of the year, as one of my last projects of 2023 and was also a bit frustrated, but these things can happen. Nothing works flawless in this world (not talking about RN specifically 😂), we all work with open source and can’t “demand” flawless code. We can “demand” ourselves to help and come up with fixes/patches and so on to unblock ourselves and others 😅
Doesn’t work. It just hangs “installing boost (1.76.0)” Using sourceforge
Facing the same issue on M1 machine
as an update, for boost 1.76.0 the boost.podspec file should be
Errors
In my case updating the version didn’t work. it throw an error
By trying to understand the error it quite obviously the checksum doesn’t match and even if I force it to match it throws another error
Solution
use a patch and change the url of the boost file. It looks someone updated the frog link somehow not sure but even forcing to the actual checksum it still throws error like file is not correct format
so go here https://www.boost.org/users/history/ where you can find all the version. find the one you need and check the checksum
in my case this was the file link and this was the checksum and interesting is the checksum did match with the legacy one I got initially from react native
just paste the link instead of the frog one and it works!
It started to happen again today…
@wswebcreation
@wswebcreation Thanks this works for me.
Try running with
verbose,pod install --verbose. Boost is 100+ MB ish depending on your connection.Hey all, Nicola here from the React Native team. Here is the official recommendation on how to overcome this failure:
@tyler-canton
😳, what do you mean? I believe this is just you:
everyone is doing it’s best here, during the weekend/evening/spare time.
I would expect a more professional and reasonable response from a, assuming, “professional” developer.
If you believe this could have been prevented then please help and keep these demotivating replies where they belong
Just replace 83 with 76 and 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e with f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41
https://github.com/boostorg/boost/issues/843#issuecomment-1872918846
Thank you this is work for me:
[root]/node_modules/react-native/third-party-podspecs/boost.podspec spec.source = { :http => ‘https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2’,
line: 13 react native version: 0.71.11
Hi @gregoripolak ,
The url is now:
https://archives.boost.io/ https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.bz2
JFrog was donating bandwidth. After years, they have requested we switch to another service, to mitigate costs.
Yes. It just started again about an hour ago. Working to get it fixed…
for anyone else having issues still i stumbled onto easier fix for Podfile vs patch-package approach might be worth trying if not able to upgrade yet
https://github.com/boostorg/boost/issues/996#issuecomment-2574671532
@Lazar4o
Great.
The boost download was hosted on JFrog until December 31, 2024 when the service ended. Therefore the problem “appeared out of nowhere” on Jan 1, 2025.
Although not completely out of nowhere. the switch was announced in the mailing list, in github issues, and boost.org has pointed to the new download links for 6 months.
Hi this issue is currently appearing again for us, looks like jfrog is having a hard time with the new years.
React-Native 0.68.1Guys!
DO NOT REPLACE HASHSUM
Replace this url
https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2with
https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2Thanks, how temporary is this? Can we rely on this for the coming future, or do you have a TTL on this?
Instead of using sourceforge, using
https://archives.boost.io/releaseworks for meThis is still a problem right now it seems…
yes boost jfrog url is now working actually.
This is a temporary mirror site: https://archives.boost.io/release/1.84.0/source/
Hopefully the jfrog links will be restored soon.
I call this patch method in my post-install script, it works fine:
though installing from sourceforge is extremely slow
I temporarily fixed the bug, but when will this be resolved?
@ronenempathy
You are not creating a new module, you are creating a patch in your project that will be installed when you do the
npm iThe steps mentioned above create the patch, here’s how it looks like in my case
is there another solution instead of the
patch-package? 👀 I would not like to do thepatch-packageFacing the same issue now, changing to
https://archives.boost.io/releaseworkedThis patch fixed the issue for me.
@sdarwin Thanks. I confirm that the checksum is same.
@agrittiwari @Mitdd9707 try replacing spec.platforms with:
spec.platforms = { :ios => '11.0' }and create a patch again usingnpx patch-package react-nativeNot sure if this is the best solution, it works for me.
npm install --save-dev patch-package postinstall-postinstall
package.json scripts add “postinstall”: “patch-package”
modify node_modules/react-native/third-party-podspecs/boost.podspec
spec.source = { :http => ‘https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2’, :sha256 => ‘f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41’ }
npx patch-package react-native
cd ios && pod install
Could someone explain to me how this error appears out of nowhere? It seems that no one on my team is experiencing this issue.
My patch file loosk like:
into patches/react-native@0.72.7.patch (or your own version)
Because you have the package cached and is not required to re-download. CI is probably uncached
You were right, the issue was with cocoapods version, I installed 1.13 and the error went away
@OmkarK45 , if you update this file
node_modules/react-native/third-party-podspecs/boost.podspecand the issue still occurs, the issues is not with a patch. Try:PodsdirPodfile.lockandpod installagain.Replacing it to https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2 works Thanks a lot!!!
update cocoapod(brew install cocoapods), worked for me.
I applied the patch for boost v1.76.0 and changed the podfile
node_modules/react-native/third-party-podspecs/boost.podspecspec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2', :sha256 => '5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff' }but when I attempt
pod installI’m gettinghave tried
rm -rf ~/Library/Caches/CocoaPods rm -rf ios/Pods rm -rf ~/Library/Developer/Xcode/DerivedData/* cd ios pod deintegrate pod setup pod installstill getting the same result
Implemented the changes suggested as Suggested above, but it really didn’t solve the problem. Made a patch of it, it doesn’t solve the upstream problem, but crashes the pod install, somehow.
same here
Try creating patch on your local computer and upload generated patch then modify package.json file to apply patches. This should work.
What about for build systems like AppCenter, where node_modules are created at build time?
We are not changing the checksum. Original link is broken, just replacing it with sourceforge link.