Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 使用BR命令备份库失败,提示backup no leader
[TiDB Usage Environment] Production Environment
[TiDB Version]
[Encountered Issue]
An error occurs when executing the BACKUP command, indicating “backup no leader” (always reproducible). The logs specify a particular key, but I checked the TIKV_REGION_PEERS table and found that all regions have a leader.
[Reproduction Path] Execute the backup database command
[Attachments]
Where did you execute this command?
This was executed in the shell command line br 命令行手册 | PingCAP 文档中心
I am using the backup command in SQL, the principle should be the same. BACKUP | PingCAP 文档中心
Is it possible to successfully back up using the command line?
Ah, there’s no problem using the command line method. Thank you.
You’re welcome. I also read the documentation, and according to it, backups should be possible in SQL mode as well. If it’s not working, I’m not sure what the issue could be.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.