tiup cluster start power fail
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
os:ubuntu20.04
version:v8.5.1
topo.yaml
```
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/opt/tidb/tidb-deploy"
data_dir: "/opt/tidb/tidb-data"
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
instance.tidb_slow_log_threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
region-split-size: "16MB"
region-max-size: "16MB"
replication.enable-placement-rules: true
replication.location-labels: ["host"]
tiflash:
logger.level: "info"
pd_servers:
- host: 192.168.99.105
tidb_servers:
- host: 192.168.99.105
tikv_servers:
- host: 192.168.99.105
port: 20160
status_port: 20180
config:
server.labels: { host: "logic-host-1" }
tiflash_servers:
- host: 192.168.99.105
monitoring_servers:
- host: 192.168.99.105
grafana_servers:
- host: 192.168.99.105
```
run log
```
Starting cluster power...
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/power/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/power/ssh/id_rsa.pub
+ [Parallel] - UserSSH: user=tidb, host=192.168.99.105
+ [Parallel] - UserSSH: user=tidb, host=192.168.99.105
+ [Parallel] - UserSSH: user=tidb, host=192.168.99.105
+ [Parallel] - UserSSH: user=tidb, host=192.168.99.105
+ [Parallel] - UserSSH: user=tidb, host=192.168.99.105
+ [Parallel] - UserSSH: user=tidb, host=192.168.99.105
+ [ Serial ] - StartCluster
Starting component pd
Starting instance 192.168.99.105:2379
Start instance 192.168.99.105:2379 success
Starting component tikv
Starting instance 192.168.99.105:20160
Start instance 192.168.99.105:20160 success
Starting component tidb
Starting instance 192.168.99.105:4000
Error: failed to start tidb: failed to start: 192.168.99.105 tidb-4000.service, please check the instance's log(/opt/tidb/tidb-deploy/tidb-4000/log) for more detail.: timed out waiting for port 4000 to be started after 2m0s
```
status
```
root@lc-VirtualBox:/opt# tiup cluster display power
Cluster type: tidb
Cluster name: power
Cluster version: v8.5.1
Deploy user: tidb
SSH type: builtin
Dashboard URL: http://192.168.99.105:2379/dashboard
Dashboard URLs: http://192.168.99.105:2379/dashboard
Grafana URL: http://192.168.99.105:3000
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
192.168.99.105:3000 grafana 192.168.99.105 3000 linux/x86_64 Down - /opt/tidb/tidb-deploy/grafana-3000
192.168.99.105:2379 pd 192.168.99.105 2379/2380 linux/x86_64 Up|L|UI /opt/tidb/tidb-data/pd-2379 /opt/tidb/tidb-deploy/pd-2379
192.168.99.105:9090 prometheus 192.168.99.105 9090/12020 linux/x86_64 Down /opt/tidb/tidb-data/prometheus-9090 /opt/tidb/tidb-deploy/prometheus-9090
192.168.99.105:4000 tidb 192.168.99.105 4000/10080 linux/x86_64 Down - /opt/tidb/tidb-deploy/tidb-4000
192.168.99.105:9000 tiflash 192.168.99.105 9000/3930/20170/20292/8234/8123 linux/x86_64 N/A /opt/tidb/tidb-data/tiflash-9000 /opt/tidb/tidb-deploy/tiflash-9000
192.168.99.105:20160 tikv 192.168.99.105 20160/20180 linux/x86_64 Up /opt/tidb/tidb-data/tikv-20160 /opt/tidb/tidb-deploy/tikv-20160
Total nodes: 6
```
log
```
2025-05-29T11:12:09.671+0800 INFO SSHCommand {"host": "192.168.99.105", "port": "22", "cmd": "export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; ss -ltn", "stdout": "State Recv-Q Send-Q Local Address:Port Peer Address:Port Process \nLISTEN 0 4096 127.0.0.1:44767 0.0.0.0:* \nLISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* \nLISTEN 0 4096 127.0.0.1:43447 0.0.0.0:* \nLISTEN 0 128 0.0.0.0:22 0.0.0.0:* \nLISTEN 0 128 127.0.0.1:6010 0.0.0.0:* \nLISTEN 0 128 127.0.0.1:6011 0.0.0.0:* \nLISTEN 0 128 0.0.0.0:20180 0.0.0.0:* \nLISTEN 0 5 127.0.0.1:631 0.0.0.0:* \nLISTEN 0 128 [::]:22 [::]:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 5 [::1]:631 [::]:* \nLISTEN 0 4096 *:2380 *:* \nLISTEN 0 4096 *:2379 *:* \nLISTEN 0 128 [::1]:6011 [::]:* \nLISTEN 0 128 [::1]:6010 [::]:* \n", "stderr": ""}
2025-05-29T11:12:14.757+0800 INFO SSHCommand {"host": "192.168.99.105", "port": "22", "cmd": "export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; ss -ltn", "stdout": "State Recv-Q Send-Q Local Address:Port Peer Address:Port Process \nLISTEN 0 4096 127.0.0.1:44767 0.0.0.0:* \nLISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* \nLISTEN 0 4096 127.0.0.1:43447 0.0.0.0:* \nLISTEN 0 128 0.0.0.0:22 0.0.0.0:* \nLISTEN 0 128 127.0.0.1:6010 0.0.0.0:* \nLISTEN 0 128 127.0.0.1:6011 0.0.0.0:* \nLISTEN 0 128 0.0.0.0:20180 0.0.0.0:* \nLISTEN 0 5 127.0.0.1:631 0.0.0.0:* \nLISTEN 0 128 [::]:22 [::]:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 4096 *:20160 *:* \nLISTEN 0 5 [::1]:631 [::]:* \nLISTEN 0 4096 *:2380 *:* \nLISTEN 0 4096 *:2379 *:* \nLISTEN 0 128 [::1]:6011 [::]:* \nLISTEN 0 128 [::1]:6010 [::]:* \n", "stderr": ""}
2025-05-29T11:12:14.758+0800 DEBUG retry error {"error": "operation timed out after 2m0s"}
2025-05-29T11:12:14.758+0800 DEBUG TaskFinish {"task": "StartCluster", "error": "failed to start tidb: failed to start: 192.168.99.105 tidb-4000.service, please check the instance's log(/opt/tidb/tidb-deploy/tidb-4000/log) for more detail.: timed out waiting for port 4000 to be started after 2m0s", "errorVerbose": "timed out waiting for port 4000 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:92\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:131\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*BaseInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:169\ngithub.com/pingcap/tiup/pkg/cluster/operation.startInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:405\ngithub.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:535\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.7.0/errgroup/errgroup.go:78\nruntime.goexit\n\truntime/asm_amd64.s:1650\nfailed to start: 192.168.99.105 tidb-4000.service, please check the instance's log(/opt/tidb/tidb-deploy/tidb-4000/log) for more detail.\nfailed to start tidb"}
2025-05-29T11:12:14.758+0800 INFO Execute command finished {"code": 1, "error": "failed to start tidb: failed to start: 192.168.99.105 tidb-4000.service, please check the instance's log(/opt/tidb/tidb-deploy/tidb-4000/log) for more detail.: timed out waiting for port 4000 to be started after 2m0s", "errorVerbose": "timed out waiting for port 4000 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:92\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:131\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*BaseInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:169\ngithub.com/pingcap/tiup/pkg/cluster/operation.startInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:405\ngithub.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:535\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.7.0/errgroup/errgroup.go:78\nruntime.goexit\n\truntime/asm_amd64.s:1650\nfailed to start: 192.168.99.105 tidb-4000.service, please check the instance's log(/opt/tidb/tidb-deploy/tidb-4000/log) for more detail.\nfailed to start tidb"}
```
Contributor guide
Assessment
This issue has not been assessed yet.