Configuration Error When Creating a Task in DM

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

Original topic: DM创建任务时报配置错误

| username: TiDBer_8rWAgqMU

[tidb@slave006 bin]$ ./tiup dmctl --master-addr slave003:8261 start-task …/config/dm/task-jx03.yaml
tiup is checking updates for component dmctl …
Starting component dmctl: /home/tidb/.tiup/components/dmctl/v6.2.0/dmctl/dmctl --master-addr slave003:8261 start-task …/config/dm/task-jx03.yaml
{
“result”: false,
“msg”: “[code=20038:class=dm-master:scope=internal:level=high], Message: The configurations as following [global] are set in global configuration but instances don’t use them, Workaround: Please check the configuration files.”,
“sources”: [
],
“checkResult”: “”
}

Below is my configuration screenshot:

The configuration of syncers in the picture is according to the official documentation:

| username: Ming | Original post link

Is there a formatting error with an extra space?

| username: TiDBer_8rWAgqMU | Original post link

I checked it again carefully, but it still doesn’t work.

| username: jansu-dev | Original post link

If the issue has been resolved, please mark it as “Useful to me”.

| username: TiDBer_8rWAgqMU | Original post link

Still reporting the same error…
“msg”: “[code=20038:class=dm-master:scope=internal:level=high], Message: The configurations as following [global] are set in global configuration but instances don’t use them, Workaround: Please check the configuration files.”
1663837928(1)

| username: Ming | Original post link

I now think it might be a sequence issue.

| username: Ming | Original post link

The documentation mentions the configuration order divided into global configuration and instance configuration:

  1. Edit the global configuration
  2. Edit the instance configuration based on the global configuration
| username: Ming | Original post link

Change the order to make it a forward 123456 sequence and see if it works.

| username: jansu-dev | Original post link

How about copying the configuration file as it is? It would be more convenient to reproduce locally (just change the names in the fields).

| username: buchuitoudegou | Original post link

You configured the syncer’s config, but it is not used in the mysql-instances.

| username: wuxiangdong | Original post link

The syncer-config-name is not configured.

| username: Hacker007 | Original post link

The format of YAML is indented by two spaces. You can check it on Baidu.

| username: Tank001 | Original post link

Leave two letters blank, and it seems like there is no such line in the configuration, right?

| username: TiDBer_8rWAgqMU | Original post link

Okay, I’ll try again.

| username: TiDBer_8rWAgqMU | Original post link

Adding this configuration worked, thank you very much!

| username: TiDBer_8rWAgqMU | Original post link

Adding this configuration worked, thank you very much!!

| username: zhouzeru | Original post link

Learned a trick

| username: system | Original post link

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