Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb5.3升级到6.1时报错
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:
Has anyone encountered this kind of problem? How can it be resolved?
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.
Hello, please provide the debug log, specifically the debug log output to the file after tiup reports an error.
Usually, retrying can succeed.
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.
Directory permissions? Is SSH passwordless login working properly?
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.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.