Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb集群关闭失败
[TiDB Usage Environment] Production Environment
[TiDB Version] 5.3.0
[Operation] Used the command tiup cluster stop tidb-cluster
to shut down the cluster
[Encountered Issue] Unable to shut down the cluster
[Attachment: Screenshot/Log/Monitoring]
When using the command tiup cluster stop tidb-cluster
to shut down the cluster, the following error is prompted. After resetting the passwordless login for the tidb user and re-executing the command, the same error is still prompted. The following error occurred when trying to shut down prometheus-9090 individually.
Error Prompt
Error: failed to stop prometheus: failed to stop: 192.168.1.7 prometheus-9090.service, please check the instance’s log(/tidb/tidb-deploy/prometheus-9090/log) for more detail.: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@192.168.1.7:22’ {ssh_stderr: , 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 prometheus-9090.service”}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain