我在自己的虚拟机中用tiup安装tidbv4.0.1的版本的时候报超时错误

Do you want to continue? [y/N]: y
Input SSH password:

  • Generate SSH keys … Done
  • Download TiDB components
    • Download pd:v4.0.1 (linux/amd64) … Done
    • Download tikv:v4.0.1 (linux/amd64) … Done
    • Download tidb:v4.0.1 (linux/amd64) … Done
    • Download tiflash:v4.0.1 (linux/amd64) … Done
    • Download prometheus:v4.0.1 (linux/amd64) … Done
    • Download grafana:v4.0.1 (linux/amd64) … Done
    • Download node_exporter:v0.17.0 (linux/amd64) … Done
    • Download blackbox_exporter:v0.12.0 (linux/amd64) … Done
  • Initialize target host environments
    • Prepare 192.168.33.10:22 … Done
  • Copy files
    • Copy pd -> 192.168.33.10 … Done
    • Copy tikv -> 192.168.33.10 … Done
    • Copy tikv -> 192.168.33.10 … Done
    • Copy tikv -> 192.168.33.10 … Done
    • Copy tidb -> 192.168.33.10 … Done
    • Copy tiflash -> 192.168.33.10 … Error
    • Copy prometheus -> 192.168.33.10 … Done
    • Copy grafana -> 192.168.33.10 … Done
    • Copy node_exporter -> 192.168.33.10 … Done
    • Copy blackbox_exporter -> 192.168.33.10 … Done

Error: stderr: Run Command Timeout!
: executor.ssh.execute_timedout: Execute command over SSH timedout for ‘tidb@192.168.33.10:22’ {ssh_stderr: Run Command Timeout!
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin tar -xzf /tidb-deploy/tiflash-9000/bin/tiflash-v4.0.1-linux-amd64.tar.gz -C /tidb-deploy/tiflash-9000/bin && rm /tidb-deploy/tiflash-9000/bin/tiflash-v4.0.1-linux-amd64.tar.gz}

Verbose debug logs has been written to /root/logs/tiup-cluster-debug-2020-06-22-15-08-02.log.
Error: run /root/.tiup/components/cluster/v1.0.6/tiup-cluster (wd:/root/.tiup/data/S2eZI0G) failed: exit status 1

有哪位大佬之前遇到过,能否解答一下我的问题。十分感谢

你好,

可以使用在 deploy 语句最后添加 --ssh-time-out 参数将超时时间延长,看是否可以解决该问题。