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

getting access denied when trying to download terraform installer #27866

Closed
VigneshPonraj opened this issue Feb 22, 2021 · 23 comments
Closed

getting access denied when trying to download terraform installer #27866

VigneshPonraj opened this issue Feb 22, 2021 · 23 comments

Comments

@VigneshPonraj
Copy link

##[error]Error: Failed to download Terraform from url https://releases.hashicorp.com/terraform/0.13.3/terraform_0.13.3_windows_amd64.zip. Error Error: Unexpected HTTP response: 403

Tried manually going to the url
https://www.terraform.io/downloads.html

@treyhendon
Copy link

Was coming to report. The HashiCorp Services Status page does not a "report an issue" option, but shows all is well. https://status.hashicorp.com/

@treyhendon
Copy link

Getting similar to this Vagrant issue several years ago: hashicorp/vagrant#6298

@pcwiek
Copy link

pcwiek commented Feb 22, 2021

Same with the provider registry

Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file

Error: Failed to install provider

Error while installing hashicorp/aws v3.20.0: could not query provider
registry for registry.terraform.io/hashicorp/aws: failed to retrieve
authentication checksums for provider: 403 Forbidden

@jpke
Copy link

jpke commented Feb 22, 2021

dunno if this is related?

Initializing provider plugins...
- Checking for available provider plugins...

Error verifying checksum for provider "aws"
The checksum for provider distribution from the Terraform Registry
did not match the source. This may mean that the distributed files
were changed after this version was released to the Registry.

@dsavell
Copy link

dsavell commented Feb 22, 2021

Getting the same issue. On any download under the following:

Pipelines
##[error]Error: Failed to download Terraform from url https://releases.hashicorp.com/terraform/0.13.6/terraform_0.13.6_linux_amd64.zip. Error Error: Unexpected HTTP response: 404

Firefox
releases.hashicorp.com/terraform/
403 Forbidden
Code: AccessDenied
Message: Access Denied

@AbirAbbas
Copy link

Getting a similar issue, seems like the registry is returning 404 not found

@kubadawczynski
Copy link

There is official info
image

@jboero
Copy link

jboero commented Feb 22, 2021

Works for me in UK. This is probably another CDN sync issue.

@jboero
Copy link

jboero commented Feb 22, 2021

I've tried VPNs to USA, 4 EU countries, all work. Maybe this is regional to APJ?

@jcollum
Copy link

jcollum commented Feb 22, 2021

I'm in the US, getting a 404 on https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_darwin_amd64.zip

@jcollum
Copy link

jcollum commented Feb 22, 2021

https://status.hashicorp.com/ -- that's where @kubada found it

@jboero
Copy link

jboero commented Feb 22, 2021

It won't help providers but installing the binaries can still be done by our RPM/DEB repos:

# RPM systemd distros:
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo

# APT or DEB systemd distros:
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

@jcf
Copy link

jcf commented Feb 22, 2021

Running terraform init locally from the UK does not work for me. I'm seeing the same issues with checksums and downloading providers on Terraform Cloud.

Error: Failed to install provider

Error while installing hashicorp/random v3.1.0: could not query provider
registry for registry.terraform.io/hashicorp/random: failed to retrieve
cryptographic signature for provider: 404 Not Found

@jboero
Copy link

jboero commented Feb 22, 2021

I'm in the US, getting a 404 on https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_darwin_amd64.zip

Strange I'm getting 403 on that. Hmm

@ruairidhwm
Copy link

ruairidhwm commented Feb 22, 2021

Still getting a 404 here in Scotland.

Edit: Seems to be back!

@jcollum
Copy link

jcollum commented Feb 22, 2021

@jboero i'm getting 403 via the url but 404 via tfenv tool

@jboero
Copy link

jboero commented Feb 22, 2021

Thanks for the update. Browsing works but direct links don't. Support is on this.

@CaptainStealthy
Copy link

I'm getting 403's galore in Canada... both when downloading binaries directly as well as terraform init

@Fresa
Copy link

Fresa commented Feb 22, 2021

seems it's coming back now!

@hinchley2018
Copy link

We saw this issue in US as well. Then it seems like its working now glad to see such a quick resolution! 👏

@cpaggen
Copy link

cpaggen commented Feb 22, 2021

We saw this issue in US as well. Then it seems like its working now glad to see such a quick resolution! 👏

Well .. the change they introduced in the providers path broke essentially everything. Doesn't get much worse :)

@danieldreier
Copy link
Contributor

Hi! I really appreciate everyone reporting this. The root cause here is an incident in the releases.hashicorp.com and registry infrastructure. I'm going to close this and related issues and consolidate any ongoing discussion into #27872. Please do let us know in that issue if you are still having trouble downloading Terraform or providers.

@ghost
Copy link

ghost commented Mar 25, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests