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 6 months ago
- Reactions: 45
- Comments: 86 (6 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 6 months 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 6 months 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 6 months ago
- fix: React Native Patch due to issue https://github.com/boostorg/boost/issues/843 — committed to haqq-network/haqq-wallet by devkudasov 6 months ago
- fix: React Native Patch due to issue https://github.com/boostorg/boost/issues/843 — committed to haqq-network/haqq-wallet by devkudasov 6 months ago
- fix: React Native Patch due to issue https://github.com/boostorg/boost/issues/843 (#1607) — committed to haqq-network/haqq-wallet by devkudasov 6 months 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 6 months 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 6 months 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 6 months ago
- OPS: Temporary fix due to mismatch in dependency https://github.com/boostorg/boost/issues/843#issuecomment-1872943124 — committed to BlueWallet/BlueWallet by marcosrdz 6 months ago
- Fix ios build by patching boost https://github.com/boostorg/boost/issues/843#issuecomment-1872943124 — committed to AudiusProject/audius-protocol by dylanjeffers 6 months 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 6 months 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 6 months 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 6 months 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 6 months 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 5 months 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.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 😅
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
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 😅
Yes:
node_modules/react-native/third-party-podspecsfrom the root of your projectboost.podspecfor the version you need to usejfrog started working again. We can download boost file from jfrog without error now.
Doesn’t work. It just hangs “installing boost (1.76.0)” Using sourceforge
I 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
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
Yes. It just started again about an hour ago. Working to get it fixed…
Facing the same issue on M1 machine
Thanks, 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?
Just replace 83 with 76 and 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e with f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41
https://github.com/boostorg/boost/issues/843#issuecomment-1872918846
Guys!
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.bz2Facing 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.
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.
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.
@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
We are not changing the checksum. Original link is broken, just replacing it with sourceforge link.