Rancher 从v2.4.3升级到v2.5.12 失败

Rancher Server 设置

  • Rancher 版本:V2.5.12
  • 安装选项 (Docker install/Helm Chart):
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
  • 在线或离线部署:

下游集群信息

  • Kubernetes 版本:
  • Cluster Type (Local/Downstream):
    • 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):

用户信息

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

问题描述:
升级按照官方文档来的

docker run -d --privileged --volumes-from rancher-data --restart=unless-stopped -p 8881:80 -p 443:443 rancher/rancher:v2.5.12

现在不断得重启,有时候没有错误,k3s也会退出,日志里面是报错误得时候

重现步骤:

结果:

预期结果:

截图:

其他上下文信息:

日志
W0702 03:50:01.645458       7 reflector.go:437] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0702 03:50:01.645458       7 reflector.go:437] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0702 03:50:01.645486       7 reflector.go:437] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0702 03:50:01.645505       7 reflector.go:437] pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v1.20.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
exit status 255
2022/07/02 03:50:01 [FATAL] k3s exited with: exit status 255

如果是 single docker安装的,需要到容器的目录 /var/lib/rancher 中找到k3s日志,进行分析。
/var/lib/rancher 这个目录也是一个docker volume,你可以很方便在Host找到这个路径。

提示一点:2.5会比2.4需要更多一些的CPU/MEM。