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

Files in cache not being served to clients. releases.hashicorp.com download URL's still being used #6

Open
circa10a opened this issue Sep 15, 2024 · 1 comment

Comments

@circa10a
Copy link

Once the mirror is initialized with several terraform init's done to populate the cache, I modified my /etc/hosts to disable connectivity to registry.terraform.io and releases.hashicorp.com. Once I did that and deleted my local .terraform/ directory containing providers, re-ran terraform init I received the following error from Terraform:

│ Error while installing hashicorp/aws
│ v5.67.0: releases.hashicorp.com: Get
│ "https://releases.hashicorp.com/terraform-provider-aws/5.67.0/terraform-provider-aws_5.67.0_darwin_amd64.zip":
│ remote error: tls: internal error

It appears all of the provider .zip files are download into my OS's temp directory, but those files are not being served as download URL's are not being replaced with path's to the files cached on the file system. I guess my question is, is this expected? This behavior defeats the purpose of having a mirror.

@dmnord
Copy link

dmnord commented Oct 7, 2024

I can confirm the same behavior since I decided to reproduce this way.

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