tidb5.0.2的ticdc无法启动

Bug 反馈
清晰准确地描述您发现的问题,提供任何可能复现问题的步骤有助于研发同学及时处理问题
【 Bug 的影响】
安装过程中tidb集群启动不了
【可能的问题复现步骤】
tiup cluster start tidb-test
【看到的非预期行为】

2021-06-10T17:11:13.824+0800 INFO Execute command finished {“code”: 1, “error”: “failed to start cdc: failed to start: 192.12.114.137 cdc-8300.service, please check the instance’s log(/data/tidb/deploy/cdc-8300/log) for more detail.: timed out waiting for port 8300 to be started after 2m0s”, “errorVerbose”: “timed out waiting for port 8300 to be started after 2m0s
github.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute
\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:91
github.com/pingcap/tiup/pkg/cluster/spec.PortStarted
\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:115
github.com/pingcap/tiup/pkg/cluster/spec.(*BaseInstance).Ready
\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:147
github.com/pingcap/tiup/pkg/cluster/operation.startInstance
\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:351
github.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1
\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:454
golang.org/x/sync/errgroup.(*Group).Go.func1
\tgolang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57
runtime.goexit
\truntime/asm_amd64.s:1371
failed to start: 192.12.114.137 cdc-8300.service, please check the instance’s log(/data/tidb/deploy/cdc-8300/log) for more detail.
failed to start cdc”}
【期望看到的行为】
正常启动
【相关组件及具体版本】
tidb 5.0.2
【其他背景信息或者截图】
[root@tidb-ticdc-01 cdc-8300]# ll
total 16
drwxr-xr-x 2 tidb tidb 4096 Jun 10 16:43 bin
drwxr-xr-x 2 tidb tidb 4096 Jun 10 16:43 conf
drwxr-xr-x 2 tidb tidb 4096 Jun 10 16:44 log
drwxr-xr-x 2 tidb tidb 4096 Jun 10 16:43 scripts

[root@tidb-ticdc-01 cdc-8300]# ./scripts/run_cdc.sh
Error: unknown flag: --data-dir
[root@tidb-ticdc-01 cdc-8300]# grep data-dir scripts/run_cdc.sh
–data-dir=“/data/tidb/data/cdc-8300” \

对比5.0.1版本ticdc的启动脚本run_cdc.sh多出了data-dir参数

tiup的版本是v1.5.0,以前用v1.4.1部署的tidb5.0.1在文件run_cdc.sh没有data-dir配置项

经过分析验证是tiup的组件cluster1.5.0版本的问题,它会在run_cdc.sh增加配置项data-dir,而ticdc不支持此配置项,如果将cluster回退到1.4.x版本就没问题了

我也遇到同样的问题。。。。
请问:如何回退 tiup cluster 版本呀。

先删除 tiup uninstall cluster:v1.5.0
然后tiup list cluster检查一下,没有的话安装 tiup install cluster:v1.4.1

升级到 v1.5.1 应该就可以了,多谢。

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。