How to obtain the br parameters: What to fill in for ${access-key} and ${secret-access-key}

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

Original topic: br参数怎么来的:${access-key}和${secret-access-key}填写什么

| username: 点点-求助来了

[TiDB Usage Environment] Production Environment
[TiDB Version] 5.0.1
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]
tiup br backup full --pd “${PD_IP}:2379”
–backupts ‘2022-09-08 13:30:00’
–storage “s3://backup-101/snapshot-202209081330?access-key=${access-key}&secret-access-key=${secret-access-key}”
–ratelimit 128 \

How to get the br parameters: What should be filled in for ${access-key} and ${secret-access-key}

| username: WalterWj | Original post link

The key for S3 access.

| username: 点点-求助来了 | Original post link

How to do it, is there an example? I haven’t looked into it in detail.

| username: 点点-求助来了 | Original post link

Are you talking about cloud storage? That doesn’t mean this feature is unavailable without the cloud, right?

| username: tidb菜鸟一只 | Original post link

  1. Log in to the AWS Management Console or AWS IAM Console.
  2. In the left-hand menu, select “My Security Credentials” or “Users.”
  3. On the “Security Credentials” or “User Details” page, click the “Create Access Key” or “New Access Key” button in the “Access Keys” section.
  4. Click the “Download CSV” button to obtain a CSV file containing your Access Key ID and Secret Access Key. Note that the Secret Access Key is only visible at the time of creation and cannot be viewed again after leaving this page.
| username: tidb菜鸟一只 | Original post link

You don’t need to use S3, you can directly specify the local path --storage “local:///tmp/backup1”

| username: 点点-求助来了 | Original post link

Is it like this: tiup br backup full --pd “${PD_IP}:2379”
–backupts ‘2022-09-08 13:30:00’
–storage “/tmp/backup1”
–ratelimit 128

| username: 点点-求助来了 | Original post link

tiup is checking updates for component br …
Starting component br: /root/.tiup/components/br/v5.4.2/br backup full --pd 192.168.30.141:2379 --backupts 2022-09-08 13:30:00 --storage local:/home/tidb/databak --ratelimit 128
Detail BR log in /tmp/br.log.2023-04-22T13.34.01+0800
[2023/04/22 13:34:01.699 +08:00] [INFO] [collector.go:67] [“Full backup failed summary”] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: GC safepoint 440963060007698432 exceed TS 435844546560000000: [BR:Backup:ErrBackupGCSafepointExceeded]backup GC safepoint exceeded

| username: 点点-求助来了 | Original post link

tiup is checking updates for component br …
Starting component br: /root/.tiup/components/br/v5.4.2/br backup full --pd 192.168.30.141:2379 --backupts 2022-09-08 13:30:00 --storage local:/home/tidb/databak --ratelimit 128
Detail BR log in /tmp/br.log.2023-04-22T13.34.01+0800
[2023/04/22 13:34:01.699 +08:00] [INFO] [collector.go:67] [“Full backup failed summary”] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: GC safepoint 440963060007698432 exceed TS 435844546560000000: [BR:Backup:ErrBackupGCSafepointExceeded]backup GC safepoint exceeded

| username: tidb菜鸟一只 | Original post link

backupts 2022-09-08 13:30:00
This timestamp is too early, there’s no GC data available.

| username: 点点-求助来了 | Original post link

What should I do? It’s a test cluster, and I just created the database.

| username: 点点-求助来了 | Original post link

Got it, the time when executing the command was directly copied from the official documentation. Just change the time and it will be fine.

| username: 点点-求助来了 | Original post link

Error: error happened in store 4 at 192.168.30.139:20160: Io(Os { code: 2, kind: NotFound, message: “No such file or directory” }): [BR:KV:ErrKVStorage] TiKV storage encountered an I/O error

| username: 点点-求助来了 | Original post link

home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73
golang.org/x/sync/errgroup.(*Group).Go.func1
/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371"] [unit-name=“range start:7480000000000000355f69800000000000000100 end:7480000000000000355f698000000000000001fb”] [error=“rpc error: code = Canceled desc = context canceled”] [errorVerbose=“rpc error: code = Canceled desc = context canceled
github.com/tikv/pd/client.(*client).GetAllStores
/go/pkg/mod/github.com/tikv/pd@v1.1.0-beta.0.20211118054146-02848d2660ee/client/client.go:1523
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStores
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:142
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:179
github.com/pingcap/tidb/br/pkg/utils.WithRetry
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/retry.go:60
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:176
github.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRange
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:511
github.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRanges.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:471
github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73
golang.org/x/sync/errgroup.(*Group).Go.func1
/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371”] [unit-name=“range start:74800000000000003d5f69800000000000000100 end:74800000000000003d5f698000000000000001fb”] [error=“rpc error: code = Canceled desc = context canceled”] [errorVerbose=“rpc error: code = Canceled desc = context canceled
github.com/tikv/pd/client.(*client).GetAllStores
/go/pkg/mod/github.com/tikv/pd@v1.1.0-beta.0.20211118054146-02848d2660ee/client/client.go:1523
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStores
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:142
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:179
github.com/pingcap/tidb/br/pkg/utils.WithRetry
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/retry.go:60
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:176
github.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRange
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:511
github.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRanges.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:471
github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73
golang.org/x/sync/errgroup.(*Group).Go.func1
/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371”] [unit-name=“range start:7480000000000000515f720000000000000000 end:7480000000000000515f72ffffffffffffffff00”] [error=“rpc error: code = Canceled desc = context canceled”] [errorVerbose=“rpc error: code = Canceled desc = context canceled
github.com/tikv/pd/client.(*client).GetAllStores
/go/pkg/mod/github.com/tikv/pd@v1.1.0-beta.0.20211118054146-02848d2660ee/client/client.go:1523
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStores
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:142
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:179
github.com/pingcap/tidb/br/pkg/utils.WithRetry
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/retry.go:60
github.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:176
github.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRange
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:511
github.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRanges.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:471
github.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73
golang.org/x/sync/errgroup.(*Group).Go.func1
/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371”]
Error: error happen in store 4 at 192.168.30.139:20160: Io(Os { code: 2, kind: NotFound, message: “No such file or directory” }): [BR:KV:ErrKVStorage]tikv storage occur I/O error

| username: system | Original post link

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