Skip to content
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

Line 160 in Dockerfile.linux fails checksum check #4409

Open
the8woodcutter opened this issue Feb 9, 2025 · 1 comment
Open

Line 160 in Dockerfile.linux fails checksum check #4409

the8woodcutter opened this issue Feb 9, 2025 · 1 comment

Comments

@the8woodcutter
Copy link

Here's my error where bulding the docker image fails and quits:

  • These errors occur starting on line 159 of Dockerfile.linux
    • The original command I ran was sudo docker build --tag monero:build-env-windows --build-arg THREADS=4 --file Dockerfile.linux . as stated at line 135 in README.md
 => ERROR [18/28] RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1  1.9s
------                                                                                                    
 > [18/28] RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz &&     echo "4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847 boost_1_80_0.tar.gz" | sha256sum -c &&     tar -xzf boost_1_80_0.tar.gz &&     rm boost_1_80_0.tar.gz &&     cd boost_1_80_0 &&     ./bootstrap.sh &&     ./b2 --with-atomic --with-system --with-filesystem --with-thread --with-date_time --with-chrono --with-regex --with-serialization --with-program_options --with-locale variant=release link=static runtime-link=static cflags="-fPIC" cxxflags="-fPIC" install -a --prefix=/usr &&     rm -rf $(pwd):
0.426 --2025-02-09 04:37:42--  https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz
0.435 Resolving boostorg.jfrog.io (boostorg.jfrog.io)... 3.95.117.170, 18.214.194.113, 18.232.172.199
0.607 Connecting to boostorg.jfrog.io (boostorg.jfrog.io)|3.95.117.170|:443... connected.
0.999 HTTP request sent, awaiting response... 302 Moved Temporarily
1.129 Location: https://landing.jfrog.com/reactivate-server/boostorg [following]
1.129 --2025-02-09 04:37:42--  https://landing.jfrog.com/reactivate-server/boostorg
1.129 Resolving landing.jfrog.com (landing.jfrog.com)... 3.95.117.170, 18.214.194.113, 18.232.172.199
1.217 Connecting to landing.jfrog.com (landing.jfrog.com)|3.95.117.170|:443... connected.
1.607 HTTP request sent, awaiting response... 200 OK
1.746 Length: 11534 (11K) [text/html]
1.747 Saving to: 'boost_1_80_0.tar.gz'
1.747 
1.747      0K .......... .                                          100%  107K=0.1s
1.852 
1.852 2025-02-09 04:37:43 (107 KB/s) - 'boost_1_80_0.tar.gz' saved [11534/11534]
1.852 
1.864 sha256sum: WARNING: 1 computed checksum did NOT match
1.864 boost_1_80_0.tar.gz: FAILED
------
Dockerfile.linux:159
--------------------
 158 |     
 159 | >>> RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz && \
 160 | >>>     echo "4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847 boost_1_80_0.tar.gz" | sha256sum -c && \
 161 | >>>     tar -xzf boost_1_80_0.tar.gz && \
 162 | >>>     rm boost_1_80_0.tar.gz && \
 163 | >>>     cd boost_1_80_0 && \
 164 | >>>     ./bootstrap.sh && \
 165 | >>>     ./b2 --with-atomic --with-system --with-filesystem --with-thread --with-date_time --with-chrono --with-regex --with-serialization --with-program_options --with-locale variant=release link=static runtime-link=static cflags="${CFLAGS}" cxxflags="${CXXFLAGS}" install -a --prefix=/usr && \
 166 | >>>     rm -rf $(pwd)
 167 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz &&     echo \"4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847 boost_1_80_0.tar.gz\" | sha256sum -c &&     tar -xzf boost_1_80_0.tar.gz &&     rm boost_1_80_0.tar.gz &&     cd boost_1_80_0 &&     ./bootstrap.sh &&     ./b2 --with-atomic --with-system --with-filesystem --with-thread --with-date_time --with-chrono --with-regex --with-serialization --with-program_options --with-locale variant=release link=static runtime-link=static cflags=\"${CFLAGS}\" cxxflags=\"${CXXFLAGS}\" install -a --prefix=/usr &&     rm -rf $(pwd)" did not complete successfully: exit code: 1

My system is Debian 12.8 and fairly new build of it.. I installed docker as per docker's website instructions, works fine. I discovered this issue's solution, unless I'm wrong pls say so:

checksum for file:
https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz is:
79e6d3f986444e5a80afbeccdaf2d1c1cf964baa8d766d20859d653a16c39848
And is expected to be:
4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847

However I did find that the same filename and version at: https://archives.boost.io/release/1.80.0/source/boost_1_80_0.tar.gz that has checksum that is correct and sought after in the script.

I did no tests to make sure they were indeed exact same files, I simply swapped the URLS and reran the docker build. Hope I helped cuz I have never posted an issue on github before 🥳 🌴 🎈

@tobtoht
Copy link
Contributor

tobtoht commented Feb 9, 2025

Fixed by #4401.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants