When deploying TiDB v7.5.1, entering the correct password shows "no terminal"

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidbv7.5.1部署时输入密码(正确的)却显示没有终端

| username: TiDBer_微风轻吟

【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】


Please help me take a look :sob:

| username: TiDBer_微风轻吟 | Original post link

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

| username: zhanggame1 | Original post link

No username added, just use root, add the following parameters:
–user root -p

| username: 小龙虾爱大龙虾 | Original post link

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.

| username: TiDBer_RjzUpGDL | Original post link

Add -uroot -p

| username: wangkk2024 | Original post link

Top top top top top top top top top top top

| username: Kamner | Original post link

Configure sudo and configure passwordless SSH

Reference:

| username: TiDBer_QYr0vohO | Original post link

You missed adding -uroot -p

| username: TiDBer_微风轻吟 | Original post link

Can I use a key, master?

| username: Kamner | Original post link

What key?

| username: zhanggame1 | Original post link

Using a password is sufficient; there’s no need to set up mutual trust.

| username: TiDBer_微风轻吟 | Original post link

The boss said it’s not safe and won’t give it to me, so I have to use SSH :sweat_smile:

| username: WinterLiu | Original post link

Haha, the command is wrong. Without a user, what’s the use of just entering a password?

| username: zhanggame1 | Original post link

Just use it once, unless you need to expand, otherwise it’s used.

| username: TiDBer_微风轻吟 | Original post link

Oh, we need to scale up later. By the way, where is the data usually persisted after the cluster is started, so it won’t be lost upon reboot, right? :sob:

| username: zhanggame1 | Original post link

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.

| username: 呢莫不爱吃鱼 | Original post link

No user specified, right?

| username: madcoder | Original post link

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.

| username: zhaokede | Original post link

Specify user with -u

| username: dba远航 | Original post link

The command line is incomplete, try using -u to specify the user.