What is the solution for this error when configuring DM migration?

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

Original topic: 请问配置DM迁移的时候出现此报错解决办法是什么呢?

| username: TiDBer_1KScaFHo

[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#

| username: CuteRay | Original post link

Take a look at what the error message says. It indicates that the address specified by your master-addr is not the leader.

| username: 特雷西-迈克-格雷迪 | Original post link

It should be an issue with the DM cluster. Check the log files.

| username: tidb菜鸟一只 | Original post link

Use tiup dm display dm-test to check the status of your DM cluster.