DM 同步数据报错

[TiDB 版本]:3.0.12

[DM 版本]:v1.0.0-alpha-47-g3a13f06

[问题描述]:我这儿有套 TiDB 集群,之前用 DM 从 MySQL 同步数据,一直正常运行。最近观察到 TiDB 中的数据不再更新,发现 DM 报错了

"msg": "ERROR 1236 (HY000): A slave with the same server_uuid/server_id as this slave has connected to the master; the first event '' at 4, the last event read from '/data/mysql.bin/3306/mysql-bin.007889' at 974294017, the last byte read from '/data/mysql.bin/3306/mysql-bin.007889' at 974294017.\ngithub.com/pingcap/errors.AddStack\n\t/go/pkg/mod/github.com/pingcap/errors@v0.11.0/errors.go:174\ngithub.com/pingcap/errors.Trace\n\t/go/pkg/mod/github.com/pingcap/errors@v0.11.0/juju_adaptor.go:12\ngithub.com/pingcap/dm/relay.(*Relay).process\n\t/home/jenkins/workspace/build_dm_master/go/src/github.com/pingcap/dm/relay/relay.go:357\ngithub.com/pingcap/dm/relay.(*Relay).Process\n\t/home/jenkins/workspace/build_dm_master/go/src/github.com/pingcap/dm/relay/relay.go:173\ngithub.com/pingcap/dm/dm/worker.(*RelayHolder).run\n\t/home/jenkins/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/relay.go:107\ngithub.com/pingcap/dm/dm/worker.(*RelayHolder).Start.func1\n\t/home/jenkins/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/relay.go:83\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"

我看了一下任务的配置文件,没找到 server_uuid 或者 server_id 相关的配置。

请教这问题该如何解决,谢谢!

您好: 请检查你的配置文件inventory.ini中,是否配置了相同的server_id? 这里不同的dm-worker需要对应不同的service_id