-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
etcdctl get: "Error: connection error: connection closed" #8647
Comments
@mahmoudshirivaramini thank you very much for provding the logs, do you mind trying to see if you get exact same problem with Docker driver? minikube delete also do you mind sharing what was the reason you were trying to access etcd manually ? and also could you plz try it with --wait=all so minikube waits for all the components? |
/triage needs-information |
@medyagh I tried with Docker driver:
But got the same error:
I was teaching others etcd architecture and just tried to get all the keys and their values, so the reason is learning.
|
Minikube log attached.
|
thank you @mahmoudshirivaramini for providing detailed reproducible information, I confirm that I also get the same result as you.
however etcd pod itself seem to be running healthy
and here is the logs for etcd pod
|
@mahmoudshirivaramini I think if you pass extra args to make it listen on 0.0.0.0 instead of localhost it might fix your problem
or it could be something about the certs
this does look like a bug this needs more debugging I would accept any help on this ! |
@medyagh I got a shell to the
Here's
Also connecting using HTTPS protocol and skip TLS verification:
Here's
When
|
Hey @mahmoudshirivaramini did using the apiserver certs resolve your issue? |
@mahmoudshirivaramini I wonder if that suggestion helped , did you dig any further into this ? |
@medyagh I solved the issue using ETCD certificates and key that use by kube-apiserver.
And I connected to minikube virtual machine via
And it worked! |
@mahmoudshirivaramini that's great news! I'm going to go ahead and close this issue since you were able to resolve it. Feel free to reopen at any time by commenting /reopen |
Although this thread is closed since 4 years, I got the same issue and were able to find a way to run First, find out, where the certificates are stored in the etcd-node (you don't need server certificates, but the peer ones).
Now call |
I installed kuberctl, minikube, and VirtualBox on ubuntu 20.04 LTS:
versions
virtualbox: VirtualBox Graphical User Interface Version 6.1.6_Ubuntu r137129
OS: Ubuntu 20.04 LTS (Focal Fossa)
kernel: 5.4.0-40-generic
kubectl: Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}"
minikube: v1.11.0 commit: 57e2f55
After up and running minikube, I tried to get from etcd using kubectl:
And also try accessing to etcd by ignoring TLS verification, but I got the same error:
Here are minikube logs:
The last error log related to
storage-provisioner
.The text was updated successfully, but these errors were encountered: