【TiDB Usage Environment】Production Environment / Testing / PoC
【TiDB Version】
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Issue Phenomenon and Impact】
【Resource Configuration】Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
【Attachments: Screenshots / Logs / Monitoring】
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for ‘user@186.18.80.70:22’ {ssh_stderr: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; /usr/bin/sudo -H bash -c “uname -m”}, cause: Process exited with status 1
If the deployment user is not root or does not have passwordless sudo permissions, you can add -u root to the command and then enter the root password.
Is it a configuration file? The tiup tool keeps one for itself, and each component has its own configuration file that can be modified. Most of the TiDB parameters and others are still persisted in TiKV.
For easier future operations, use passwordless login. The prompt here is ssh_stderr: sudo: a terminal is required to read the password; it should be that passwordless sudo is not configured. Configure it in /etc/sudoers.