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: Get http://localhost:8080/api/v1/namespaces/kube-system/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp 127.0.0.1:8080: connect: connection refused #4020

Closed
tamama opened this issue May 8, 2018 · 15 comments

Comments

@tamama
Copy link

tamama commented May 8, 2018

Hi there,

I would like to report a bug. Here are the logs.

helm list -- NOT OK
[root@london-node-227 ~]# helm list
Error: Get http://localhost:8080/api/v1/namespaces/kube-system/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp 127.0.0.1:8080: connect: connection refused

helm version -- OK
[root@london-node-227 ~]# helm version
Client: &version.Version{SemVer:"v2.9.0", GitCommit:"f6025bb9ee7daf9fee0026541c90a6f557a3e0bc", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.0", GitCommit:"f6025bb9ee7daf9fee0026541c90a6f557a3e0bc", GitTreeState:"clean"}
[root@london-node-227 ~]#

kubectl version -- OK
[root@london-node-227 ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.2", GitCommit:"81753b10df112992bf51bbc2c2f85208aad78335", GitTreeState:"clean", BuildDate:"2018-04-27T09:22:21Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.2", GitCommit:"81753b10df112992bf51bbc2c2f85208aad78335", GitTreeState:"clean", BuildDate:"2018-04-27T09:10:24Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

helm init --debug -- OK
[root@london-node-227 ~]# helm init --debug
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: helm
name: tiller
name: tiller-deploy
namespace: kube-system
spec:
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: helm
name: tiller
spec:
automountServiceAccountToken: false
containers:
- env:
- name: TILLER_NAMESPACE
value: kube-system
- name: TILLER_HISTORY_MAX
value: "0"
image: gcr.io/kubernetes-helm/tiller:v2.9.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /liveness
port: 44135
initialDelaySeconds: 1
timeoutSeconds: 1
name: tiller
ports:
- containerPort: 44134
name: tiller
- containerPort: 44135
name: http
readinessProbe:
httpGet:
path: /readiness
port: 44135
initialDelaySeconds: 1
timeoutSeconds: 1
resources: {}
status: {}

apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: helm
name: tiller
name: tiller-deploy
namespace: kube-system
spec:
ports:

  • name: tiller
    port: 44134
    targetPort: tiller
    selector:
    app: helm
    name: tiller
    type: ClusterIP
    status:
    loadBalancer: {}
    ...
    Creating /root/.helm
    Creating /root/.helm/repository
    Creating /root/.helm/repository/cache
    Creating /root/.helm/repository/local
    Creating /root/.helm/plugins
    Creating /root/.helm/starters
    Creating /root/.helm/cache/archive
    Creating /root/.helm/repository/repositories.yaml
    Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
    Adding local repo with URL: http://127.0.0.1:8879/charts
    $HELM_HOME has been configured at /root/.helm.

Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.

Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!

@tamama
Copy link
Author

tamama commented May 8, 2018

Am I missing anything?

@tamama
Copy link
Author

tamama commented May 8, 2018

FYI, I installed my k8s cluster via kubeadm v.1.10.2 + Flannel cni

@bacongobbler
Copy link
Member

bacongobbler commented May 8, 2018

closing as a duplicate of #3985 which was fixed in #3990. For now, please use the supplied workarounds in #3985 to fix your issue. Thanks! :)

@bacongobbler
Copy link
Member

This has been fixed in helm v2.9.1, which is available here: https://github.com/kubernetes/helm/releases/v2.9.1

Thanks!

@openthings
Copy link

openthings commented May 20, 2018

I have updated to V2.9.1,But problem still existed.

openthings@openthings:~/openthings/helm-charts/stable$ helm version
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
openthings@openthings:~/openthings/helm-charts/stable$ helm list
Error: Get http://localhost:8080/api/v1/namespaces/kube-system/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp 127.0.0.1:8080: connect: connection refused

Run command below will fix it( I'm tested, OK).

kubectl -n kube-system patch deployment tiller-deploy -p '{"spec": {"template": {"spec": {"automountServiceAccountToken": true}}}}'

or as following( I'm not test it) :

helm init --service-account default

I am using:

Ubuntu 16.04.3 LTS
Kubernetes 1.10.2
Helm 2.9.1

@jazzmr
Copy link

jazzmr commented Jul 18, 2018

hi tamama, have you resolve this question?

I have meet this question and I try all methods I can find, but I failed

@tamama
Copy link
Author

tamama commented Jul 18, 2018

I remembered that I have resolved this issue a few months ago.

To be honest, I think that Helm was not yet stable at that time, and I am not confident to use it - even though the concept of package manager on k8s is very sexy by itself.

I will give it another shot pretty soon once I find some time to re-investigate k8s. And I will keep you updated.

@subravi92
Copy link

Hi Tamama, could u pls let me know the solution. I am facing the same issue. Helm version is v2.14.2

@tamama
Copy link
Author

tamama commented Aug 8, 2019

That was ages ago... :(

This did the trick for me last time...
helm init --service-account default
helm list

@zffocussss
Copy link

@subravi92 me too.I am using 2.14.2.
It works in my local PC.but when in bitbucket pipeline,it fails

@subravi92
Copy link

@zffocussss , I was able to resolve the issue.it was due to certificate issue. May be u would need to check the certificate on server side.

@onedr0p
Copy link

onedr0p commented Dec 5, 2019

This solved it for me

update-alternatives --set iptables /usr/sbin/iptables-legacy

@zffocussss
Copy link

@zffocussss , I was able to resolve the issue.it was due to certificate issue. May be u would need to check the certificate on server side.

I am afraid it is a network issue

@francis826
Copy link

francis826 commented Jan 24, 2020

As mentioned in this thread already, the following from praseodym/kubernetes-website@a4cce32 fixed this problem for me, along with other networking issues.

update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
update-alternatives --set arptables /usr/sbin/arptables-legacy
update-alternatives --set ebtables /usr/sbin/ebtables-legacy

@goginenigvk
Copy link

getting the below error. Can someone look into the issue
Error: Get https://100.64.0.1/api/v1/namespaces/helm/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: x509: certificate signed by unknown authority

[UAT:]> helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
[UAT:
]> kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.12", GitCommit:"e2a822d9f3c2fdb5c9bfbe64313cf9f657f0a725", GitTreeState:"clean", BuildDate:"2020-05-06T05:17:59Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.12", GitCommit:"a8b52209ee172232b6db7a6e0ce2adc77458829f", GitTreeState:"clean", BuildDate:"2019-10-15T12:04:30Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"linux/amd64"}

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

9 participants