br 备份失败 the checkpoint mode is used, but the hashs of the configs are not the same

[root@192-168-56-238 tidb-community-toolkit-v8.2.0-linux-amd64]# ./br backup full --pd “192.168.56.241:2379” --storage “local:///app/backup” --log-file backupfull.log
Detail BR log in backupfull.log
[2024/08/07 21:11:59.825 +08:00] [INFO] [collector.go:77] [“Full Backup failed summary”] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: failed to backup to file:///app/backup, because the checkpoint mode is used, but the hashs of the configs are not the same. Please check the config: [BR:Common:ErrInvalidArgument]invalid argument

[root@192-168-56-238 tidb-community-toolkit-v8.2.0-linux-amd64]#
global:
user: tidb
ssh_port: 22
ssh_type: builtin
listen_host: 0.0.0.0
deploy_dir: /app/tidb-deploy
data_dir: /app/tidb-data
os: linux
arch: amd64
systemd_mode: system
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
deploy_dir: /app/tidb-deploy/monitored-9100
data_dir: /app/tidb-data/monitored-9100
log_dir: /app/tidb-deploy/monitored-9100/log
server_configs:
tidb:
instance.tidb_enable_ddl: true
lease: 45s
split-table: true
token-limit: 1000
tikv:
log-level: info
readpool.unified.min-thread-count: 1
pd: {}
tso: {}
scheduling: {}
tidb_dashboard: {}
tiflash: {}
tiproxy: {}
tiflash-learner: {}
pump: {}
drainer: {}
cdc: {}
kvcdc: {}
grafana: {}
tidb_servers:

  • host: 192.168.56.239
    ssh_port: 22
    port: 4000
    status_port: 10080
    deploy_dir: /app/tidb-deploy/tidb-4000
    log_dir: /app/tidb-deploy/tidb-4000/log
    arch: amd64
    os: linux
  • host: 192.168.56.240
    ssh_port: 22
    port: 4000
    status_port: 10080
    deploy_dir: /app/tidb-deploy/tidb-4000
    log_dir: /app/tidb-deploy/tidb-4000/log
    arch: amd64
    os: linux
  • host: 192.168.56.241
    ssh_port: 22
    port: 4000
    status_port: 10080
    deploy_dir: /app/tidb-deploy/tidb-4000
    log_dir: /app/tidb-deploy/tidb-4000/log
    arch: amd64
    os: linux
    tikv_servers:
  • host: 192.168.56.239
    ssh_port: 22
    port: 20160
    status_port: 20180
    deploy_dir: /app/tidb-deploy/tikv-20160
    data_dir: /app/tidb-data/tikv-20160
    log_dir: /app/tidb-deploy/tikv-20160/log
    config:
    log.level: warn
    arch: amd64
    os: linux
  • host: 192.168.56.240
    ssh_port: 22
    port: 20160
    status_port: 20180
    deploy_dir: /app/tidb-deploy/tikv-20160
    data_dir: /app/tidb-data/tikv-20160
    log_dir: /app/tidb-deploy/tikv-20160/log
    config:
    log.level: warn
    arch: amd64
    os: linux
  • host: 192.168.56.241
    ssh_port: 22
    port: 20160
    status_port: 20180
    deploy_dir: /app/tidb-deploy/tikv-20160
    data_dir: /app/tidb-data/tikv-20160
    log_dir: /app/tidb-deploy/tikv-20160/log
    config:
    log.level: warn
    arch: amd64
    os: linux
    tiflash_servers:
    tiproxy_servers:
    pd_servers:
  • host: 192.168.56.239
    ssh_port: 22
    name: pd-192.168.56.239-2379
    client_port: 2379
    peer_port: 2380
    deploy_dir: /app/tidb-deploy/pd-2379
    data_dir: /app/tidb-data/pd-2379
    log_dir: /app/tidb-deploy/pd-2379/log
    config:
    schedule.max-merge-region-keys: 200000
    schedule.max-merge-region-size: 20
    arch: amd64
    os: linux
  • host: 192.168.56.240
    ssh_port: 22
    name: pd-192.168.56.240-2379
    client_port: 2379
    peer_port: 2380
    deploy_dir: /app/tidb-deploy/pd-2379
    data_dir: /app/tidb-data/pd-2379
    log_dir: /app/tidb-deploy/pd-2379/log
    config:
    schedule.max-merge-region-keys: 200000
    schedule.max-merge-region-size: 20
    arch: amd64
    os: linux
  • host: 192.168.56.241
    ssh_port: 22
    name: pd-192.168.56.241-2379
    client_port: 2379
    peer_port: 2380
    deploy_dir: /app/tidb-deploy/pd-2379
    data_dir: /app/tidb-data/pd-2379
    log_dir: /app/tidb-deploy/pd-2379/log
    config:
    schedule.max-merge-region-keys: 200000
    schedule.max-merge-region-size: 20
    arch: amd64
    os: linux
    monitoring_servers:
  • host: 192.168.56.239
    ssh_port: 22
    port: 9090
    ng_port: 12020
    deploy_dir: /app/tidb-deploy/prometheus-8249
    data_dir: /app/tidb-data/prometheus-8249
    log_dir: /app/tidb-deploy/prometheus-8249/log
    external_alertmanagers:
    arch: amd64
    os: linux
    grafana_servers:
  • host: 192.168.56.239
    ssh_port: 22
    port: 3000
    deploy_dir: /app/tidb-deploy/grafana-3000
    arch: amd64
    os: linux
    username: admin
    password: admin
    anonymous_enable: false
    root_url: “”
    domain: “”
    alertmanager_servers:
  • host: 192.168.56.239
    ssh_port: 22
    web_port: 9093
    cluster_port: 9094
    deploy_dir: /app/tidb-deploy/alertmanager-9093
    data_dir: /app/tidb-data/alertmanager-9093
    log_dir: /app/tidb-deploy/alertmanager-9093/log
    arch: amd64
    os: linux

1.检查备份日志、2.检查配置文件哈希值 sha256sum /path/to/config 3.确认备份路径权限;目前就能想到这么多

查看日志信息

谢谢,这三项都查了,都没问题。我把备份目录换成 /tmp 或者换成 /home/tidb 等都可以备份。但是只要是 /app下面的目录就不行(/app/backup)。怀疑是不是因为/app 目录是数据库备份目录导致的

/app/backup里面有内容么?有的话能清理么?:thinking: 看你描述是目录有问题?
权限对么。

你换成app1/backup
改成777权限
chmod -R 777 app1/backup