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

Can't build minikube ISO because of wrong hash #14080

Closed
goto-loop opened this issue May 2, 2022 · 5 comments
Closed

Can't build minikube ISO because of wrong hash #14080

goto-loop opened this issue May 2, 2022 · 5 comments
Labels
triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@goto-loop
Copy link

What Happened?

Background: I'm trying to set up minikube on my local machine with kvm2 driver and GPU support. It's not working with the binary release, but I saw there are some recent commits to fix GPU issues so I decided to build the binary and ISO files myself, the latter following this guide.

The problem is that after some time, the make out/minikube.iso command outputs the following error message:

2022-05-02 09:32:04 (5.54 MB/s) - ‘/mnt/out/buildroot/output/build/.v1.5.11.tar.gz.ZXc6uR/output’ saved [7494477]

ERROR: v1.5.11.tar.gz has wrong sha256 hash:
ERROR: expected: 02b79d5e2b07b5e64cd28f1fe84395ee11eef95fc49fd923a9ab93022b148be6
ERROR: got : 6a289406c1c0583763e5a9754e31a1eced55cd5f162a7bc2a3a315d5eb05c7a1
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
--2022-05-02 09:32:04-- http://sources.buildroot.net/containerd-bin/v1.5.11.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.0.37, 104.26.1.37, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-05-02 09:32:04 ERROR 404: Not Found.

--2022-05-02 09:32:04-- http://sources.buildroot.net/v1.5.11.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.0.37, 104.26.1.37, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-05-02 09:32:04 ERROR 404: Not Found.

package/pkg-generic.mk:144: recipe for target '/mnt/out/buildroot/output/build/containerd-bin-v1.5.11/.stamp_downloaded' failed
make[2]: *** [/mnt/out/buildroot/output/build/containerd-bin-v1.5.11/.stamp_downloaded] Error 1
make[2]: Leaving directory '/mnt/out/buildroot'
Makefile:286: recipe for target 'minikube_iso' failed
make[1]: Leaving directory '/mnt'
make[1]: *** [minikube_iso] Error 2
make: *** [out/minikube.iso] Error 2
Makefile:312: recipe for target 'out/minikube.iso' failed
make: *** [Makefile:314: out/minikube.iso] Error 2

I've downloaded the file manually using both CLI and browser and it always has the same checksum as mentioned in the error, but NOT the expected one.

How can I fix this? Maybe it's possible to change the expected checksum as a workaround?

Attach the log file

No log available since the binary can't be built.

Operating System

Ubuntu

Driver

No response

@goto-loop
Copy link
Author

UPDATE: I've had another look at the error message and after the first errors the script tries to download http://sources.buildroot.net/containerd-bin/v1.5.11.tar.gz, which results in an error 404. This is because the directory containerd-bin doesn't exist on the server; however, containerd exists plus it contains a file with the expected hash. I suppose if we changed this URL, the problem would be solved.

@afbjorklund
Copy link
Collaborator

afbjorklund commented May 2, 2022

@afbjorklund
Copy link
Collaborator

afbjorklund commented May 2, 2022

It would be a good idea to provide a cache for the minikube packages, since those are not available at buildroot.net

config BR2_BACKUP_SITE
        string "Backup download site"
        default "http://sources.buildroot.net"
        help
          Backup site to download from. If this option is set then
          buildroot will fall back to download package sources from here
          if the normal location fails.

@afbjorklund afbjorklund added the triage/duplicate Indicates an issue is a duplicate of other open issue. label May 2, 2022
@afbjorklund
Copy link
Collaborator

afbjorklund commented May 2, 2022

Maybe it's possible to change the expected checksum as a workaround?

Yeah, but... 8dca3b0

It will change again.

@afbjorklund
Copy link
Collaborator

Closing as duplicate, just update the hash if it happens to you (again)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

2 participants