Tiup br backup full: Encountering 404 Error When Backing Up Data to Alibaba Cloud OSS

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

Original topic: tiup br backup full 备份数据到阿里云oss出现404

| username: yinyuncan

[TiDB Usage Environment] Production Environment
[TiDB Version]
tidb version 5.0.1
tiup version 1.11.0
br version v6.3.0
[Encountered Problem] tiup br backup full backup data to Alibaba Cloud OSS shows 404
[Reproduction Path] Operations that led to the problem
tiup br backup full
[Problem Phenomenon and Impact]

[Execution Command]

  tiup br backup full  \
  --send-credentials-to-tikv=true \
  --pd  "127.0.0.1:2379" \
  --storage "s3://xxx/xxx?access-key=xxxxx&secret-access-key=xxxx" \
  --s3.endpoint "https://xxx.oss-cn-shenzhen-internal.aliyuncs.com" \
  --s3.provider "alibaba" \
  --s3.region "cn-shenzhen" \
  --ratelimit 128 \
  --log-file backuptable.log

Returned Error Message

[2022/10/27 16:05:09.953 +08:00] [INFO] [collector.go:69] ["Full Backup failed summary"] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: failed to get region of bucket xxx: NotFound: Not Found
        status code: 404, request id: xxxxx, host id: 

Alibaba Cloud OSS Request Log

acc_access_region

:-

access_id

:xxxx

bucket

:xxxx

bucket_location

:oss-cn-shenzhen-q

bucket_storage_type

:standard

client_ip

:10.0.0.80

content_length_in

:-

content_length_out

:280

delta_data_size

:-

error_code

:NoSuchKey

extend_information

:-

host

:xxx.oss-cn-shenzhen-internal.aliyuncs.com

http_method

:HEAD

http_status

:404

http_type

:https

logging_flag

:-

object

:xxx

object_size

:-

operation

:HeadObject

owner_id

:xxxx

referer

:-

request_id

:xxxxx

request_length

:496

request_uri

:/xxx-xxHTTP/1.1

requester_id

:xxxx

response_body_length

:0

response_time

:17

restore_priority

:-

server_cost_time

:17

sign_type

:AwsSign4

sync_request

:-

time

:27/Oct/xxxx

user_agent

:aws-sdk-go/1.44.48 (go1.19.1; linux; amd64)

user_defined_log_fields

:-

vpc_addr

:xxx

vpc_id

:xxxx
| username: Kongdom | Original post link

It is recommended to keep the BR version consistent with the TiDB version.

| username: Meditator | Original post link

It seems that you want to use the latest BR that supports OSS, but the TiDB version is relatively old. Try setting up an environment with the same version.

| username: yinyuncan | Original post link

That’s right, it was a BR version issue. I switched to the version specified by TiDB and the backup was successful. Thank you.

| username: yinyuncan | Original post link

Thank you. I successfully backed up after switching to the same version as TiDB.

| username: Kongdom | Original post link

:handshake: :handshake: :handshake:

| username: system | Original post link

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