Worker node failing to setup k3s on fresh install

Hi, I’m really struggling to get this installed, any help gratefully received.

I’m trying to install k3s on a master and a worker node, both running Ubuntu 22.04, bare-metal. The master installs no problem but the worker hangs on [INFO] systemd: Starting k3s-agent. The log files on the worker say:

Oct 27 14:22:32 myworker k3s[69044]: E1027 14:22:32.202428   69044 server.go:291] "Unable to authenticate the request due to an error" err="Post \"https://127.0.0.1:6444/ap>
Oct 27 14:22:32 myworker k3s[69044]: E1027 14:22:32.230764   69044 controller.go:144] failed to ensure lease exists, will retry in 7s, error: Get "https://127.0.0.1:6444/ap>
Oct 27 14:22:32 myworker k3s[69044]: E1027 14:22:32.288643   69044 kubelet.go:2448] "Error getting node" err="node \"myworker\" not found"

The master can see the worker node but it says “NotReady”:

NAME           STATUS     ROLES                  AGE   VERSION        INTERNAL-IP     EXTERNAL-IP     OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME
myWorker       NotReady   <none>                 20h   v1.25.3+k3s1   192.168.196.6   <none>          Ubuntu 22.04.1 LTS   5.15.0-52-generic   docker://20.10.20
myMaster       Ready      control-plane,master   20h   v1.25.3+k3s1   192.168.196.4   192.168.196.4   Ubuntu 22.04.1 LTS   5.15.0-52-generic   docker://20.10.20

I’ve installed docker and it’s running on both master and worker. They are both on an internal subnet. I’ve another server which I tried to set up as a worker node which has the same issue.
I’ve tried several different ways of installing the master node after looking here :

curl -sSL https://get.k3s.io | INSTALL_K3S_EXEC="server --docker --debug --node-external-ip=<master-ip> --advertise-address=<master-ip>" sh -
curl -sSL https://get.k3s.io | INSTALL_K3S_EXEC='server --docker' sh -
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--write-kubeconfig ~/.kube/config --write-kubeconfig-mode 666 --tls-san <master-ip> --node-external-ip=<master-ip>" sh -

and the install for the worker node seems fairly standard, I’ve tried it with and without the docker flag:

curl -sfL http://get.k3s.io | K3S_URL=https://<master-ip>:6443 K3S_TOKEN=${TOKEN} sh -s - --docker

I’ve opened ports:

sudo ufw allow 443/tcp
sudo ufw allow 6443/tcp

Obtained the token:

cat /var/lib/rancher/k3s/server/node-token

created the directories .kube and config, copied the config over:

sudo cat /etc/rancher/k3s/k3s.yaml > /home/ubuntu/.kube/config/k3sconfig.yaml

changed permissions:

chown ubuntu /home/ubuntu/.kube/config/k3sconfig.yaml 
chgrp ubuntu /home/ubuntu/.kube/config/k3sconfig.yaml

It looks like the worker node is having issues, rather than the connection to the master.

I’m at a loss. Thanks in advance.