tidb-dashboard启动失败 提示`GLIBC_2.28' not found (required by bin/tidb-dashboard)

成功deploy 以后 --init 去启动的时个集群,在启动tidb-dashboard提示

bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by bin/tidb-dashboard)
bin/tidb-dashboard: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by bin/tidb-dashboard)

按照


说应该只需要安装 glibc-2.28.tar.gz
但是不行。
还需要安装
glibc-2.29.tar.gz
glibc-2.32.tar.gz
glibc-2.33.tar.gz
glibc-2.34.tar.gz
但我在安装 glibc-2.34.tar.gz的时候报错。系统都挂了

但我另外一个集群v5.4.0
ldd --version 只是2.17的版本。同样可以启动正常。这个tidb-dashboard 为什么需要这些东西啊?

服务器可以连接外网吗?执行 strings /lib64/libc.so.6 | grep GLIBC 命令检查一下 glibc

GLIBC_2.28 GLIBC_2.29 GLIBC_2.32 GLIBC_2.33 GLIBC_2.34 确实是没有的。但我另外一个5.4.0的集群也没有这些东西啊。升级到6.5.0就需要了吗?

你这个是升级的还是新建的集群升级上来的话一般不会出现这种情况。你的系统是什么版本的。另外检查一下 ls -l /lib64/libc.so.6 看看现在用的那个版本的libc 对比一下你5.4.0 的看一样不。目前我的测试环境用的是2.17,版本是6.5

不是升级的。是在新的服务器上新安装的。新服务器是centos7.9 。

老服务器5.4.0
/lib64/libc.so.6 → libc-2.17.so

新服务器已经ssh不上去了。要重新安装系统了
在升级之前应该也是
/lib64/libc.so.6 → libc-2.17.so

老的服务器上5.4.0是centos7.8的

我感觉的区别就是5.4.0好像没有单独的tidb-dashboard
只是和pd在一起。
不知道6.5.0为什么会是这样的。

我的5.4.0 也是2.17的

新服务器升级glibc 之前也是2.17的。但是启动tidb-dashboard就报上面的错

6.5好像dashboard是默认单独部署的,而单独部署对于glibc是有版本要求的,如果不想单独部署dashboard,只要将拓扑文件中tidb_dashboard_server部分去掉或者注释就可以了。

Hi,这位同学,

TiDB Dashboard 从 v6.5.0 开始成为一个独立的组件。K8S 上 TiDB Operator v1.4.0 部署集群,已经支持使用 TiDBDashboard CRD,TiUP 独立部署 TiDB Dashboard 预预计将在 v6.6.0 支持。

楼主提到的问题,因为我们 CD 过程中使用了与 PD、TiDB 等内核组件不同的 base image builder,导致 glibc 版本不兼容内核的最低要求版本。

目前我们正在解决,尽快替换 v6.5.0 的 TiDB Dashboard image。各位也可以使用 PD 中内置的 Dashboard(该 Dashboard 会保留一段时间,短时间内不会从 PD 中去掉)。

有能力的同学也可以自己编译 dashboard 镜像,参考 contributing.mddockerfile

谢谢!

1 个赞

我已经把拓扑文件里面的tidb_dashboard删除了。

楼主提到的问题,因为我们 CD 过程中使用了与 PD、TiDB 等内核组件不同的 base image builder,导致 glibc 版本不兼容内核的最低要求版本。

这个问题我事先我没看到说明。最后去级级glibc 系统都升挂了

修复后的 v6.5.0 的 TiDB Dashboard image 预计在本周发布,到时候将直接替换下面两个 tag 下的 image:

  • pingcap/tidb-dashboard:latest
  • pingcap/tidb-dashboard:v6.5.0