tiup cluster list查不到集群

我这里尝试复现你的问题:
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 个赞