Rancher 2.4.18 UI 报错 "Unexpected end of JSON input"

Rancher Server 设置

  • Rancher 版本:2.4.17
  • 安装选项 (Docker install 独立运行):

下游集群信息

  • Kubernetes 版本: 1.18.14 + etcd : 3.5.2 + containerd :1.5.5

问题描述:Rancher UI 界面显示报错 Unexpected end of JSON input

image

这个错误怎么解决?

日志

[root@k8smaster-t1 ~]# kubectl get cs
NAME STATUS MESSAGE ERROR
controller-manager Healthy ok
scheduler Healthy ok
etcd-1 Healthy {“health”:“true”,“reason”:""}
etcd-2 Healthy {“health”:“true”,“reason”:""}
etcd-0 Healthy {“health”:“true”,“reason”:""}

你的集群是创建的,还是导入的? 而且是在什么操作的时候导致的这个错误?

你是airgap离线安装么?为什么把我们辛苦总结的问题模板内容删掉… :sweat_smile:

2.4系列已经EOL了,如果airgap引起的问题,可参考:https://github.com/rancher/rancher/issues/37266
升级到2.5.13可解决。