部署启动的时候报错:
四台机器组了一个小集群做升级测试, 在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