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

Error: context deadline exceeded #389

Open
anweshtupili opened this issue Jul 15, 2021 · 0 comments
Open

Error: context deadline exceeded #389

anweshtupili opened this issue Jul 15, 2021 · 0 comments

Comments

@anweshtupili
Copy link

anweshtupili commented Jul 15, 2021

While executing command : ETCDCTL_API=3 etcdctl member list --endpoints=https://192.168.1.11:2379 --cacert=ca.pem --cert=kubernetes.pem --key=kubernetes-key.pem

getting error : Error: context deadline exceeded


My etcd.service file:

[Unit]
Description=etcd
Documentation=https://github.com/coreos

[Service]
ExecStart=/usr/local/bin/etcd
--name 192.168.1.11
--cert-file=/etc/etcd/kubernetes.pem
--key-file=/etc/etcd/kubernetes-key.pem
--peer-cert-file=/etc/etcd/kubernetes.pem
--peer-key-file=/etc/etcd/kubernetes-key.pem
--trusted-ca-file=/etc/etcd/ca.pem
--peer-trusted-ca-file=/etc/etcd/ca.pem
--peer-client-cert-auth
--client-cert-auth
--initial-advertise-peer-urls https://192.168.1.11:2380
--listen-peer-urls https://192.168.1.11:2380
--listen-client-urls https://192.168.1.11:2379,https://127.0.0.1:2379
--advertise-client-urls https://192.168.1.11:2379
--initial-cluster-token etcd-cluster-0
--initial-cluster 192.168.1.11=https://192.168.1.11:2380,192.168.1.12=https://192.168.1.12:2380,192.168.1.13=https://192.168.1.13:2380
--initial-cluster-state new
--data-dir=/var/lib/etcd
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

sudo systemctl status etcd

● etcd.service - etcd
Loaded: loaded (/etc/systemd/system/etcd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2021-07-15 18:22:59 IST; 22min ago
Docs: https://github.com/coreos
Main PID: 2248 (etcd)
Tasks: 12
Memory: 31.2M
CGroup: /system.slice/etcd.service
└─2248 /usr/local/bin/etcd --name 192.168.1.11 --cert-file=/etc/etcd/kubernetes.pem --key-fi...

Jul 15 18:45:48 vm11 etcd[2248]: 91bdf612a6839630 [logterm: 1, index: 3] sent MsgVote request to b... 4207
Jul 15 18:45:49 vm11 etcd[2248]: health check for peer bb39bdb8c49d4b1b could not connect: dial tc...HOT")
Jul 15 18:45:49 vm11 etcd[2248]: health check for peer bb39bdb8c49d4b1b could not connect: dial tc...AGE")
Jul 15 18:45:49 vm11 etcd[2248]: health check for peer dc0336cac5c58d30 could not connect: dial tc...AGE")
Jul 15 18:45:49 vm11 etcd[2248]: health check for peer dc0336cac5c58d30 could not connect: dial tc...HOT")
Jul 15 18:45:50 vm11 etcd[2248]: 91bdf612a6839630 is starting a new election at term 4207
Jul 15 18:45:50 vm11 etcd[2248]: 91bdf612a6839630 became candidate at term 4208
Jul 15 18:45:50 vm11 etcd[2248]: 91bdf612a6839630 received MsgVoteResp from 91bdf612a6839630 at term 4208
Jul 15 18:45:50 vm11 etcd[2248]: 91bdf612a6839630 [logterm: 1, index: 3] sent MsgVote request to b... 4208
Jul 15 18:45:50 vm11 etcd[2248]: 91bdf612a6839630 [logterm: 1, index: 3] sent MsgVote request to d... 4208
Hint: Some lines were ellipsized, use -l to show in full.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant