Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

intermittent connection refused on 6443 #8262

Closed
abbyers73 opened this issue Aug 28, 2023 · 1 comment
Closed

intermittent connection refused on 6443 #8262

abbyers73 opened this issue Aug 28, 2023 · 1 comment

Comments

@abbyers73
Copy link

Environmental Info:
K3s Version:
WARN[0000] Failed to resolve user home directory: getwd: no such file or directory
k3s version v1.27.4+k3s1 (36645e7)
go version go1.20.6

Node(s) CPU architecture, OS, and Version:
Linux 5.15.0-1035-raspi #38-Ubuntu SMP PREEMPT Tue Jul 18 12:17:11 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Cluster Configuration:
right now only the control-plane/master is installed with a external postgresDB

Describe the bug:
intermittently the below error is received when running "k3s kubectl get nodes"
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

Steps To Reproduce:
completely removed k3s
ran install with : curl -sfL https://get.k3s.io | sh -s - server --datastore-endpoint="postgres://"

execute k3s kubectl get nodes

Expected behavior:
NAME STATUS ROLES AGE VERSION
Ready control-plane,master 11m v1.27.4+k3s1

Actual behavior:
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

Additional context / logs:

@brandond
Copy link
Member

Sounds like it's crashing. Have you checked the server logs?

if the postgres database is also running on the Pi, you probably don't have enough CPU or disk IO to support that database engine. This would be indicated by latency warnings in the k3s service log, followed by the service crashing - usually due to failure to renew leases in a timely manner.

@k3s-io k3s-io locked and limited conversation to collaborators Aug 28, 2023
@brandond brandond converted this issue into discussion #8263 Aug 28, 2023
@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Aug 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants