TiUP v7.5.0 Single Machine Deployment SCP Failure

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

Original topic: tiup v7.5.0 单机部署scp失败

| username: 程序员小王

Based on tiup v7.5.0 单机部署失败 scp失败 - TiDB 的问答社区

root executes tiup cluster deploy tidb-test 7.5.0 ./minimal.yaml --user root -p 123

An error occurs during scp

  • Configuration file configures mds user
  • Root machine passwordless login
 - Download grafana:v7.5.0 (linux/amd64) ... Done
  - Download alertmanager: (linux/amd64) ... Done
  - Download node_exporter: (linux/amd64) ... Done
  - Download blackbox_exporter: (linux/amd64) ... Done
+ Initialize target host environments
  - Prepare 127.0.0.1:22 ... Done
+ Deploy TiDB instance
  - Copy pd -> 127.0.0.1 ... Error
  - Copy tikv -> 127.0.0.1 ... Error
  - Copy tidb -> 127.0.0.1 ... Error
  - Copy tiflash -> 127.0.0.1 ... Error
  - Copy prometheus -> 127.0.0.1 ... Error
  - Copy grafana -> 127.0.0.1 ... Error
  - Copy alertmanager -> 127.0.0.1 ... Error
  - Deploy node_exporter -> 127.0.0.1 ... Error
  - Deploy blackbox_exporter -> 127.0.0.1 ... Error

Error: failed to scp /root/.tiup/storage/cluster/packages/tidb-v7.5.0-linux-amd64.tar.gz to 127.0.0.1:/root/tidb/tidb-deploy/tidb-4000/bin/tidb-v7.5.0-linux-amd64.tar.gz: failed to scp /root/.tiup/storage/cluster/packages/tidb-v7.5.0-linux-amd64.tar.gz to tidb@127.0.0.1:/root/tidb/tidb-deploy/tidb-4000/bin/tidb-v7.5.0-linux-amd64.tar.gz: Process exited with status 1
| username: Kongdom | Original post link

Please refer to this:

| username: zhanggame1 | Original post link

As the root user, deployment should not fail, and there is no need to configure passwordless access. First, log in as root and manually ssh root@IP_of_the_configuration_file, then try scp.

Also, -p 123, is your root password 123? Try executing directly with tiup cluster deploy tidb-test 7.5.0 ./minimal.yaml --user root -p.

| username: 江湖故人 | Original post link

The -p parameter is a logical value, not a password :laughing:

tiup cluster deploy | PingCAP Documentation Center

-i, --identity_file (string, default ~/.ssh/id_rsa)

Specifies the key file for connecting to the target machine.

-p, --password

  • Use password login when connecting to the target machine, cannot be used simultaneously with -i/--identity_file.
  • Data type: BOOLEAN
  • This option is off by default, with a default value of false. Adding this option in the command and passing in a true value or not passing a value will enable this feature.
| username: dba远航 | Original post link

Password verification failed.

| username: kelvin | Original post link

Log in to the control machine and use SSH to log in to the target machine’s IP. If you can log in successfully without entering a password, it means the SSH mutual trust configuration is successful, and theoretically, there should be no issues. However, in principle, deploying as the root user should not result in errors.