Hey guys,
my rancher is full of error logs. It tries to connect to an old broken cluster which I already removed. The web ui does not show me the cluster, but the rancher cli does. How can I delete such a cluster?
2022/07/25 12:58:06 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:06 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:09 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:09 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:16 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:16 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:19 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:19 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:26 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:26 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:29 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:29 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:36 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:36 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:39 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:39 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:46 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:46 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:49 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:49 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:49 [ERROR] error syncing 'c-hmlp5/m-9kv7g': handler rke-worker-upgrader: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:56 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:56 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:59 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:59 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
If I try to switch the context of the rancher cli to one of the broken projects (number 1 and 2) I can’t execute any other command.
~/Downloads ❯ ./rancher clusters ls ✘ INT
FATA[0000] Current cluster not available, try running `rancher context switch`. Error: Bad response statusCode [404]. Status [404 Not Found]. Body: [baseType=error, code=NotFound, message=clusters.management.cattle.io "c-hmlp5" not found] from [https://rancher.domain.com/v3/clusters/c-hmlp5]
~/Downloads ❯ ./rancher projects ls
FATA[0000] Current cluster not available, try running `rancher context switch`. Error: Bad response statusCode [404]. Status [404 Not Found]. Body: [baseType=error, code=NotFound, message=clusters.management.cattle.io "c-hmlp5" not found] from [https://rancher.domain.com/v3/clusters/c-hmlp5]