为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:4.0.6
- 【问题描述】:通过reload命令重启tikv,失败:
Error: init config failed: XXX.XXX.XXX.XXX:2379: execute: mv /tmp/pd_1ffcdb4d-a9c4-44d4-bc39-3b70d7030c36.service /etc/systemd/system/pd-2379.service: executor.ssh.execute_faileommand over SSH for ‘tihexa@XXX.XXX.XXX.XXX:22’ {ssh_stderr: 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:/usr/bin:/usr/sbin sudo -H bash -c "mv /tmp/pd_1ffcdb4d-a9c4-44d4-bc39-3b70d7030c36.service /etc/systemd/system/pd-2379cess exited with status 1
Verbose debug logs has been written to /home/tihexa/logs/tiup-cluster-debug-2020-11-20-17-06-52.log.
Error: run /home/tihexa/.tiup/components/cluster/v1.2.0/tiup-cluster
(wd:/home/tihexa/.tiup/data/SGs2NOK) failed: exit status 1
然后给用户分配sudo权限后,reload成功,请问reload操作需要sudo权限吗?
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。