website icon indicating copy to clipboard operation
website copied to clipboard

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

Open TrucullentFreddi opened this issue 4 years ago • 5 comments
trafficstars

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

TrucullentFreddi avatar Aug 18 '21 07:08 TrucullentFreddi

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

TrucullentFreddi avatar Aug 18 '21 07:08 TrucullentFreddi

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

TrucullentFreddi avatar Aug 18 '21 07:08 TrucullentFreddi

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

TrucullentFreddi avatar Aug 18 '21 07:08 TrucullentFreddi

Thanks for this report @TrucullentFreddi

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?

Like any project, sometimes mistakes creep in, this is why we appreciate reports like this so much. We welcome PRs to fix incorrect information.

Which page are you referring to here (could you provide a link)? Is it the latest release? Older releases are provided as an archive, and may not reflect the current state of etcd.

nate-double-u avatar Aug 18 '21 14:08 nate-double-u

Which page

https://etcd.io/docs/v3.5/op-guide/runtime-configuration/

TrucullentFreddi avatar Aug 19 '21 06:08 TrucullentFreddi