启动报错: tidb ip:4000 failed to start: timed out waiting for port 4000 to be started after 2m0s

部署启动的时候报错:
四台机器组了一个小集群做升级测试, 在cluster start的时候报错了
以下是报错:

[tidb@bjgsyl059225 tidb-community-server-v4.0.0-linux-amd64]$ tiup cluster start tidb-test




Starting component blackbox_exporter
Starting instance 10.18.59.236
Start 10.18.59.236 success
Starting component tidb
Starting instance tidb 10.18.59.225:4000
retry error: operation timed out after 2m0s
tidb 10.18.59.225:4000 failed to start: timed out waiting for port 4000 to be started after 2m0s, please check the log of the instance

Error: failed to start tidb: tidb 10.18.59.225:4000 failed to start: timed out waiting for port 4000 to be started after 2m0s, please check the log of the instance: timed out waiting for port 4000 to be started after 2m0s

Verbose debug logs has been written to /app/tidb/tidb-community-server-v4.0.0-linux-amd64/logs/tiup-cluster-debug-2020-10-13-15-56-59.log.
Error: run /home/tidb/.tiup/components/cluster/v1.1.2/tiup-cluster (wd:/home/tidb/.tiup/data/SDHYEKx) failed: exit status 1

防火墙和端口应该没问题:
[root@bjgsyl059225 /]# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 10.18.59.225:2380 0.0.0.0:* LISTEN 2692/bin/pd-server
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1241/sshd
tcp 0 0 127.0.0.1:45281 0.0.0.0:* LISTEN 2692/bin/pd-server
tcp 0 0 127.0.0.1:46243 0.0.0.0:* LISTEN 2692/bin/pd-server
tcp6 0 0 :::2379 :::* LISTEN 2692/bin/pd-server
tcp6 0 0 :::9100 :::* LISTEN 2782/bin/node_expor
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 1241/sshd
tcp6 0 0 :::4505 :::* LISTEN 1380/java
tcp6 0 0 :::9115 :::* LISTEN 2845/bin/blackbox_e
udp 0 0 0.0.0.0:68 0.0.0.0:* 1110/dhclient
udp 0 0 127.0.0.1:323 0.0.0.0:* 885/chronyd
udp 0 0 0.0.0.0:17824 0.0.0.0:* 1110/dhclient
udp6 0 0 :::55671 :::* 1110/dhclient
udp6 0 0 ::1:323 :::* 885/chronyd

1赞

tiup-cluster-debug-2020-10-13-15-56-59.log (150.8 KB) topology.yaml (9.7 KB)
配置文件和日志如附件

1赞

more /app/tidb/tidb-deploy/tidb-4000/log/tidb.log 辛苦反馈下 welcome 字样附近的日志

1赞

tidb.log (681.2 KB)
welcome附件的日志有点多 我全部拿来下了
(刚刚注释掉所有的tiflash配置重试了一次)

1赞

你好,
辛苦执行 tiup cluster destroy tidb-test 并检查 pd deploy-dir 和 data dir 是否清理干净(此处可以检查其他节点的目录是否清理干净),在执行 tiup cluster deploy tidb-test 在进行 start 看是否成功。

1赞

感谢 搞定了

1赞

多问一句 tiup 的指令和文件在哪里有手册或者说明可以看呢?

1赞

客气了:


问题原因定位在 pd 目录不干净,需要保证部署目录为空

1赞

你好如何检查 pd deploy跟datadir

1赞

cd 呗,还能咋检查,看看又没目录就行了

1赞

你好,我也遇到这个问题,按你说的这个方法,还是没有成功启动

开个新帖看下问题,