# Helm error : Error: the server has asked for the client to provide credentials

**URL:** <https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325>\
**Category:** SUSE Rancher Prime\
**Created:** [February 14, 2019, 5:09am UTC](https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325 "2019-02-14T05:09:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnuvpotty](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vishnuvpotty/32/2738_2.png) [@vishnuvpotty](https://forums.suse.com/u/vishnuvpotty)\
**Post date:** [February 14, 2019, 5:09am UTC](https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325/1 "2019-02-14T05:09:39Z")

</div>

Hello All,

I have installed Rancher 2 and created a kubernetes cluster of internal vm’s ( no AWS / gcloud).

The cluster is up and running.

I logged into one of the nodes.

1. Installed Kubectl and executed kubectl cluster-info . It listed my cluster information correctly.

2. Installed helm

3. Configured helm referencing [Rancher Helm Init](https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-init/)

Tried installing Jenkins via helm

```
root@lnmymachine # helm ls
Error: Unauthorized
root@lnmymachine # helm install --name initial stable/jenkins
Error: the server has asked for the client to provide credentials

```

Browsed similar issues and few of them were due to multiple clusters. I have only one cluster. kubectl gives all information correctly.

Any idea whats happening.

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [February 14, 2019, 9:53am UTC](https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325/2 "2019-02-14T09:53:58Z")

</div>

Running the script only installs the client, in your output it shows a running server component (`tiller`), guessing it wasn’t installed with RBAC properly before. And the install steps from Rancher Helm Init will just say it’s already installed. Both errors indicate issues with auth, can you supply exact steps and outputs or retry using [https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-init/troubleshooting/#helm-commands-show-forbidden](https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-init/troubleshooting/#helm-commands-show-forbidden)

```auto
# bash helm.sh
Downloading https://kubernetes-helm.storage.googleapis.com/helm-v2.12.3-linux-amd64.tar.gz
Preparing to install helm and tiller into /usr/local/bin
helm installed into /usr/local/bin/helm
tiller installed into /usr/local/bin/tiller
Run 'helm init' to configure helm.
# helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Error: Get http://localhost:8080/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: dial tcp 127.0.0.1:8080: connect: connection refused                     

```

---

<div class="post-metadata">

**Author:** ![vishnuvpotty](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vishnuvpotty/32/2738_2.png) [@vishnuvpotty](https://forums.suse.com/u/vishnuvpotty)\
**Post date:** [February 15, 2019, 12:30am UTC](https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325/3 "2019-02-15T00:30:40Z")

</div>

Hi @superseb

The issue was missing = in `–clusterrole cluster-admin`. I have copied the command from Rancher docs and executed as it is. Now I submitted a pull request for the correction.

Thanks,  
Vishnu

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [February 15, 2019, 3:02am UTC](https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325/4 "2019-02-15T03:02:10Z")

</div>

That equals shouldn’t be significant… are you sure it’s not because of the dashes? Your post has “smart dashes” instead of two hyphens for the flag, `–` != `--`.

---

<div class="post-metadata">

**Author:** ![vishnuvpotty](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vishnuvpotty/32/2738_2.png) [@vishnuvpotty](https://forums.suse.com/u/vishnuvpotty)\
**Post date:** [February 15, 2019, 3:28am UTC](https://forums.suse.com/t/helm-error-error-the-server-has-asked-for-the-client-to-provide-credentials/13325/5 "2019-02-15T03:28:45Z")

</div>

@vincent I was using two dashes and even my post had dashes, When formatting I think it got converted to smartdashes. Good find.  
To get it working all I did was to add that single “=” nothing else.
