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

etcdctl member promote 8e9e05c52164694d No help topic for 'promote'/ flag provided but not defined: -learner #449 #13297

Closed
TrucullentFreddi opened this issue Aug 18, 2021 · 1 comment
Labels

Comments

@TrucullentFreddi
Copy link

Please read https://etcd.io/docs/latest/reporting_bugs/
Why is there inaccurate information on the official website? Why do I use the syntax specified in the off documentation, and it tells me that the syntax is incorrect?
When i use etcdctl member add infra4 --peer-urls=http://10.0.1.14:2380 --learne. i get an error " flag provided but not defined: -learner"
After i used etcdctl member add node_name, i get error #0: client: etcd member http://192.168.12.131:2379 has no leader.
etcdctl memner list
client: etcd cluster is unavailable or misconfigured; error #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout
; error #1: dial tcp 127.0.0.1:4001: connect: connection refused
But after i used this commands( member add), it loked like
etcdctl member list
8e9e05c52164694d: name=pg_node3 peerURLs=http://localhost:2380 clientURLs=http://192.168.12.133:2379 isLeader=true

etcdctl cluster-health
cluster may be unhealthy: failed to list members
Error: client: etcd cluster is unavailable or misconfigured; error #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout
; error #1: dial tcp 127.0.0.1:4001: connect: connection refused

error #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout
error #1: dial tcp 127.0.0.1:4001: connect: connection refused

systemctl start etcd.service
^Z
[1]+ Stopped systemctl start etcd.service
[root@pg_node1 ~]# ^C

[root@pg_node1 ~]# systemctl status etcd.service
● etcd.service - Etcd Server
Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled; vendor preset: disabled)
Active: activating (start) since Wed 2021-08-18 03:55:47 EDT; 45s ago
Main PID: 2045 (etcd)
CGroup: /system.slice/etcd.service
└─2045 /usr/bin/etcd --name=pg_node1 --data-dir=/var/lib/etcd/default.etcd --listen-client-urls=http://192.168.12.131:2379,http://127.0.0.1:2379

Aug 18 03:56:32 pg_node1 etcd[2045]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to dial f838e30c28c4af8e on stream Message (peer f838e30c28c4af8e failed to find local node 8e9e05c52164694d)
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to dial f838e30c28c4af8e on stream MsgApp v2 (peer f838e30c28c4af8e failed to find local node 8e9e05c52164694d)
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to dial f838e30c28c4af8e on stream Message (peer f838e30c28c4af8e failed to find local node 8e9e05c52164694d)
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to dial f838e30c28c4af8e on stream MsgApp v2 (peer f838e30c28c4af8e failed to find local node 8e9e05c52164694d)
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32
Aug 18 03:56:32 pg_node1 etcd[2045]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32

journalctl -xe
Aug 18 03:57:46 pg_node1 etcd[2063]: failed to dial f838e30c28c4af8e on stream MsgApp v2 (peer f838e30c28c4af8e failed to find local node 8e9e05c52164694d)
Aug 18 03:57:46 pg_node1 etcd[2063]: failed to dial f838e30c28c4af8e on stream Message (peer f838e30c28c4af8e failed to find local node 8e9e05c52164694d)
Aug 18 03:57:46 pg_node1 etcd[2063]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32
Aug 18 03:57:46 pg_node1 etcd[2063]: failed to find member 8e9e05c52164694d in cluster cdf818194e3a8c32

@stale
Copy link

stale bot commented Nov 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 17, 2021
@stale stale bot closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant