Skip to content

br s3 endpoint can't end with '/' #30104

@cyliu0

Description

@cyliu0

Bug Report

Please answer these questions before submitting your issue. Thanks!

This bug is a little bit frustrating.

1. Minimal reproduce step (Required)

AWS_ACCESS_KEY_ID=xxxx AWS_SECRET_ACCESS_KEY=xxxxx tiup br backup full --s3.endpoint http://minio.pingcap.net:9000/ -s s3://tmp/sysbenc-empty-cy

2. What did you expect to see? (Required)

br backup successfully

3. What did you see instead (Required)

br backup failed

Error: error happen in store 1 at 127.0.0.1:20160: Io(Custom { kind: Other, error: "failed to put object Request ID: None Body: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>BadRequest</Code><Message>An error occurred when parsing the HTTP request PUT at &#39;/
/tmp/sysbenc-empty-cy/1_2_28_2550d727ffe3e408af41f541b134d5e064440c25988bbecfb665933d1195a45d_1637743793014_write.sst&#39;</Message><Resource>//tmp/sysbenc-empty-cy/1_2_28_2550d727ffe3e408af41f541b134d5e064440c25988bbecfb665933d1195a45d_1637743793014_write.sst</Resource><
RequestId></RequestId><HostId>bf48f99f-3f89-4a20-bd11-95d1658fa9c8</HostId></Error>" }): [BR:KV:ErrKVStorage]tikv storage occur I/O error
Error: run `/root/.tiup/components/br/v5.3.0/br` (wd:/root/.tiup/data/Spfa3FJ) failed: exit status 1

4. What is your TiDB version? (Required)

5.3.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions