The `tiup cluster` command does not execute and times out

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

Original topic: tiup cluster 命令不执行,超时

| username: Hacker_xCAMTNUa

[TiDB Usage Environment] Testing
[TiDB Version] cluster v6.1
[Encountered Problem] tiup cluster execution unsuccessful
tiup cluster
tiup is checking updates for component cluster …timeout!
Error: unknown component

tiup dm can execute successfully.

Dashboard is all normal tt.doc (109.5 KB)
[Reproduction Path] One tiflash disk space was full and not detected, currently disk space has been restored.
[Problem Phenomenon and Impact]
Unable to run tiup cluster, cannot operate the cluster

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

What is the command you executed? Is it just tiup cluster? The command seems incomplete.

| username: Hacker_xCAMTNUa | Original post link

tiup cluster doesn’t work with anything following it.

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

Execute the following in the offline package directory:
sh tidb-community-server-v6.1.0-linux-amd64/local_install.sh

| username: Hacker_xCAMTNUa | Original post link

There is no such offline package, do I need to download it again?

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

No, it’s not an offline installation, right?

| username: Hacker_xCAMTNUa | Original post link

Yes, it was installed online. Previously, version 5.2.3 was running normally, and later upgraded directly to 6.1.0 using tiup, everything was normal. Then, adding tiflash for a table caused the disk space on the tiflash machine to be full, resulting in tiflash constantly restarting and going offline. It is currently back to normal. However, tiup cluster is no longer usable. During the troubleshooting process, it was found that the disk space was full, and even after recovery, it is still not usable.

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

Can the tiup cluster list command be executed?

| username: Hacker_xCAMTNUa | Original post link

Can’t execute :sob:

| username: cheng | Original post link

Reinstall tiup and try again.

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

Take a look at the detailed debug logs.

| username: Hacker_xCAMTNUa | Original post link

Which node’s debug

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

The debug logs of tiup are located in .tiup/logs.

| username: Hacker_xCAMTNUa | Original post link

Will reinstalling tiup affect the existing cluster? dm cluster

| username: Hacker_xCAMTNUa | Original post link

{“code”: 1, “error”: “Cluster pro_cluster_cluster not found”, “errorVerbose”: “Cluster pro_cluster_cluster not found
github.com/pingcap/tiup/components/cluster/command.newDisplayCmd.func1
\tgithub.com/pingcap/tiup/components/cluster/command/display.go:51
github.com/spf13/cobra.(*Command).execute
\tgithub.com/spf13/cobra@v1.3.0/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
\tgithub.com/spf13/cobra@v1.3.0/command.go:974
github.com/spf13/cobra.(*Command).Execute
\tgithub.com/spf13/cobra@v1.3.0/command.go:902
github.com/pingcap/tiup/components/cluster/command.Execute
\tgithub.com/pingcap/tiup/components/cluster/command/root.go:296
main.main
\tgithub.com/pingcap/tiup/components/cluster/main.go:23
runtime.main
\truntime/proc.go:255
runtime.goexit
\truntime/asm_amd64.s:1581”}

| username: cheng | Original post link

TiUP is just a tool for managing clusters and will not affect your current cluster.

| username: Hacker_xCAMTNUa | Original post link

I think I found the reason, there is no cluster in the tiup list.

| username: Hacker_xCAMTNUa | Original post link

Reinstalled it, and it works now. Thank you very much.

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

Got it, your installation of DM with tiup has overwritten it, and it should not be related to the tiflash issue. Switching the mirror should solve it.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.