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

Installing Loki chart from URL, "Error: gzip: invalid header" #29557

Closed
zhcsyncer opened this issue Oct 16, 2020 · 6 comments
Closed

Installing Loki chart from URL, "Error: gzip: invalid header" #29557

zhcsyncer opened this issue Oct 16, 2020 · 6 comments
Assignees
Milestone

Comments

@zhcsyncer
Copy link

zhcsyncer commented Oct 16, 2020

What kind of request is this (question/bug/enhancement/feature request):
Bug

Steps to reproduce (least amount of steps as possible):

  1. Add loki repository https://grafana.github.io/loki/charts
  2. Install Loki

Result:
image

Other details that may be helpful:

rancher-7c7b6bd945-45zp2 rancher 2020/10/16 01:53:40 [ERROR] Unknown error: gzip: invalid header

Environment information

  • Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.5.1
  • Installation option (single install/HA):
~ (⎈ infra-cluster|cattle-system) ❯❯❯ helm get values rancher -n cattle-system
USER-SUPPLIED VALUES:
hostname: r.xxx.com
ingress:
  extraAnnotations:
    kubernetes.io/ingress.class: edge-nginx
    kubernetes.io/ingress.provider: nginx
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "1800"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"
  tls:
    source: secret
replicas: 1

Cluster information

  • Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Imported
  • Machine type (cloud/VM/metal) and specifications (CPU/memory):
  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-13T18:08:14Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.9-aliyun.1", GitCommit:"4f7ea78", GitTreeState:"", BuildDate:"2020-05-08T07:29:59Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
@Fgruntjes
Copy link

Same issue here but with a custom chart from a private chartmuseum repo

@Fgruntjes
Copy link

@thedadams thnx for the fix! This also gave me the insight to add a slash to the url in my repository spec and now I have a working chart repository.

@bmdepesa bmdepesa assigned jiaqiluo and unassigned sowmyav27 Oct 21, 2020
@jiaqiluo
Copy link
Member

jiaqiluo commented Oct 21, 2020

The bug fix is validated in

  • rancher:master-0390ff5bc542936c93969624c3644ddefb139b52-head
  • rancher:v2.5-61a8a3691063108bc775c8e4e6f6db971541c253-head

Steps:

  • add the repo using the URL https://grafana.github.io/loki/charts , notice that a / is added to the end
    image
  • install the app Loki

Results:
the app is installed successfully
image

@cbron
Copy link
Contributor

cbron commented Oct 27, 2020

This is causing the HTTP helm indexes to be downloaded forever in a loop.

@Fgruntjes
Copy link

@cbron Had the same issue here but that's actualluy due to a bug in chartmuseum to be more precise #23256 was the bug I found in rancher wich led me to helm/chartmuseum#152 and contains your solution.

@izaac
Copy link
Contributor

izaac commented Oct 29, 2020

Rancher version: master-head (10/29/2020) d61a1a4
Rancher version: v2.5-head (10/29/2020) 0465f04

I validated I was able to install from the third party repo without adding a trailing slash and the apps were retrieved from the repo. Listed in the Charts page and I was able to install the Loki app. https://grafana.github.io/loki/charts

Checking the Rancher server logs for the repo index refresh I only found the added repo refreshed a few times over a period of ~30 mins.

2020/10/29 23:09:30 [INFO] Downloading repo index from https://grafana.github.io/loki/charts/index.yaml
2020/10/29 23:09:30 [INFO] Downloading repo index from https://grafana.github.io/loki/charts/index.yaml
2020/10/29 23:09:30 [INFO] Downloading repo index from https://grafana.github.io/loki/charts/index.yaml
2020/10/29 23:14:30 [INFO] Downloading repo index from https://grafana.github.io/loki/charts/index.yaml

No other repo index log was found.

@izaac izaac closed this as completed Oct 29, 2020
@zube zube bot removed the [zube]: Done label Jan 28, 2021
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

8 participants