Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 请问配置DM迁移的时候出现此报错解决办法是什么呢?

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version] 5.7.25-TiDB-v5.0.1
[Reproduction Path] What operations were performed to cause the issue
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]
root@jipeitao-virtual-machine:~/.tiup/bin# ./tiup dmctl --master-addr=192.168.3.24:8261 operate-source create mysql-01.yaml
tiup is checking updates for component dmctl …
A new version of dmctl is available:
The latest version: v7.0.0
Local installed version: v6.6.0
Update current component: tiup update dmctl
Update all components: tiup update --all
Starting component dmctl
: /root/.tiup/components/dmctl/v6.6.0/dmctl/dmctl --master-addr=192.168.3.24:8261 operate-source create mysql-01.yaml
Error: rpc error: code = Unknown desc = [code=38043:class=dm-master:scope=internal:level=high], Message: master is not leader, and can’t forward request to leader
root@jipeitao-virtual-machine:~/.tiup/bin#
root@jipeitao-virtual-machine:~/.tiup/bin#