Application environment:
Linux AMD64 cluster with all nodes running Ubuntu 20.04.5 LTS
TiDB version:
v6.5.0
Reproduction method:
Follow the installation instructions here: Deploy a TiDB Cluster Using TiUP | PingCAP Docs as far as Step 4. The problem arises in Step 4, when I do:
tiup cluster deploy tidb-cluster v6.5.0 machines/tidb/tidb-config.yaml --user fano
Here fano
is the name of the user I will be running the cluster as. I have set up passwordless login for this user to all nodes.
Problem:
Deployment fails with:
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for âfano@fs-9: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
This happens in the step âDetect CPU Arch Nameâ.
I get exactly the same error if I add the â-pâ option to the âtiup cluster deployâŚâ command above: it asks for the SSH password and then fails with exactly the same error, at exactly the same point.
I also get exactly the same error if I add the ââssh systemâ flag to the âtiup cluster deployâŚâ command above, and also if I add both options: ââssh system -pâ. In each case it fails with exactly the same error, at exactly the same point.
Please advise!
Resource allocation:
192Gb RAM, 8Tb hard disk.
Attachment:
n/a