Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: DM停止同步任务失败
【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”: [
]
}
The command is written incorrectly, followed by the task name
tiup dmctl --master-addr 192.168.111.111:8261 stop-task task-name
The command is incorrect, it should be followed by the task name
tiup dmctl --master-addr 192.168.111.111:8261 stop-task task-name
停止数据迁移任务 | PingCAP 文档中心
Writing the task’s file name is also acceptable
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.
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.
You’re welcome. If the issue is resolved, please mark it as solved (best answer) to help others find it easily.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.