BR備份到GCP GCS Error: msg:"Io(Custom { kind: InvalidInput, error: \"missing credentials\" })" : [BR:KV:ErrKVUnknown]unknown tikv error

【TiDB 版本】: v4.0.10

【BR 版本】: v4.0.10

【问题描述】: 透過BR備份工具,備份到GCS時,出現以下錯誤訊息
Error: msg:“Io(Custom { kind: InvalidInput, error: "missing credentials" })” : [BR:KV:ErrKVUnknown]unknown tikv error

備份指令:
br backup full -u 10.210.6.42:2379 -c=0 --gcs.credentials-file /home/tidb/devops-296503-15712d14f89c.json -s gcs://dev_tidb_backup_bucket/dev-tidb-backup

https://docs.pingcap.com/zh/tidb/stable/backup-and-restore-storages
p.s. 上述devops-296503-15712d14f89c.json檔案已放置到TiDB節點/home/tidb路徑下

完整log檔案:
https://drive.google.com/file/d/1fRMyZfYwDy39Ox9S5fU6898PBN_uoUXM/view?usp=sharing

GCS僅產生backup.lock:

再麻煩顧問們協助解惑,感謝!
另外再請教顧問官方是否有從GCS還原的教學文件?

顧問好,

已找到問題。

主要是指令行需要多加入–send-credentials-to-tikv=true
br backup full -u 10.210.6.42:2379 -c=0 --gcs.credentials-file /home/tidb/devops-296503-15712d14f89c.json –send-credentials-to-tikv=true -s gcs://dev_tidb_backup_bucket/dev-tidb-backup
成功畫面:

GCS:

p.s.盼官方文檔能補齊GCS部份 僅找到以下AWS S3文章

:+1: 感谢分享

1 个赞

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。