Rancher web interface complains "waiting for cluster agent to connect" when installing first node

I am provisioning an rke2 cluster and rancher complains when installing the first node about:

waiting for cluster agent to connect
rke version is v1.24.13+rke2r1

Which agent is failing and how can I troubleshoot this?