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

ETCD connection refused #579

Open
joynal opened this issue Jun 8, 2020 · 3 comments · May be fixed by #766
Open

ETCD connection refused #579

joynal opened this issue Jun 8, 2020 · 3 comments · May be fixed by #766

Comments

@joynal
Copy link

joynal commented Jun 8, 2020

ETCD is not starting. I think something is missing on firewall rules. Here is the details log:

Jun 07 19:44:24 controller-0 etcd[15901]: raft2020/06/07 19:44:24 INFO: f98dc20bce6225a0 is starting a new election at term 62949
Jun 07 19:44:24 controller-0 etcd[15901]: raft2020/06/07 19:44:24 INFO: f98dc20bce6225a0 became candidate at term 62950
Jun 07 19:44:24 controller-0 etcd[15901]: raft2020/06/07 19:44:24 INFO: f98dc20bce6225a0 received MsgVoteResp from f98dc20bce6225a0 at term 62950
Jun 07 19:44:24 controller-0 etcd[15901]: raft2020/06/07 19:44:24 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to 3a57933972cb5131 at term 62950
Jun 07 19:44:24 controller-0 etcd[15901]: raft2020/06/07 19:44:24 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to ffed16798470cab5 at term 62950
Jun 07 19:44:24 controller-0 etcd[15901]: publish error: etcdserver: request timed out
Jun 07 19:44:24 controller-0 etcd[15901]: health check for peer 3a57933972cb5131 could not connect: dial tcp 10.240.0.12:2380: connect: connection refused
Jun 07 19:44:24 controller-0 etcd[15901]: health check for peer 3a57933972cb5131 could not connect: dial tcp 10.240.0.12:2380: connect: connection refused
Jun 07 19:44:24 controller-0 etcd[15901]: health check for peer ffed16798470cab5 could not connect: dial tcp 10.240.0.11:2380: connect: connection refused
Jun 07 19:44:24 controller-0 etcd[15901]: health check for peer ffed16798470cab5 could not connect: dial tcp 10.240.0.11:2380: connect: connection refused
Jun 07 19:44:25 controller-0 etcd[15901]: raft2020/06/07 19:44:25 INFO: f98dc20bce6225a0 is starting a new election at term 62950
Jun 07 19:44:25 controller-0 etcd[15901]: raft2020/06/07 19:44:25 INFO: f98dc20bce6225a0 became candidate at term 62951
Jun 07 19:44:25 controller-0 etcd[15901]: raft2020/06/07 19:44:25 INFO: f98dc20bce6225a0 received MsgVoteResp from f98dc20bce6225a0 at term 62951
Jun 07 19:44:25 controller-0 etcd[15901]: raft2020/06/07 19:44:25 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to 3a57933972cb5131 at term 62951
Jun 07 19:44:25 controller-0 etcd[15901]: raft2020/06/07 19:44:25 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to ffed16798470cab5 at term 62951
Jun 07 19:44:26 controller-0 etcd[15901]: raft2020/06/07 19:44:26 INFO: f98dc20bce6225a0 is starting a new election at term 62951
Jun 07 19:44:26 controller-0 etcd[15901]: raft2020/06/07 19:44:26 INFO: f98dc20bce6225a0 became candidate at term 62952
Jun 07 19:44:26 controller-0 etcd[15901]: raft2020/06/07 19:44:26 INFO: f98dc20bce6225a0 received MsgVoteResp from f98dc20bce6225a0 at term 62952
Jun 07 19:44:26 controller-0 etcd[15901]: raft2020/06/07 19:44:26 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to 3a57933972cb5131 at term 62952
Jun 07 19:44:26 controller-0 etcd[15901]: raft2020/06/07 19:44:26 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to ffed16798470cab5 at term 62952
Jun 07 19:44:28 controller-0 etcd[15901]: raft2020/06/07 19:44:28 INFO: f98dc20bce6225a0 is starting a new election at term 62952
Jun 07 19:44:28 controller-0 etcd[15901]: raft2020/06/07 19:44:28 INFO: f98dc20bce6225a0 became candidate at term 62953
Jun 07 19:44:28 controller-0 etcd[15901]: raft2020/06/07 19:44:28 INFO: f98dc20bce6225a0 received MsgVoteResp from f98dc20bce6225a0 at term 62953
Jun 07 19:44:28 controller-0 etcd[15901]: raft2020/06/07 19:44:28 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to 3a57933972cb5131 at term 62953
Jun 07 19:44:28 controller-0 etcd[15901]: raft2020/06/07 19:44:28 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to ffed16798470cab5 at term 62953
Jun 07 19:44:29 controller-0 etcd[15901]: raft2020/06/07 19:44:29 INFO: f98dc20bce6225a0 is starting a new election at term 62953
Jun 07 19:44:29 controller-0 etcd[15901]: raft2020/06/07 19:44:29 INFO: f98dc20bce6225a0 became candidate at term 62954
Jun 07 19:44:29 controller-0 etcd[15901]: raft2020/06/07 19:44:29 INFO: f98dc20bce6225a0 received MsgVoteResp from f98dc20bce6225a0 at term 62954
Jun 07 19:44:29 controller-0 etcd[15901]: raft2020/06/07 19:44:29 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to 3a57933972cb5131 at term 62954
Jun 07 19:44:29 controller-0 etcd[15901]: raft2020/06/07 19:44:29 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to ffed16798470cab5 at term 62954
Jun 07 19:44:29 controller-0 etcd[15901]: health check for peer 3a57933972cb5131 could not connect: dial tcp 10.240.0.12:2380: connect: connection refused
Jun 07 19:44:29 controller-0 etcd[15901]: health check for peer 3a57933972cb5131 could not connect: dial tcp 10.240.0.12:2380: connect: connection refused
Jun 07 19:44:29 controller-0 etcd[15901]: health check for peer ffed16798470cab5 could not connect: dial tcp 10.240.0.11:2380: connect: connection refused
Jun 07 19:44:29 controller-0 etcd[15901]: health check for peer ffed16798470cab5 could not connect: dial tcp 10.240.0.11:2380: connect: connection refused
Jun 07 19:44:30 controller-0 etcd[15901]: raft2020/06/07 19:44:30 INFO: f98dc20bce6225a0 is starting a new election at term 62954
Jun 07 19:44:30 controller-0 etcd[15901]: raft2020/06/07 19:44:30 INFO: f98dc20bce6225a0 became candidate at term 62955
Jun 07 19:44:30 controller-0 etcd[15901]: raft2020/06/07 19:44:30 INFO: f98dc20bce6225a0 received MsgVoteResp from f98dc20bce6225a0 at term 62955
Jun 07 19:44:30 controller-0 etcd[15901]: raft2020/06/07 19:44:30 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to 3a57933972cb5131 at term 62955
Jun 07 19:44:30 controller-0 etcd[15901]: raft2020/06/07 19:44:30 INFO: f98dc20bce6225a0 [logterm: 1, index: 3] sent MsgVote request to ffed16798470cab5 at term 62955
Jun 07 19:44:31 controller-0 etcd[15901]: raft2020/06/07 19:44:31 INFO: f98dc20bce6225a0 is starting a new election at term 62955
@mikalai-t
Copy link

mikalai-t commented Jun 15, 2020

You can see repeating connection refused record in the logs from other cluster members.
afaik, etcd (at least this one configured to have 3 nodes in the cluster) won't be able to start if only one node is healthy.
Try to investigate what's going wrong with the rest of the etcd cluster, why they are keep refusing connections

@ricardosilva86
Copy link

ricardosilva86 commented Jun 30, 2020

I had the same issue, what I did to fix that:

Went to GCP console and updated the firewall rule for internal connections and explicitly declared
tcp:0-65535
udp:0-65535

For each protocol port ranges.

Try to do that and check if it works.

@humpalu
Copy link

humpalu commented Aug 15, 2020

I had the same issue.
Only the third etcd was success.
After the installation of the 3rd etcd go back to the 1st and the 2nd node and restart the etcd service
sudo systemctl restart etcd.service

Xodarap added a commit to Xodarap/kubernetes-the-hard-way that referenced this issue Mar 9, 2024
@Xodarap Xodarap linked a pull request Mar 9, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

4 participants