4.0.4 升级到 4.0.5报错

很少有升级是一次性痛痛快快能完成的,基本每次升级都会遇到这样那样的问题。

  • [ Serial ] - InitConfig: cluster=tidb-cluster, user=tidb, host=10.10.5.30, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-cluster/config-cache/tiflash-9000.service, deploy_dir=/data1/tiflash-9000, data_dir=[/data1/tiflash-9000/data], log_dir=/data1/tiflash-9000/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/tidb-cluster/config-cache
  • [ Serial ] - InitConfig: cluster=tidb-cluster, user=tidb, host=10.10.5.32, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-cluster/config-cache/tiflash-9000.service, deploy_dir=/data1/tiflash-9000, data_dir=[/data1/tiflash-9000/data], log_dir=/data1/tiflash-9000/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/tidb-cluster/config-cache
  • [ Serial ] - InitConfig: cluster=tidb-cluster, user=tidb, host=10.10.5.31, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-cluster/config-cache/tiflash-9000.service, deploy_dir=/data1/tiflash-9000, data_dir=[/data1/tiflash-9000/data], log_dir=/data1/tiflash-9000/log, cache_dir=/home/tidb/.tiup/storage/cluster/clusters/tidb-cluster/config-cache

Error: init config failed: 10.10.5.28:9090: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.10.5.28:22’ {ssh_stderr: rm: cannot remove ‘/data1/deploy/conf/fonts’: Is a directory
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin rm -f /data1/deploy/conf/*}, cause: Process exited with status 1

Verbose debug logs has been written to /home/tidb/logs/tiup-cluster-debug-2020-09-01-13-58-09.log.
Error: run /home/tidb/.tiup/components/cluster/v1.1.0/tiup-cluster (wd:/home/tidb/.tiup/data/S9JUEP0) failed: exit status 1

tiup-cluster-debug-2020-09-01-13-58-09.log (120.8 KB)

看下 10.10.5.28:22 /data1/deploy/conf/ 路径下是否存在 directory

抱歉,目前看来您使用的应该是 tiup-cluster v1.1.0,并且是从 ansible import 的集群,所以遇到了一个 bug,我们昨天已紧急修复,麻烦执行 tiup update cluster 升级一下,然后重试操作

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。