Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tiup管理集群问题

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.5.0
[Reproduction Path] Create a cluster using tiup, initially successful, but after a while, it prompts a sudo error.
[Encountered Problem: Phenomenon and Impact]
Create a cluster using tiup, deploying with a specified key file, and ssh is set to passwordless. Initially, it can be created successfully. However, after a while, it prompts a sudo error. The error is as follows, please check what the reason is!! Thanks.
[Attachment: Screenshot/Log/Monitoring]
Stopping component tikv
Stopping instance 1.1.1.1
Stopping instance 2.2.2.2
Stopping instance 3.3.3.3
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
I have checked the configuration added to /etc/sudoers when setting up the cluster, tikv ALL=(ALL) NOPASSWD: ALL is still there, why is it reporting an error, quite puzzling.
Manually executing on the machine: /usr/bin/sudo -H bash -c “systemctl daemon-reload && systemctl stop tikv-20160.service” has no errors, probably an issue with remote execution.