Error: UPGRADE FAILED: "knative" has no deployed releases

Summary

Due to a Helm bug, installing Knative results in an error:

Error: UPGRADE FAILED: "knative" has no deployed releases

Steps to reproduce

  • Have a failure installing the Knative application for the first time
  • Try to install Knative application again

Example Project

(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)

(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)

What is the current bug behavior?

We see this error in the install-knative pod:

Error: UPGRADE FAILED: "knative" has no deployed releases

What is the expected correct behavior?

(What you should see instead)

Relevant logs and/or screenshots

...Successfully got an update from the "knative" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 
+ helm upgrade knative knative/knative --install --reset-values --tls --tls-ca-cert /data/helm/knative/config/ca.pem --tls-cert /data/helm/knative/config/cert.pem --tls-key /data/helm/knative/config/key.pem --version 0.3.0 --set 'rbac.create=true,rbac.enabled=true' --namespace gitlab-managed-apps -f /data/helm/knative/config/values.yaml
error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:43415->127.0.0.1:59102: write tcp4 127.0.0.1:43415->127.0.0.1:59102: write: broken pipe E 
Error: UPGRADE FAILED: "knative" has no deployed releases

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Use --atomic when installing helm chart

Possible workaround

Use https://gitlab.com/gitlab-org/gitlab-ce/issues/56591#workaround-for-now to connect to Tiller then manually delete that chart

Edited Nov 28, 2019 by Thong Kuah
Assignee Loading
Time tracking Loading