重启tiflash提示executor.ssh.execute_failed

【 TiDB 使用环境】生产环境
【 TiDB 版本】v5.2.0
【复现路径】tiup cluster stop tidb-cluster -N 192.xx.xx.12:9000
【遇到的问题:问题现象及影响】

/etc/profile.d/history.sh: line 5: ifconfig: command not found

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

sudo: no tty present and no askpass program specified

/etc/profile.d/history.sh: line 5: ifconfig: command not found

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

sudo: no tty present and no askpass program specified

Error: failed to stop tiflash: failed to stop: 1xx.xx.xx.xx tiflash-9000.service, please check the instance’s log(/data/tidb-deploy/tiflash-9000/log) for more detail.: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@1xx.xx.xx.xx:10022’ {ssh_stderr: /etc/profile.d/history.sh: line 5: ifconfig: command not found

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

sudo: no tty present and no askpass program specified
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c “systemctl daemon-reload && systemctl stop tiflash-9000.service”}, cause: exit status 1

/etc/profile.d/history.sh这个脚本是你自己写的?

有存在这个文件

不是他提示没有ifconfig命令?你手工试一下,这命令不该没有吧。。。

先手动试下ifconfig命令吧,看报错是找不到这个命令了 。测试没有的话 ,直接yum install -y net-tools安装下再看看报啥错吧

报错信息提示的是ifconfig: command not found
可能是你没有安装 net-tools
可以输入以下命令安装后重试。

yum install net-tools

看报错信息提示,还需要确认一下执行这个命令的角色是否有权限,如果权限不够可以尝试将用户加入sudoers里之后,重试一下

tiup stop 时候调用 history.sh 是改了 tiup 源码吗?