Error Occurred During Deployment Using TIUP

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

Original topic: 使用TIUP部署时报错

| username: TiDBer_EYdbxOAS

Prerequisites:

  1. The topology file has been configured;
  2. 160 is the deployment host, 159, 161, and 162 are the other three machines, the keys have been established, and the authorized_keys file has been placed on the corresponding three machines;
  3. From 160, all three machines can be pinged, and the ports are open;
  4. From 160, you can log in to the other three machines via SSH;
    Can the experts take a look at how to solve the problem?
    Additionally, after removing the :

    Key path:
    image
| username: WalterWj | Original post link

-i does not need to use .

| username: Jolyne | Original post link

tiup cluster deploy tidb-test v7.5.0 ./topology.yaml --user root -i /home/root/.ssh/gcp_rsa (replace with your path)

| username: zhanggame1 | Original post link

The square brackets are useless. It’s more convenient to use the root account for installation, no need to configure mutual trust.

| username: TiDBer_EYdbxOAS | Original post link

Changing [-i] to -i still doesn’t work.

| username: TiDBer_EYdbxOAS | Original post link

Do multiple machines in the cluster need a root account, and do the passwords for root need to be consistent?

| username: TiDBer_EYdbxOAS | Original post link

The path has actually been changed to my own path, which is the path of the public key, but I didn’t use the root user.

| username: Jolyne | Original post link

You need to keep your SSH password consistent, and do you have a TiDB user?

| username: zhanggame1 | Original post link

Root deployment can be done with user root -p, no need for -i and such, and no need to configure mutual trust. All machines need to have the same root password.

| username: TiDBer_EYdbxOAS | Original post link

What does it mean for the SSH password to remain consistent? Does it mean that the login passwords for non-root users in the cluster also need to be consistent?

| username: 普罗米修斯 | Original post link

Is the error still related to SSH authentication? Are the other three servers working fine with SSH passwordless login? Also, have you added the ordinary user operation permissions in the sudoers file?

| username: TiDBer_EYdbxOAS | Original post link

SSH login to the other three servers is normal and does not require entering the corresponding target machine’s password.


On the corresponding three machines, the authorized_keys file was generated using the ssh-copy-id user@target_host command.

| username: TiDBer_小阿飞 | Original post link

It’s probably a trust issue, configure mutual trust.

| username: 普罗米修斯 | Original post link

What is this? Do I still need to input something?
Normally, password-free setup should look like this:
图片

| username: 普罗米修斯 | Original post link

Take a look at this sshd configuration.

| username: Miracle | Original post link

Did you set a password for id_rsa? What needs to be entered after ssh in this picture?

| username: TiDBer_EYdbxOAS | Original post link

I reset the mutual trust again, and now it has been completed.


However, when checking for potential risks in the cluster, an error was reported. The error looks quite similar to the previous one.

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

For the SSH issue, try connecting manually. If that doesn’t work, make sure all password configurations are the same, then just enter the password.

| username: 随缘天空 | Original post link

No need for the -i parameter, tiup supports passwordless mutual trust by default.

| username: dba远航 | Original post link

Try connecting manually to troubleshoot the SSH issue.