tiup cluster list查不到集群

你用哪个账号部署的?过程是怎么样的?

cluster list 集群名称呐

安装用户来的吧

用 tiup 查查看

su tidb 中间加上-,如:su - tidb试试

我这里尝试复现你的问题:
Please check for root manifest file, you may download one from the repository mirror, or try tiup mirror set to force reset it.
Error: initial repository from mirror(/opt/tidb/tidb-community-server-v8.0.0-linux-amd64) failed: error loading manifest root.json: open /home/tidb/.tiup/bin/root.json: no such file or directory
解决方式:
切换到安装tidb的用户,重新安装一下就行了

# 解压 TiDB 社区服务器
tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz
# 执行本地安装脚本
sh tidb-community-server-${version}-linux-amd64/local_install.sh
# 更新 bashrc
source /home/tidb/.bashrc
# 解压工具包
tar xf tidb-community-toolkit-${version}-linux-amd64.tar.gz
# 列出服务器和工具包目录
ls -ld tidb-community-server-${version}-linux-amd64 tidb-community-toolkit-${version}-linux-amd64
# 切换到服务器目录
cd tidb-community-server-${version}-linux-amd64/
# 复制密钥
cp -rp keys ~/.tiup/

估计有人误删了文件或者移动了目录,可以用history和find 确认下

1 个赞

tiup mirror show 应该会显示一个目录,看下目录在不在

感觉像是把 .tiup 目录移动了,但是没有去修改环境变量。

可以把 .tiup 安装目录加到环境变量 TIUP_HOME,然后把 $TIUP_HOME/bin/ 加到 PATH 环境变量试试。前几天移动 .tiup 安装目录也出现过类似问题

找到中控机,在中控机上查看

在控制台使用正确的用户执行 tiup cluster list。