Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: br 备份至 docker安装的MinIO,出错
[TiDB Usage Environment] Production Environment / Testing / PoC
Testing Environment
[TiDB Version]
V6.5.2
[Reproduction Path] What operations were performed when the issue occurred
Used BR to back up cluster data to MinIO
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]
The error is “failed to get region of bucket…”
Has anyone encountered a similar issue?
Is it possible that the bucket wasn’t created?
400 means access failure, check the authorization and other related aspects.
It still doesn’t seem to work. I’m using administrator privileges.
Add the parameter --region in the command.
Is the command written incorrectly?
Refer to:
./br backup db --pd "pd_ip:pd_port" --storage "s3://access_key:secret_key@endpoint/bucket_name" --ratelimit 60 --log-file backup.log
Here, “pd_ip:pd_port” is the address of your PD server, “access_key” and “secret_key” are the access key and secret key of your MinIO account, “endpoint” is the endpoint of your MinIO server, and “bucket_name” is the name of the bucket you created for backup.
The “–ratelimit” option specifies the maximum transfer rate in MB/s, and the “–log-file” option specifies the path to the log file.
It prompts that there is no such parameter.
Is this accessed via IAM?
Try this format, you need to actively set access-key=${access-key}&secret-access-key=${secret-access-key}, using @ method does not work.
It still doesn’t seem to work, boss.
Yes, it’s a bit confusing.
I suspect it’s an issue with MinIO. Did you execute this command?
No, I only downloaded the server, not the client.
There’s no need to use Docker; just install it natively on Linux. It’s very strange, I don’t know why.
What is your docker run command? Did you forget to expose some ports?
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.