Error in Setting Up Cluster with TiUP

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

Original topic: tiup 搭建集群报错

| username: 月明星稀

Error occurred during deployment with tiup, could you please check what went wrong?

| username: 像风一样的男子 | Original post link

What operating system are you using if you can’t get the system info?

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

Can you SSH into these machines at 1.1.1.83:789?

| username: zhanggame1 | Original post link

It feels like either the username or password is incorrect, or there is a permissions issue. If possible, it’s best to use -u root during installation.

| username: Kongdom | Original post link

Every time I encounter an SSH problem, I revisit this:

| username: 月明星稀 | Original post link

If you can’t log in, how can the OS detection above be completed?

  • Detecting node 1.1.1.34 OS info … Done
  • Detecting node 1.1.1.62 OS info … Done
  • Detecting node 1.1.1.63 OS info … Done
  • Detecting node 1.1.1.83 OS info … Done
  • Detecting node 1.1.1.84 OS info … Done
| username: Fly-bird | Original post link

This error is likely due to the installation package not being downloaded. Try a few more times, or check the network of each host.

| username: 月明星稀 | Original post link

OS=Linux, ARCH=amd64

| username: 月明星稀 | Original post link

Does this file need to be downloaded remotely? Can it be made into an offline package?

| username: 像风一样的男子 | Original post link

Try running tiup cluster check to see if it’s an SSH login permission issue.

| username: 月明星稀 | Original post link

This error occurred during the check! Thank you.

| username: 月明星稀 | Original post link

What configuration information do you need to look at? TiKV or PD?

| username: Kongdom | Original post link

What deployment method did you use?

| username: 月明星稀 | Original post link

When deploying with tiup, an error occurs when executing tiup cluster check.

| username: Kongdom | Original post link

It looks like the same issue, both are permission issues.

| username: 月明星稀 | Original post link

I have configured this in the /etc/sudoers file:
tikvadmin ALL=(ALL) NOPASSWD: ALL

| username: 月明星稀 | Original post link

Moreover, if it’s due to the lack of SSH permissions, logically the OS detection should also fail. How could it succeed then?

  • Detecting node 1.1.1.34 OS info … Done
  • Detecting node 1.1.1.62 OS info … Done
  • Detecting node 1.1.1.63 OS info … Done
  • Detecting node 1.1.1.83 OS info … Done
  • Detecting node 1.1.1.84 OS info … Done
| username: Kongdom | Original post link

You can use this method to verify.

| username: Kongdom | Original post link

You see, the link is the same. The first step does not report an error, but the second step does.
It should be that the required permissions are different.

| username: Kongdom | Original post link

You’re not saying that each node has a different user, right? There aren’t also tidbadmin and pdadmin, are there?