adamant-kite-43734
06/26/2023, 7:46 AMhundreds-battery-84841
06/26/2023, 2:39 PMbrash-cpu-62691
06/27/2023, 3:02 AMetcdctl endpoint health
its showing unhealthy
We tried etcd reset but got another issue
https://github.com/k3s-io/k3s/issues/7825hundreds-battery-84841
06/27/2023, 3:10 AMhundreds-battery-84841
06/27/2023, 3:10 AMhundreds-battery-84841
06/27/2023, 3:10 AMbrash-cpu-62691
06/27/2023, 3:15 AMJun 26 04:33:34 k3s[1510]: {"level":"warn","ts":"2023-06-26T04:33:34.490Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"<etcd-endpoints://0xc000d8a000/127.0.0.1:2379>","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
Jun 26 04:33:34 k3s[1510]: time="2023-06-26T04:33:34Z" level=error msg="Failed to check local etcd status for learner management: context deadline exceeded"
Jun 26 04:33:34 k3s[1510]: time="2023-06-26T04:33:34Z" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: <https://127.0.0.1:6443/v1-k3s/readyz>: 500 Internal Server Error"
hundreds-battery-84841
06/27/2023, 3:16 AMbrash-cpu-62691
06/27/2023, 3:18 AMUnit etcd.service could not be found.
K3s has embedded etcdhundreds-battery-84841
06/27/2023, 3:26 AMhundreds-battery-84841
06/27/2023, 3:26 AMbrash-cpu-62691
06/27/2023, 3:28 AMJun 27 03:27:09 k3s[23842]: {"level":"info","ts":"2023-06-27T03:27:09.826Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"6cc15128bccbdf39 is starting a new election at term 12"}
Jun 27 03:27:09 k3s[23842]: {"level":"info","ts":"2023-06-27T03:27:09.826Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"6cc15128bccbdf39 became pre-candidate at term 12"}
Jun 27 03:27:09 k3s[23842]: {"level":"info","ts":"2023-06-27T03:27:09.827Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"6cc15128bccbdf39 received MsgPreVoteResp from 6cc15128bccbdf39 at term 12"}
Jun 27 03:27:09 k3s[23842]: {"level":"info","ts":"2023-06-27T03:27:09.827Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"6cc15128bccbdf39 [logterm: 12, index: 24579453] sent MsgPreVote request to 298b911665c13aa0 at term 12"}
Jun 27 03:27:09 k3s[23842]: {"level":"info","ts":"2023-06-27T03:27:09.827Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"6cc15128bccbdf39 [logterm: 12, index: 24579453] sent MsgPreVote request to f875d12643597ed2 at term 12"}
Jun 27 03:27:12 k3s[23842]: {"level":"warn","ts":"2023-06-27T03:27:12.878Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_SNAPSHOT","remote-peer-id":"298b911665c13aa0","rtt":"0s","error":"dial tcp 10.47.0.4:2380: connect: connection refused"}
Jun 27 03:27:12 k3s[23842]: {"level":"warn","ts":"2023-06-27T03:27:12.878Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_RAFT_MESSAGE","remote-peer-id":"298b911665c13aa0","rtt":"0s","error":"dial tcp 10.47.0.4:2380: connect: connection refused"}
Jun 27 03:27:12 k3s[23842]: {"level":"warn","ts":"2023-06-27T03:27:12.883Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_SNAPSHOT","remote-peer-id":"f875d12643597ed2","rtt":"0s","error":"dial tcp 10.47.0.5:2380: connect: connection refused"}
Jun 27 03:27:12 k3s[23842]: {"level":"warn","ts":"2023-06-27T03:27:12.883Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_RAFT_MESSAGE","remote-peer-id":"f875d12643597ed2","rtt":"0s","error":"dial tcp 10.47.0.5:2380: connect: connection refused"}
Jun 27 03:27:13 k3s[23842]: time="2023-06-27T03:27:13Z" level=info msg="Tunnel server egress proxy waiting for runtime core to become available"
Jun 27 03:27:14 k3s[23842]: time="2023-06-27T03:27:14Z" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: <https://127.0.0.1:6443/v1-k3s/readyz>: 500 Internal Server Error"
hundreds-battery-84841
06/27/2023, 3:31 AMhundreds-battery-84841
06/27/2023, 3:31 AMhundreds-battery-84841
06/27/2023, 3:32 AMhundreds-battery-84841
06/27/2023, 3:33 AMhundreds-battery-84841
06/27/2023, 3:34 AMbrash-cpu-62691
06/27/2023, 3:34 AMbrash-cpu-62691
06/27/2023, 3:35 AMhundreds-battery-84841
06/27/2023, 3:35 AMbrash-cpu-62691
06/27/2023, 3:35 AMbrash-cpu-62691
06/27/2023, 3:35 AMhundreds-battery-84841
06/27/2023, 3:36 AMhundreds-battery-84841
06/27/2023, 3:36 AMhundreds-battery-84841
06/27/2023, 3:36 AMbrash-cpu-62691
06/27/2023, 3:37 AMbrash-cpu-62691
06/27/2023, 3:37 AMbrash-cpu-62691
06/27/2023, 3:39 AMadvertise-client-urls: <https://10.46.0.4:2379>
client-transport-security:
cert-file: /application-volume/k3s/server/tls/etcd/server-client.crt
client-cert-auth: true
key-file: /application-volume/k3s/server/tls/etcd/server-client.key
trusted-ca-file: /application-volume/k3s/server/tls/etcd/server-ca.crt
data-dir: /var/lib/etcd
election-timeout: 5000
experimental-initial-corrupt-check: true
heartbeat-interval: 500
listen-client-urls: <https://127.0.0.1:2379>,<https://10.46.0.4:2379>
listen-metrics-urls: <http://127.0.0.1:2381>
listen-peer-urls: <https://127.0.0.1:2380>,<https://10.46.0.4:2380>
log-outputs:
- stderr
logger: zap
name: master-1
peer-transport-security:
cert-file: /application-volume/k3s/server/tls/etcd/peer-server-client.crt
client-cert-auth: true
key-file: /application-volume/k3s/server/tls/etcd/peer-server-client.key
trusted-ca-file: /application-volume/k3s/server/tls/etcd/peer-ca.crt
snapshot-count: 10000
hundreds-battery-84841
06/27/2023, 3:40 AMbrash-cpu-62691
06/27/2023, 3:41 AMtcp 69 0 127.0.0.1:2379 0.0.0.0:* LISTEN
tcp 0 0 10.46.0.4:2379 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2380 0.0.0.0:* LISTEN
tcp 0 0 10.46.0.4:2380 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2381 0.0.0.0:* LISTEN
Yeshundreds-battery-84841
06/27/2023, 3:43 AMdial tcp 10.47.0.4:2380: connect: connection refused
and dial tcp 10.47.0.5:2380: connect: connection refused
. This suggests that the peer nodes with ip addresses 10.47.0.4 and 10.47.0.5, which are different from the ip address specified in your configuration (10.46.0.4), are not accessible or not running etcd.hundreds-battery-84841
06/27/2023, 3:44 AMlisten-peer-urls
and listen-client-urls
fields are correctly set.hundreds-battery-84841
06/27/2023, 3:45 AMbrash-cpu-62691
06/27/2023, 3:45 AMhundreds-battery-84841
06/27/2023, 3:45 AMhundreds-battery-84841
06/27/2023, 4:32 AM