关于TIDB4.0版本日志报错的问题

INFO Execute command finished {“code”: 1, “error”: “task.env_init.failed: Failed to initialize TiDB environment on remote host ‘![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)192.168.122.134’, cause: module.user.user_add_failed: Failed to create new system user ‘root’ on remote host, cause: executor.ssh.execute_failed: Failed to execute command over SSH for ‘root@192.168.122.134:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin sudo -H -u root bash -c “id -u root > /dev/null 2>&1 || /usr/sbin/useradd -m -s /bin/bash root && echo ‘root ALL=(ALL) NOPASSWD:ALL’ > /etc/sudoers.d/root”}, cause: dial tcp ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)192.168.122.134:22: i/o timeout”, “errorVerbose”: “task.env_init.failed: Failed to initialize TiDB environment on remote host ‘![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)192.168.122.134’, cause: module.user.user_add_failed: Failed to create new system user ‘root’ on remote host, cause: executor.ssh.execute_failed: Failed to execute command over SSH for ‘root@192.168.122.134:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin sudo -H -u root bash -c “id -u root > /dev/null 2>&1 || /usr/sbin/useradd -m -s /bin/bash root && echo ‘root ALL=(ALL) NOPASSWD:ALL’ > /etc/sudoers.d/root”}, cause: dial tcp ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)192.168.122.134:22: i/o timeout\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/executor.(*SSHExecutor).Execute()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/executor/ssh.go:156\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/module.(*UserModule).Execute()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/module/user.go:114\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/task.(*EnvInit).execute()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/task/env_init.go:63\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/task.(*EnvInit).Execute()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/task/env_init.go:44\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/task/task.go:189\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/task/step.go:85\n at ![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)github.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1()\n![](file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)tgithub.com/pingcap/tiup@/pkg/cluster/task/task.go:242\n at runtime.goexit()\n\truntime/asm_amd64.s:1357”}

在上面提示的错误经查不是因为SSH互信免登录原因,而是
monitoring_servers:

  • host: 192.168.22.143

grafana_servers:

  • host: 192.168.22.143

alertmanager_servers:

  • host: 192.168.22.143
    配置需要放在EXT4格式的数据盘上。后来我在虚拟机上挂载了EXT4就没有问题了,安装布署通过

问下,是 windows 的盘吗?

hi,请问下问题是否已经排除了呢

TIDB环境已经全部解决,主要是EXT4格式引起的。

是在什么位置发现了有用的信息,定位到 ext4 的问题的吗

是安装过多次之后,一直是报SSH免密错误,但是又不是这个问题引起的,后来查看官网配置SSD是数据盘是需要格式化成EXT4才能一键使用Tiup

欧克~

您好,这个报错看起来应该和 ext4没有关系,您可以试试xfs的盘应该也可以安装成功。感觉上面的问题是由于更换了盘重新指定了用户和属主权限,可能解决了问题,多谢。

好的,我试一下。

如果仍有问题,请继续跟贴回复 :handshake: ~~