-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 member list ==> Failed to get leader: client: etcd cluster is unavailable or misconfigured #7171
Comments
@gyuho i have see #6114 and #5940,and understand the concept of quorum error logs
cluster-health
centos1 is unaccessable after i add centos2 from #6114
is it can't be fixed? |
@hdfeng265 If you added a wrong endpoint to 1-node cluster, there's no way to fix it right now. |
The recovery procedure is rather simple. When you accidentally add a new member to a single member cluster. Just start the original etcd with |
etcdctl member list ==> Failed to get leader: client: etcd cluster is unavailable or misconfigured
version: etcdctl version 2.3.7
OS: CentOS7
cluster has two node: centos1 centos2
use Static mechanism to bootstrap cluster
centos1 is master,can start normally,but is unhealthy,can't access via etcdctl,any operation is failed
logs on centos1
1月 18 00:35:31 centos1 etcd[7426]: ce2a822cea30bfca is starting a new election at term 3895
1月 18 00:35:31 centos1 etcd[7426]: ce2a822cea30bfca became candidate at term 3896
1月 18 00:35:31 centos1 etcd[7426]: ce2a822cea30bfca received vote from ce2a822cea30bfca at term 3896
1月 18 00:35:31 centos1 etcd[7426]: ce2a822cea30bfca [logterm: 69, index: 552812] sent vote request to 4d38d14ebef23f13 at term 3896
1月 18 00:35:32 centos1 etcd[7426]: publish error: etcdserver: request timed out
1月 18 00:35:32 centos1 etcd[7426]: ce2a822cea30bfca is starting a new election at term 3896
1月 18 00:35:32 centos1 etcd[7426]: ce2a822cea30bfca became candidate at term 3897
1月 18 00:35:32 centos1 etcd[7426]: ce2a822cea30bfca received vote from ce2a822cea30bfca at term 3897
1月 18 00:35:32 centos1 etcd[7426]: ce2a822cea30bfca [logterm: 69, index: 552812] sent vote request to 4d38d14ebef23f13 at term 3897
1月 18 00:35:33 centos1 etcd[7426]: ce2a822cea30bfca is starting a new election at term 3897
1月 18 00:35:33 centos1 etcd[7426]: ce2a822cea30bfca became candidate at term 3898
centos2 is added to cluster,can't start
logs on centos2
1月 18 00:06:37 centos2 etcd[6230]: resolving centos1:2380 to 192.168.126.128:2380
1月 18 00:06:37 centos2 etcd[6230]: resolving centos1:2380 to 192.168.126.128:2380
1月 18 00:06:37 centos2 etcd[6230]: stopping listening for client requests on https://centos2:2379
1月 18 00:06:37 centos2 etcd[6230]: stopping listening for peers on https://centos2:2380
1月 18 00:06:37 centos2 etcd[6230]: error validating peerURLs {ClusterID:7e27652122e8b2ae Members:[&{ID:4d38d14ebef23f13 RaftAttributes:RaftAttributes:{PeerURLs:[https://centos2:2380]} Attributes:{Name: ClientURLs:[]}} RaftAttributes:{PeerURLs:[http://centos1:2380]} Attributes:{Name:centos1 ClientURLs:[https://centos1:2379]}}] RemovedMemberIDs:[]}: unmatched member
1月 18 00:06:37 centos2 systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
1月 18 00:06:37 centos2 systemd[1]: Failed to start Etcd Server.
-- Subject: Unit etcd.service has failed
http://centos1:2380 is wrong, the correct is https://centos1:2380
it seems
centos1 waiting for centos2 to vote,but centos2 can't start because centos1's wrong config
and centos1 can't be access because there's no leader
is is right, and how to fix this problem, thank you
The text was updated successfully, but these errors were encountered: