Error Occurred When Shutting Down Cluster in Single-Node Deployment

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

Original topic: 单机部署关闭集群出错

| username: TiDBer_VGWxY8nV

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Problem Phenomenon and Impact] Why does single-machine deployment still require SSH authorization? How can it be operated normally? Seeking help.
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]

| username: liuis | Original post link

The error message is very detailed.

| username: TiDBer_VGWxY8nV | Original post link

I know the issue is with SSH authorized login, but I don’t know how to proceed next. The key point is that it’s a single machine; there is no such problem with multiple machines.

| username: zhanggame1 | Original post link

Try restarting the machine to see if it can come up. For single-node deployment, it’s best to use the root user for installation to avoid any issues.

| username: caiyfc | Original post link

Try copying the contents of .tiup/storage/cluster/clusters/ClusterName/ssh/id_rsa.pub to the ~/.ssh/authorized_keys file, and remember to back up first.

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

The simplest way is to add --user root -p after the command and enter the username and password.

| username: TiDBer_VGWxY8nV | Original post link

I think the problem might be related to the configuration of the TiDB cluster. You can try to check the configuration files of each component to ensure that the settings are correct. Additionally, you can also check the logs of each component to see if there are any error messages or warnings.

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

I misread it. I thought it was an error during installation. Stopping the cluster does not require an account password.

| username: TiDBer_VGWxY8nV | Original post link

Restarting, stopping, and destroying all don’t work, the errors are exactly the same. It was installed using the root user.

| username: caiyfc | Original post link

Was the tidb-test user created by yourself, and was the mutual trust established by yourself?

| username: TiDBer_iCdTOZ1r | Original post link

Awesome 11

| username: Kongdom | Original post link

Even for single-node deployment, SSH mutual trust is required. :thinking:

| username: zhanggame1 | Original post link

Mutual trust is not necessary. Use the root user for installation. The tidb user will be automatically created after the installation is complete.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.