Error When Upgrading TiDB from 5.3 to 6.1

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

Original topic: tidb5.3升级到6.1时报错

| username: TiDB_New_People

Executing command: tiup cluster upgrade tidb-cs v6.1.0
Error message:
failed to scp /root/.tiup/storage/cluster/packages/prometheus-v6.1.0-linux-amd64.tar.gz to 192.168.1.3:/data/tidb-deploy/prometheus-9090/bin/prometheus-v6.1.0-linux-amd64.tar.gz:

| username: TiDB_New_People | Original post link

Has anyone encountered this kind of problem? How can it be resolved?

| username: TiDB_New_People | Original post link

Manually create the directory and grant permissions to stop the error from appearing. If anyone has encountered this issue and understands the root cause, please leave a comment.

| username: Min_Chen | Original post link

Hello, please provide the debug log, specifically the debug log output to the file after tiup reports an error.

Usually, retrying can succeed.

| username: TiDBer_GgEJYiwA | Original post link

User permission issue: if you are using the root user, check whether the configuration file belongs to the root user or the tidb user. If it is the tidb user, it does not have permission to access the root user’s directory. Therefore, it is better to create a user and strictly manage directory permissions according to the user directory.

| username: 裤衩儿飞上天 | Original post link

Directory permissions? Is SSH passwordless login working properly?

| username: TiDBer_GgEJYiwA | Original post link

Yes, password-free access is working normally now, the issue was related to permissions. There is a problem if the TiDB directory path is placed under root, so planning the path and user needs to be done with strict caution, or you need to change the directory user group permissions.

| username: system | Original post link

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