Tiup cluster deploy mytidb-cluster v5.0.0 ./topo.yaml --user root -p Deployment Failed

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

Original topic: tiup cluster deploy mytidb-cluster v5.0.0 ./topo.yaml --user root -p 部署失败

| username: JXSF_201926704035

What should I do?
I wanted to test if TiDB 5 could be installed on CentOS 6, but I encountered an error.

| username: xingzhenxiang | Original post link

Can you log in directly using your password with ssh root@192.168.0.164?

| username: 啦啦啦啦啦 | Original post link

I used to use CentOS 6 and it didn’t work either. Follow the official recommendation and use 7.3 or above.

| username: 孤君888 | Original post link

Is the port unreachable? Have you configured SSH key-based authentication for passwordless login?

| username: xingzhenxiang | Original post link

It is recommended to follow the official system for testing, CentOS 6 is not on the supported list.

| username: tidb菜鸟一只 | Original post link

It is recommended to create a tidb user on each node and try deploying with the specified tidb user.

| username: 我是咖啡哥 | Original post link

The official requirement is CentOS 7.3 or higher. The commands between CentOS 7 and 6 are quite different, so it is recommended to use CentOS 7.

| username: TiDBer_pkQ5q1l0 | Original post link

Was a specific user designated during the installation?

| username: JXSF_201926704035 | Original post link

The configuration file is written like this:

global:
user: “tidb”
ssh_port: 22

deploy_dir: “/tidb/tidb-deploy”
data_dir: “/tidb/tidb-data”

monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115

| username: TiDBer_pkQ5q1l0 | Original post link

Have all nodes added the user ‘tidb’?

| username: JXSF_201926704035 | Original post link

So what does a node mean? I have filled in the IPs below with the local machine.

pd_servers:

  • host: 192.168.0.16
    client_port: 2379

tidb_servers:

  • host: 192.168.0.16

tikv_servers:

  • host: 192.168.0.16 # Host IP
    port: 20160
    status_port: 20180
    config:
    server.labels: { host: “logic-host-1” }

tiflash_servers:

  • host: 192.168.0.16

monitoring_servers:

  • host: 192.168.0.16

grafana_servers:

  • host: 192.168.0.16
    port: 3000
| username: TiDBer_pkQ5q1l0 | Original post link

Has the TiDB user been created in advance on the local machine?

| username: JXSF_201926704035 | Original post link

Created.

| username: JXSF_201926704035 | Original post link

Can I just fill in ‘root’ for the user in the configuration?

| username: TiDBer_pkQ5q1l0 | Original post link

Sure.

| username: JXSF_201926704035 | Original post link

Changing to root reports this error:

caused by: Failed to create ‘~/.ssh’ directory for user ‘root’

| username: TiDBer_pkQ5q1l0 | Original post link

ssh-keygen -t rsa

| username: TiDBer_pkQ5q1l0 | Original post link

You can check the deployment instructions on the official website.