Rancher 2.5.12 恢复到新集群报错

Rancher Server 设置

  • Rancher 版本:2.5.12

  • 在线或离线部署:离线部署

下游集群信息

  • Kubernetes 版本: v1.19.3+k3s3

用户信息

  • 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):admin

主机操作系统:centos 7.9

问题描述:
1、kubectl logs -n cattle-resources-system -l app.kubernetes.io/name=rancher-backup -f 查看日志,每隔几分钟循环恢复一次

2、恢复到最后报错日志如下:
Error restoring namespaced resources [error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces “p-fbvgk” not found error restoring creator-project-owner of type management.cattle.io/v3

日志
Error restoring namespaced resources [error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-fbvgk" not found error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-qf5pq" not found error restoring machine-7qb8n of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-g75r5 of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-4mdvr" not found error restoring machine-d4mss of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-5d5lh of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-9crxp of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring u-xushw6hqz3-admin of type management.cattle.io/v3, Resource=clusterroletemplatebindings: namespaces "c-gfdmj" not found error restoring machine-z7lsl of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring u-ax3ffgp22g-member of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-fbvgk" not found error restoring u-yfm4foiq4f-member of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-g6c9v" not found error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-dvnx4" not found error restoring u-ezasq4xnx2-member of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-rb2xp" not found error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-g6c9v" not found error restoring u-manlxknpkc-admin of type management.cattle.io/v3, Resource=clusterroletemplatebindings: namespaces "c-2nqtv" not found error restoring creator-project-owner of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-rb2xp" not found error restoring u-b37jtmedog-member of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-4mdvr" not found error restoring machine-rwrmx of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring u-7nqssztygp-member of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-dvnx4" not found error restoring u-7jzxgd3juz-member of type management.cattle.io/v3, Resource=projectroletemplatebindings: namespaces "p-qf5pq" not found error restoring creator-cluster-owner of type management.cattle.io/v3, Resource=clusterroletemplatebindings: namespaces "c-2nqtv" not found error restoring machine-tqg58 of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-ctn92 of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-gtfkq of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring creator-cluster-owner of type management.cattle.io/v3, Resource=clusterroletemplatebindings: namespaces "c-gfdmj" not found error restoring machine-tdh4c of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-wf4lv of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-b4q4v of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found error restoring machine-kfrc2 of type management.cattle.io/v3, Resource=nodes: namespaces "c-tjhz6" not found] 
INFO[2022/08/29 08:08:06] Processing Restore CR restore-xhfrm

1、我看官方有解决方法,如下:https://docs.rancher.cn/docs/rancher2.5/backups/restoring-rancher/_index/


根据官方解决方法把源上not found namespace删除掉,重新备份,再恢复到新的集群还有同样问题。