-
Notifications
You must be signed in to change notification settings - Fork 243
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
CRC Setup is failing with "unable to get verified hash for default bundle" #3686
Comments
We've just seen this issue on M1 with pre-release bits (2.20.0) with |
Maybe this timeout which is too short? crc/pkg/crc/machine/bundle/metadata.go Lines 302 to 305 in f3a947b
|
we have to increase this timeout duration, i reused the timeout from the call to check for new version, it could also be related to delayed respose from dns, @RamySabry could you share what dns setup you are using |
as @jsliacan mentioned, work-arond is to run |
the current timeout of 5 seconds seems to be not enough and users are getting an error as a result of this during `crc setup` while increasing the time this error seems to go away, also the 5 sec timeout for release-info.json seems to be working but the sha sum file is bigger (919 bytes vs 532 bytes) fixes crc-org#3686
Might be useful to introduce a helper to get an io.Reader from an http URL instead of duplicating this code twice. Seems easy to do using the current code, but the go package we use in our |
yeah, good idea, we can create a wrapper function to create a |
as a result of using the helper the User-Agent for the http request is `crc/<version>` this was not the case before, but since we were setting the user-agent for downloading the `release-info.json` file it makes sense to use the same User-Agent for downloading the file `sha256sum.txt.sig` this also fixes crc-org#3686
as a result of using the helper the User-Agent for the http request is `crc/<version>` this was not the case before, but since we were setting the user-agent for downloading the `release-info.json` file it makes sense to use the same User-Agent for downloading the file `sha256sum.txt.sig` this also fixes crc-org#3686
as a result of using the helper the User-Agent for the http request is `crc/<version>` this was not the case before, but since we were setting the user-agent for downloading the `release-info.json` file it makes sense to use the same User-Agent for downloading the file `sha256sum.txt.sig` this also fixes #3686
I downloaded the bundle as stated on the error link i.e https://mirror.openshift.com/pub/openshift-v4/clients/crc/bundles/openshift/ on my browser. |
Trying to setup a fresh CRC "crc setup" with the below environment but its failing with the mentioned error below
Error
"unable to get verified hash for default bundle: Get "https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/bundles/openshift/4.12.13/sha256sum.txt.sig": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
CR Version : crc-linux-2.19.0-amd64
Operating System : CentOS-Stream-9-x86_64
Over VMware 16.1.0 build-17198959
Logs are attached "Setup Debug Logs.txt"
(Setup Debug Logs.txt)
The text was updated successfully, but these errors were encountered: