使用TiUP Playground 快速部署本地测试环境 启动时报超时错误

[root@localhost ~]# tiup cluster start wsbtidb
Starting component cluster: start wsbtidb
Starting cluster wsbtidb…

  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/wsbtidb/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/wsbtidb/ssh/id_rsa.pub
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [ Serial ] - ClusterOperate: operation=StartOperation, options={Roles:[] Nodes:[] Force:false SSHTimeout:5 OptTimeout:120 APITimeout:300 IgnoreConfigCheck:false RetainDataRoles:[] RetainDataNodes:[]}
    Starting component pd
    Starting instance pd 1x’x.x’x.x’x0xx:2379
    ^CGot signal interrupt (Component: cluster ; PID: 25430)
    [root@localhost ~]# tiup cluster start wsbtidb
    Starting component cluster: start wsbtidb
    Starting cluster wsbtidb…
  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/wsbtidb/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/wsbtidb/ssh/id_rsa.pub
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [Parallel] - UserSSH: user=tidb, host=1x’x.x’x.x’x0xx
  • [ Serial ] - ClusterOperate: operation=StartOperation, options={Roles:[] Nodes:[] Force:false SSHTimeout:5 OptTimeout:120 APITimeout:300 IgnoreConfigCheck:false RetainDataRoles:[] RetainDataNodes:[]}
    Starting component pd
    Starting instance pd 11x’x.x’x.x’x0xx:2379
    retry error: operation timed out after 2m0s
    pd 192.168.153.130:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance

Error: failed to start: failed to start pd: pd 1x’x.x’x.x’x0xx:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance: timed out waiting for port 2379 to be started after 2m0s

麻烦查看一下
1、检查一下 192.168.153.130:2379 对应的 PD log 有没有异常报错抛出 ?


LISTEN 0 128 [::]:111 [::]:*
", “stderr”: “”}
2020-07-17T18:34:16.974+0800 INFO SSHCommand {“host”: “1xx.1xx.1xx.1xx”, “port”: “22”, “cmd”: “export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin ss -ltn”, “stdout”: "State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 32 1x.1xx.1xx.1:53 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 5 127.0.0.1:631 0.0.0.0:*
LISTEN 0 128 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 5 [::1]:631 [::]:*
LISTEN 0 128 [::]:111 [::]:*
", “stderr”: “”}
2020-07-17T18:34:18.454+0800 INFO SSHCommand {“host”: “1xx.1xx.1xx.1xx”, “port”: “22”, “cmd”: “export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin ss -ltn”, “stdout”: "State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 32 1xx.1xx.1xx.1:53 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 5 127.0.0.1:631 0.0.0.0:*
LISTEN 0 128 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 5 [::1]:631 [::]:*
LISTEN 0 128 [::]:111 [::]:*
", “stderr”: “”}
2020-07-17T18:34:18.454+0800 DEBUG retry error: operation timed out after 2m0s
2020-07-17T18:34:18.454+0800 ERROR pd 1xx.1xx.1xx.1xx:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance
2020-07-17T18:34:18.454+0800 DEBUG TaskFinish {“task”: “ClusterOperate: operation=StartOperation, options={Roles: Nodes: Force:false SSHTimeout:5 OptTimeout:120 APITimeout:300 IgnoreConfigCheck:false RetainDataRoles: RetainDataNodes:}”, “error”: “failed to start: failed to start pd: \tpd 1xx.1xx.1xx.130:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance: timed out waiting for port 2379 to be started after 2m0s”, “errorVerbose”: “timed out waiting for port 2379 to be started after 2m0s
github.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute
\tgithub.com/pingcap/tiup@/pkg/cluster/module/wait_for.go:90
github.com/pingcap/tiup/pkg/cluster/spec.PortStarted
\tgithub.com/pingcap/tiup@/pkg/cluster/spec/instance.go:90
github.com/pingcap/tiup/pkg/cluster/spec.(*instance).Ready
\tgithub.com/pingcap/tiup@/pkg/cluster/spec/instance.go:121
github.com/pingcap/tiup/pkg/cluster/operation.startInstance
\tgithub.com/pingcap/tiup@/pkg/cluster/operation/action.go:466
github.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1
\tgithub.com/pingcap/tiup@/pkg/cluster/operation/action.go:502
golang.org/x/sync/errgroup.(*Group).Go.func1
\tgolang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:57
runtime.goexit
\truntime/asm_amd64.s:1357
\tpd 1xx.1xx.1xx.1xx:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance
failed to start pd
failed to start”}
2020-07-17T18:34:18.454+0800 INFO Execute command finished {“code”: 1, “error”: “failed to start: failed to start pd: \tpd 1xx.1xx.1xx.1xx:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance: timed out waiting for port 2379 to be started after 2m0s”, “errorVerbose”: “timed out waiting for port 2379 to be started after 2m0s
github.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute
\tgithub.com/pingcap/tiup@/pkg/cluster/module/wait_for.go:90
github.com/pingcap/tiup/pkg/cluster/spec.PortStarted
\tgithub.com/pingcap/tiup@/pkg/cluster/spec/instance.go:90
github.com/pingcap/tiup/pkg/cluster/spec.(*instance).Ready
\tgithub.com/pingcap/tiup@/pkg/cluster/spec/instance.go:121
github.com/pingcap/tiup/pkg/cluster/operation.startInstance
\tgithub.com/pingcap/tiup@/pkg/cluster/operation/action.go:466
github.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1
\tgithub.com/pingcap/tiup@/pkg/cluster/operation/action.go:502
golang.org/x/sync/errgroup.(*Group).Go.func1
\tgolang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:57
runtime.goexit
\truntime/asm_amd64.s:1357
\tpd 1xx.1xx.1xx.1xx:2379 failed to start: timed out waiting for port 2379 to be started after 2m0s, please check the log of the instance
failed to start pd
failed to start”}

首先确认下您这边是想使用 playground 快速启动集群进行测试对吧?您这边命令使用错误,导致失败的,可以详细看下官方文档。


https://pingcap.com/docs-cn/stable/quick-start-with-tidb/#第一种使用-tiup-playground-快速部署本地测试环境