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

failed to download (hint: running helm repo update may help) #658

Closed
lwsanty opened this issue Jan 13, 2021 · 7 comments
Closed

failed to download (hint: running helm repo update may help) #658

lwsanty opened this issue Jan 13, 2021 · 7 comments
Labels

Comments

@lwsanty
Copy link

lwsanty commented Jan 13, 2021

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: v0.14.4
Provider version: 2.0.1
Kubernetes version: 1.17.13-gke.2600

Affected Resource(s)

  • helm_release

Terraform Configuration Files

resource "helm_release" "grafana" {
  name       = "grafana"
  chart      = "grafana"
  namespace  = "grafana"
  version    = "5.5.7"
  repository = var.chart_repo // we use ours https://${token}@raw.githubusercontent.com/${org}/helm-repo/tmp/
  timeout    = var.chart_timeout
  depends_on = [
    kubernetes_namespace.namespace,
    var.module_depends_on
  ]
  // vars
}

Debug Output

Error: failed to download "https://${token}@raw.githubusercontent.com/${org}/helm-repo/tmp/grafana-5.5.7.tgz" (hint: running `helm repo update` may help)


2021-01-13T12:26:05.297+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-01-13T12:26:05.297+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-01-13T12:26:05.298+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-01-13T12:26:05.298+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"

NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.

Panic Output

Steps to Reproduce

  1. terraform apply

Expected Behavior

Changes have been applied successfully.

Actual Behavior

  1. error appears
Error: failed to download "https://${token}@raw.githubusercontent.com/${org}/helm-repo/tmp/grafana-5.5.7.tgz" (hint: running `helm repo update` may help)


2021-01-13T12:26:05.297+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-01-13T12:26:05.297+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-01-13T12:26:05.298+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-01-13T12:26:05.298+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
  1. after re-run of terraform apply the update plan is up to date(no changes detected), seems like it updates the state during the failed run

Important Factoids

  • it was working before 2.0.1
  • dynamically reproduced in majority of cases
  • we have CD with the similar steps to the local ones with terraform initialization and this error is not reproduced there

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@lwsanty lwsanty added the bug label Jan 13, 2021
@eprokofev
Copy link

tested on provider 2.0.0, same error

@eprokofev
Copy link

helm provider 1.3.2 - same behaviour

@eprokofev
Copy link

eprokofev commented Feb 12, 2021

added variable HELM_DEBUG=1 and did apply one more time. Got more specific error
Error: no cached repo found. (try 'helm repo update'): open /Users/****/Library/Caches/helm/repository/incubator-index.yaml: no such file or directory
on helm.tf line 1, in resource "helm_release" "alb_ingress_controller": 1: resource "helm_release" "alb_ingress_controller" {

After that I've tried to runhelm repo update manually and got an error: ...Unable to get an update from the "incubator" chart repository (https://kubernetes-charts-incubator.storage.googleapis.com): failed to fetch https://kubernetes-charts-incubator.storage.googleapis.com/index.yaml : 403 Forbidden

So I removed that incubator repo from my helm config.
After that I've applied helm chart with terraform successfully.

@aareet
Copy link
Contributor

aareet commented Feb 12, 2021

thanks for reporting your resolution @bigvandi. @lwsanty are you still facing this issue?

@lwsanty
Copy link
Author

lwsanty commented Feb 16, 2021

@aareet seems like the solution of @bigvandi helps, thank you

@ghost ghost removed the waiting-response label Feb 16, 2021
@aareet
Copy link
Contributor

aareet commented Feb 16, 2021

Great, thank you. In that case, I'll close this

@aareet aareet closed this as completed Feb 16, 2021
@ghost
Copy link

ghost commented Mar 19, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

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

No branches or pull requests

3 participants