【 TiDB 使用环境】生产环境
【 TiDB 版本】5.3.0
【操作】使用tiup cluster stop tidb-cluster命令关闭集群
【遇到的问题】无法关闭集群
【附件:截图/日志/监控】
使用tiup cluster stop tidb-cluster命令关闭集群时,提示以下报错,重新设置tidb用户的免密登录后重新执行命令依然提示下面的报错。以下的报错为单独关闭prometheus-9090时的报错。
提示报错
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