Error "etcdserver: duplicate key given in txn request" when scaling up or down TiDB components

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

Original topic: 扩容或缩容TIDB组件时报etcdserver: duplicate key given in txn request错误

| username: TiDBer_hjacbdMD

【TiDB Usage Environment】Production Environment
【TiDB Version】v4.0.5
【Reproduction Path】Execute tiup cluster scale-in or tiup cluster scale-out
【Encountered Problem: Phenomenon and Impact】
Phenomenon: When executing tiup cluster scale-in or tiup cluster scale-out, an error “etcdserver: duplicate key given in txn request” is reported.
Impact: Unknown
【Attachments: Screenshots/Logs/Monitoring】


tiup-cluster-debug-2022-11-28-15-26-37.log (19.7 KB)

| username: srstack | Original post link

How do you import version v4.0.5 into tiup?

| username: buddyyuan | Original post link

You can first check if it is this issue: