Curl timeout when downloading rancher agent

Hello,

I am trying to run Rancher in a Docker container on a Ubuntu server VM in Proxmox. When trying to run the registration command I’m getting a timeout error:

hydra@ubuntu-rancher:~$ curl --insecure -fL https://192.168.2.120/system-agent-install.sh | sudo  sh -s - --server https://192.168.2.120 --label 'cattle.io/os=linux' --token dcblbnnkq5j75tpxgnv4hx6nzw2d7dqtlj675z8kd2jmrsfr7zzssr --ca-checksum ba31a2ea69e35aa5b93e2be0b5db398dd49dd5753c9ddbdf35c18545e761c661 --etcd --controlplane --worker
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27615    0 27615    0     0  1419k      0 --:--:-- --:--:-- --:--:-- 1419k
[INFO]  Label: cattle.io/os=linux
[INFO]  Role requested: etcd
[INFO]  Role requested: controlplane
[INFO]  Role requested: worker
[INFO]  Using default agent configuration directory /etc/rancher/agent
[INFO]  Using default agent var directory /var/lib/rancher/agent
[INFO]  Determined CA is necessary to connect to Rancher
[INFO]  Successfully downloaded CA certificate
[INFO]  Value from https://192.168.2.120/cacerts is an x509 certificate
[INFO]  Successfully tested Rancher connection
[INFO]  Downloading rancher-system-agent from https://192.168.2.120/assets/rancher-system-agent-amd64
[INFO]  Successfully downloaded the rancher-system-agent binary.
[INFO]  Generating Cattle ID
[INFO]  Cattle ID was already detected as 13895e9f2c6be518afdf4970956cc6c3c7797767d337d6d1a13b11ebba45a3f. Not generating a new one.
curl: (28) Operation timed out after 60000 milliseconds with 0 bytes received
[ERROR]  000 received while downloading Rancher connection information. Sleeping for 5 seconds and trying again
curl: (28) Operation timed out after 60000 milliseconds with 0 bytes received
[ERROR]  000 received while downloading Rancher connection information. Sleeping for 5 seconds and trying again
curl: (28) Operation timed out after 60001 milliseconds with 0 bytes received
[ERROR]  000 received while downloading Rancher connection information. Sleeping for 5 seconds and trying again

I just installed a fresh version of Ubuntu Server and updated it to the latest version, plus a fresh install of Docker. I don’t have a separate certificate as this is just a homelab deployment. I don’t have any special firewall configuration so not sure what’s causing it not to communicate. When I select the cluster, I get this error at the top:

failed to create fleet-default/cluster1 cluster.x-k8s.io/v1alpha4, Kind=Cluster for rke-cluster fleet-default/cluster1: Internal error occurred: failed calling webhook "default.cluster.cluster.x-k8s.io": Post "https://webhook-service.cattle-system.svc:443/mutate-cluster-x-k8s-io-v1alpha4-cluster?timeout=10s": service "webhook-service" not found

Apologies if I missed something, I’m brand new to Rancher/Kubernetes so just trying to learn it. Please let me know what other information I can provide that may help.

1 Like

So I went back and looked at my clusters, and I have a local cluster up and running. It shows all of the CPU and Memory resources so I’m thinking that it worked? Maybe the issue is that I’m trying to start another cluster using resources that are already assigned to the local cluster…