[BUG] Following Quick Start results in a kubectl unhandled error and connections refused errors
Author: xFichtl1Created Jun 20, 2025Updated Jun 15, 2026
Labelsbug
What did you do
I followed the Quick Start https://k3d.io/stable/#quick-start
How was the cluster created?
k3d cluster create --trace --no-rollback myclusterk3d kubeconfig merge mycluster --kubeconfig-switch-context
What did you do afterwards?
kubectl cluster-info
What did you expect to happen
A successful output of kubectl cluster info
Screenshots or terminal output
Output of kubectl cluster-info
fichtl@chaos ~> kubectl cluster-info
E0620 19:47:39.061380 29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://0.0.0.0:32825/api?timeout=32s\": EOF"
E0620 19:47:49.069766 29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://0.0.0.0:32825/api?timeout=32s\": EOF"
E0620 19:47:59.080248 29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://0.0.0.0:32825/api?timeout=32s\": EOF"
E0620 19:48:09.090305 29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://0.0.0.0:32825/api?timeout=32s\": EOF"
E0620 19:48:19.099637 29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://0.0.0.0:32825/api?timeout=32s\": EOF"
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Unable to connect to the server: EOFOutput of docker logs k3d-mycluster-serverlb:
[2025-06-20T17:42:13+00:00] creating initial nginx config (try 1/3)
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Backend set to file
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Starting confd
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Backend source(s) set to /etc/confd/values.yaml
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Loading template resources from confdir /etc/confd
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Found template: /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Loading template resource from /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Retrieving keys from store
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Key prefix set to /
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Key Map: map[string]string{"/ports/6443.tcp/0":"k3d-mycluster-server-0", "/settings/workerConnections":"1024"}
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Got the following map from store: map[/ports/6443.tcp/0:k3d-mycluster-server-0 /settings/workerConnections:1024]
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Using source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Compiling source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Comparing candidate config to /etc/nginx/nginx.conf
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO /etc/nginx/nginx.conf has md5sum 756e7eaae19e95b5f49ce81e73b10512 should be e0926635391f27272a7aad2b4b5caccb
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Target config /etc/nginx/nginx.conf out of sync
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Overwriting target config /etc/nginx/nginx.conf
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Target config /etc/nginx/nginx.conf has been updated
[2025-06-20T17:42:15+00:00] creating initial nginx config (try 2/3)
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: INFO Backend set to file
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: INFO Starting confd
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: INFO Backend source(s) set to /etc/confd/values.yaml
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Loading template resources from confdir /etc/confd
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Found template: /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Loading template resource from /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Retrieving keys from store
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Key prefix set to /
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Key Map: map[string]string{"/ports/6443.tcp/0":"k3d-mycluster-server-0", "/settings/workerConnections":"1024"}
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Got the following map from store: map[/ports/6443.tcp/0:k3d-mycluster-server-0 /settings/workerConnections:1024]
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Using source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Compiling source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Comparing candidate config to /etc/nginx/nginx.conf
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: INFO /etc/nginx/nginx.conf has md5sum e0926635391f27272a7aad2b4b5caccb should be 7fde4e65881230aee17ee7ed61d8ae4f
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: INFO Target config /etc/nginx/nginx.conf out of sync
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: DEBUG Overwriting target config /etc/nginx/nginx.conf
2025-06-20T17:42:15Z k3d-mycluster-serverlb confd[17]: INFO Target config /etc/nginx/nginx.conf has been updated
[2025-06-20T17:42:17+00:00] creating initial nginx config (try 3/3)
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: INFO Backend set to file
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: INFO Starting confd
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: INFO Backend source(s) set to /etc/confd/values.yaml
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Loading template resources from confdir /etc/confd
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Found template: /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Loading template resource from /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Retrieving keys from store
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Key prefix set to /
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Key Map: map[string]string{"/ports/6443.tcp/0":"k3d-mycluster-server-0", "/settings/workerConnections":"1024"}
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Got the following map from store: map[/ports/6443.tcp/0:k3d-mycluster-server-0 /settings/workerConnections:1024]
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Using source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Compiling source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Comparing candidate config to /etc/nginx/nginx.conf
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: INFO /etc/nginx/nginx.conf has md5sum 7fde4e65881230aee17ee7ed61d8ae4f should be 1d0e938e1371a679008dd7cb95d7092a
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: INFO Target config /etc/nginx/nginx.conf out of sync
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: DEBUG Overwriting target config /etc/nginx/nginx.conf
2025-06-20T17:42:17Z k3d-mycluster-serverlb confd[24]: INFO Target config /etc/nginx/nginx.conf has been updated
===== Initial nginx configuration =====
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
# configuration file /etc/nginx/nginx.conf:
###################################
# Generated by confd 2025-06-20 17:42:17.64492987 +0000 UTC m=+0.002222541 #
# ####### #
# # k3d # #
# ####### #
###################################
error_log stderr notice;
worker_processes auto;
events {
multi_accept on;
use epoll;
worker_connections 1024;
}
stream {
upstream 6443_tcp {
server k3d-mycluster-server-0:6443 max_fails=1 fail_timeout=10s;
nginx: configuration file /etc/nginx/nginx.conf test is successful
}
server {
listen 6443;
proxy_pass 6443_tcp;
proxy_timeout 600;
proxy_connect_timeout 2s;
}
}
=======================================
2025/06/20 17:42:19 [notice] 32#32: using the "epoll" event method
2025/06/20 17:42:19 [notice] 32#32: nginx/1.27.0
2025/06/20 17:42:19 [notice] 32#32: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014)
2025/06/20 17:42:19 [notice] 32#32: OS: Linux 6.12.33_1
2025/06/20 17:42:19 [notice] 32#32: getrlimit(RLIMIT_NOFILE): 4096:4096
2025/06/20 17:42:19 [notice] 32#32: start worker processes
2025/06/20 17:42:19 [notice] 32#32: start worker process 37
2025/06/20 17:42:19 [notice] 32#32: start worker process 38
2025/06/20 17:42:19 [notice] 32#32: start worker process 39
2025/06/20 17:42:19 [notice] 32#32: start worker process 40
2025/06/20 17:42:19 [notice] 32#32: start worker process 41
2025/06/20 17:42:19 [notice] 32#32: start worker process 42
2025/06/20 17:42:19 [notice] 32#32: start worker process 43
2025/06/20 17:42:19 [notice] 32#32: start worker process 44
2025/06/20 17:42:19 [notice] 32#32: start worker process 45
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: INFO Backend set to file
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: INFO Starting confd
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: INFO Backend source(s) set to /etc/confd/values.yaml
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Loading template resources from confdir /etc/confd
2025/06/20 17:42:19 [notice] 32#32: start worker process 48
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Found template: /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Loading template resource from /etc/confd/conf.d/nginx.toml
2025/06/20 17:42:19 [notice] 32#32: start worker process 50
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Retrieving keys from store
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Key prefix set to /
2025/06/20 17:42:19 [notice] 32#32: start worker process 51
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Key Map: map[string]string{"/ports/6443.tcp/0":"k3d-mycluster-server-0", "/settings/workerConnections":"1024"}
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Got the following map from store: map[/ports/6443.tcp/0:k3d-mycluster-server-0 /settings/workerConnections:1024]
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Using source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Compiling source template /etc/confd/templates/nginx.tmpl
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Comparing candidate config to /etc/nginx/nginx.conf
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: INFO /etc/nginx/nginx.conf has md5sum 1d0e938e1371a679008dd7cb95d7092a should be cd0c6a51c554ef055c91d2d50c11ed0c
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: INFO Target config /etc/nginx/nginx.conf out of sync
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Running /usr/sbin/nginx -T -c /etc/nginx/.nginx.conf965244933
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG "nginx: the configuration file /etc/nginx/.nginx.conf965244933 syntax is ok\nnginx: configuration file /etc/nginx/.nginx.conf965244933 test is successful\n# configuration file /etc/nginx/.nginx.conf965244933:\n###################################\n# Generated by confd 2025-06-20 17:42:19.652503182 +0000 UTC m=+0.003093324 #\n# ####### #\n# # k3d # #\n# ####### #\n###################################\n\nerror_log stderr notice;\n\nworker_processes auto;\nevents {\n multi_accept on;\n use epoll;\n worker_connections 1024;\n}\n\nstream {\n\n upstream 6443_tcp {\n server k3d-mycluster-server-0:6443 max_fails=1 fail_timeout=10s;\n }\n\n server {\n listen 6443;\n proxy_pass 6443_tcp;\n proxy_timeout 600;\n proxy_connect_timeout 2s;\n }\n\n}\n\n"
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Overwriting target config /etc/nginx/nginx.conf
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG Running /usr/sbin/nginx -s reload
2025/06/20 17:42:19 [notice] 32#32: signal 1 (SIGHUP) received from 53, reconfiguring
2025/06/20 17:42:19 [notice] 32#32: reconfiguring
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: DEBUG "2025/06/20 17:42:19 [notice] 53#53: signal process started\n"
2025-06-20T17:42:19Z k3d-mycluster-serverlb confd[31]: INFO Target config /etc/nginx/nginx.conf has been updated
2025/06/20 17:42:19 [notice] 32#32: using the "epoll" event method
2025/06/20 17:42:19 [notice] 32#32: start worker processes
2025/06/20 17:42:19 [notice] 32#32: start worker process 54
2025/06/20 17:42:19 [notice] 32#32: start worker process 55
2025/06/20 17:42:19 [notice] 32#32: start worker process 56
2025/06/20 17:42:19 [notice] 32#32: start worker process 57
2025/06/20 17:42:19 [notice] 32#32: start worker process 58
2025/06/20 17:42:19 [notice] 32#32: start worker process 59
2025/06/20 17:42:19 [notice] 32#32: start worker process 60
2025/06/20 17:42:19 [notice] 32#32: start worker process 61
2025/06/20 17:42:19 [notice] 32#32: start worker process 62
2025/06/20 17:42:19 [notice] 32#32: start worker process 63
2025/06/20 17:42:19 [notice] 32#32: start worker process 64
2025/06/20 17:42:19 [notice] 32#32: start worker process 65
2025/06/20 17:42:19 [notice] 40#40: gracefully shutting down
2025/06/20 17:42:19 [notice] 39#39: gracefully shutting down
2025/06/20 17:42:19 [notice] 41#41: gracefully shutting down
2025/06/20 17:42:19 [notice] 44#44: gracefully shutting down
2025/06/20 17:42:19 [notice] 38#38: gracefully shutting down
2025/06/20 17:42:19 [notice] 37#37: gracefully shutting down
2025/06/20 17:42:19 [notice] 45#45: gracefully shutting down
2025/06/20 17:42:19 [notice] 43#43: gracefully shutting down
2025/06/20 17:42:19 [notice] 42#42: gracefully shutting down
2025/06/20 17:42:19 [notice] 50#50: gracefully shutting down
2025/06/20 17:42:19 [notice] 51#51: gracefully shutting down
2025/06/20 17:42:19 [notice] 39#39: exiting
2025/06/20 17:42:19 [notice] 40#40: exiting
2025/06/20 17:42:19 [notice] 41#41: exiting
2025/06/20 17:42:19 [notice] 44#44: exiting
2025/06/20 17:42:19 [notice] 45#45: exiting
2025/06/20 17:42:19 [notice] 50#50: exiting
2025/06/20 17:42:19 [notice] 38#38: exiting
2025/06/20 17:42:19 [notice] 37#37: exiting
2025/06/20 17:42:19 [notice] 48#48: gracefully shutting down
2025/06/20 17:42:19 [notice] 51#51: exiting
2025/06/20 17:42:19 [notice] 43#43: exiting
2025/06/20 17:42:19 [notice] 42#42: exiting
2025/06/20 17:42:19 [notice] 48#48: exiting
2025/06/20 17:42:19 [notice] 41#41: exit
2025/06/20 17:42:19 [notice] 50#50: exit
2025/06/20 17:42:19 [notice] 39#39: exit
2025/06/20 17:42:19 [notice] 45#45: exit
2025/06/20 17:42:19 [notice] 44#44: exit
2025/06/20 17:42:19 [notice] 38#38: exit
2025/06/20 17:42:19 [notice] 37#37: exit
2025/06/20 17:42:19 [notice] 48#48: exit
2025/06/20 17:42:19 [notice] 51#51: exit
2025/06/20 17:42:19 [notice] 42#42: exit
2025/06/20 17:42:19 [notice] 43#43: exit
2025/06/20 17:42:19 [notice] 40#40: exit
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 39
2025/06/20 17:42:19 [notice] 32#32: worker process 39 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 45
2025/06/20 17:42:19 [notice] 32#32: worker process 45 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 40
2025/06/20 17:42:19 [notice] 32#32: worker process 40 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 51
2025/06/20 17:42:19 [notice] 32#32: worker process 38 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: worker process 41 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: worker process 51 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 41
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 37
2025/06/20 17:42:19 [notice] 32#32: worker process 37 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 48
2025/06/20 17:42:19 [notice] 32#32: worker process 48 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 50
2025/06/20 17:42:19 [notice] 32#32: worker process 50 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 44
2025/06/20 17:42:19 [notice] 32#32: worker process 44 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 43
2025/06/20 17:42:19 [notice] 32#32: worker process 43 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:19 [notice] 32#32: signal 17 (SIGCHLD) received from 42
2025/06/20 17:42:19 [notice] 32#32: worker process 42 exited with code 0
2025/06/20 17:42:19 [notice] 32#32: signal 29 (SIGIO) received
2025/06/20 17:42:38 [error] 54#54: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:39 [error] 54#54: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:40 [error] 54#54: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:41 [error] 54#54: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:42 [error] 54#54: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:43 [error] 54#54: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:44 [error] 54#54: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 172.24.0.1, server: 0.0.0.0:6443, upstream: "172.24.0.2:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
2025/06/20 17:42:45 [error] 54#54: *15 connect() failed (111: Connection refused) while connecting toSource: k3d-io/k3d