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

Error: incompatible versions client[v2.9.1] server[v2.8.2] #4547

Closed
ajindal3 opened this issue Aug 28, 2018 · 10 comments
Closed

Error: incompatible versions client[v2.9.1] server[v2.8.2] #4547

ajindal3 opened this issue Aug 28, 2018 · 10 comments

Comments

@ajindal3
Copy link

ajindal3 commented Aug 28, 2018

Output of helm version: client - v2.9.1, server v2.8.2

Output of kubectl version: client :- v1.11.2, server:- v1.9.7
Cloud Provider/Platform (AKS, GKE, Minikube etc.): AKS

when I am trying with helm ls --tiller-namespace=<namespace> getting error like Error: incompatible versions client[v2.9.1] server[v2.8.2]. I am a mac book user (installed via brew) and not sure how to downgrade my client version of helm since could not get much help onto it through online. Kindly advise.

@bacongobbler
Copy link
Member

bacongobbler commented Aug 28, 2018

@ajindal3 with homebrew, you can downgrade to a previously installed version of helm via brew switch, or you can upgrade tiller to v2.9.1 via helm init --upgrade. Homebrew is a "rolling release" upgrade model in that you cannot install a specific version at a certain point in time without forking the formula or homebrew formula repository and checking out an older version of the formula.

@technosophos
Copy link
Member

I left a long explanation for why we don't currently do this on #4549.

@bacongobbler
Copy link
Member

this is also a dupe of #1523, so closing this. Thanks @technosophos for the detailed response!

@ajindal3
Copy link
Author

ajindal3 commented Sep 6, 2018

I can see that issue has been closed but I am still struggling to find the brew formula to install a specific helm version i.e., 2.8.2. Since when I do brew install kubernetes-helm, by default it installs the latest version and I don't know how to downgrade my local helm version.

Also, I don't have permission to upgrade tiller.

@bacongobbler
Copy link
Member

@bacongobbler
Copy link
Member

bacongobbler commented Sep 6, 2018

If you're having trouble with Homebrew, older releases of Helm are available on the releases page. Specifically, Helm 2.8.2 can be found here, and the instructions are available in the documentation.

@ahaurat
Copy link

ahaurat commented Sep 20, 2018

@ajindal3 I was having the same issue as you:

$ helm list
Error: incompatible versions client[v2.10.0] server[v2.9.1]

I hadn't previously installed client[v2.9.1] and thus couldn't just brew switch as suggested by @bacongobbler nor did the SO answer linked above have a solution for that situation. I ended up having to follow the steps in a different answer on that SO question: https://stackoverflow.com/a/17757092/2356383

Which basically says

Then I ran the following once I had the url for the correct kubernetes-helm.rb file

$ brew unlink kubernetes-helm
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/78d64252f30a12b6f4b3ce29686ab5e262eea812/Formula/kubernetes-helm.rb
$ brew switch kubernetes-helm 2.9.1

Hope this helps someone.

@germanattanasio
Copy link

@ahaurat you are the real MVP

@kevinhcross
Copy link

In case is anyone ends up on this ticket after searching and wants a better solution than Homebrew to manage Helm installations I recently came across asdf which has a helm plugin. asdf will let you install and switch between any version of Helm. It will even let you create a .tool-versions file in a directory so that the Helm version used in that tree will be different from the global version.

@TJM
Copy link

TJM commented Nov 11, 2019

Why doesn't this just work like brew install kubernetes-helm@v2.9.1 or whatever target version you desire? Is this an issue with homebrew, or helm or _____ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants