Failed to Stop DM Synchronization Task

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

Original topic: DM停止同步任务失败

| username: TiDBer_lW81TNHi

【TiDB Usage Environment】Production
【DN Version】v5.4.2
【Encountered Problem】Failed to stop data synchronization task

tiup dmctl --master-addr 192.168.111.111:8261 stop-task ./task_189.yaml

Starting component dmctl: /home/tidb/.tiup/components/dmctl/v6.1.0/dmctl/dmctl --master-addr 192.168.111.111:8261 stop-task ./task_189.yaml
{
“op”: “Delete”,
“result”: false,
“msg”: “[code=38041:class=dm-master:scope=internal:level=medium], Message: invalid op 7 on task”,
“sources”: [
]
}

| username: db_user | Original post link

The command is written incorrectly, followed by the task name

tiup dmctl --master-addr 192.168.111.111:8261 stop-task task-name

| username: TiDBer_lW81TNHi | Original post link

:joy::joy: Writing the task’s file name is also acceptable

| username: db_user | Original post link

Okay, my bad, I’m used to using the task name. Try changing dmctl to version 5.4. I noticed that dm is version 5.4 and ctl is version 6.1, which should be causing the version incompatibility.

| username: TiDBer_lW81TNHi | Original post link

Yes, the dmctl version issue. I installed the latest version by default, but after switching back to the same version as dm, it worked. Thanks, expert.

| username: db_user | Original post link

You’re welcome. If the issue is resolved, please mark it as solved (best answer) to help others find it easily.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.