tiflash 172.17.0.2:9000 failed to start: timed out waiting for port 9000 to be started after 2m0s

按照官方的文档,一步一步下来的, 启动报错。。。
第一次用,感觉挫败感很强。。
参考 的文档是“ 第二种:使用 TiUP cluster 在单机上模拟生产环境部署步骤”

启动集群
[root@7ef24bdea1ab tidb]# tiup cluster start hx-tidb-cluster
Starting component cluster: /root/.tiup/components/cluster/v1.1.1/tiup-cluster start hx-tidb-cluster
Starting cluster hx-tidb-cluster…

  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/hx-tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/hx-tidb-cluster/ssh/id_rsa.pub
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [ Serial ] - StartCluster
    Starting component pd
    Starting instance pd 172.17.0.2:2379
    Start pd 172.17.0.2:2379 success
    Starting component node_exporter
    Starting instance 172.17.0.2
    Start 172.17.0.2 success
    Starting component blackbox_exporter
    Starting instance 172.17.0.2
    Start 172.17.0.2 success
    Starting component tikv
    Starting instance tikv 172.17.0.2:20162
    Starting instance tikv 172.17.0.2:20160
    Starting instance tikv 172.17.0.2:20161
    Start tikv 172.17.0.2:20160 success
    Start tikv 172.17.0.2:20162 success
    Start tikv 172.17.0.2:20161 success
    Starting component tidb
    Starting instance tidb 172.17.0.2:4008
    Start tidb 172.17.0.2:4008 success
    Starting component tiflash
    Starting instance tiflash 172.17.0.2:9000
    retry error: operation timed out after 2m0s
    tiflash 172.17.0.2:9000 failed to start: timed out waiting for port 9000 to be started after 2m0s, please check the log of the instance

Error: failed to start tiflash: tiflash 172.17.0.2:9000 failed to start: timed out waiting for port 9000 to be started after 2m0s, please check the log of the instance: timed out waiting for port 9000 to be started after 2m0s

Verbose debug logs has been written to /root/tidb/logs/tiup-cluster-debug-2020-09-08-02-37-12.log.
Error: run /root/.tiup/components/cluster/v1.1.1/tiup-cluster (wd:/root/.tiup/data/S9xbJET) failed: exit status 1

查看集群
[root@7ef24bdea1ab tidb]# tiup cluster list
Starting component cluster: /root/.tiup/components/cluster/v1.1.1/tiup-cluster list
Name User Version Path PrivateKey


hx-tidb-cluster hxtidb v4.0.5 /root/.tiup/storage/cluster/clusters/hx-tidb-cluster /root/.tiup/storage/cluster/clusters/hx-tidb-cluster/ssh/id_rsa

yaml配置文件

global:
user: “hxtidb”
deploy_dir: /home/nscoffee/tidb/hxtidb/deploy
data_dir: /home/nscoffee/tidb/hxtidb/data

monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115

server_configs:
tidb:
log.slow-threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
replication.enable-placement-rules: true
tiflash:
logger.level: “info”

pd_servers:
- host: 172.17.0.2

tidb_servers:
- host: 172.17.0.2
port: 4008
tikv_servers:
- host: 172.17.0.2
port: 20160
status_port: 20170

    - host: 172.17.0.2
      port: 20161
      status_port: 20171

    - host: 172.17.0.2
      port: 20162
      status_port: 20172

tiflash_servers:
- host: 172.17.0.2

monitoring_servers:
- host: 172.17.0.2

grafana_servers:
- host: 172.17.0.2

您好通过您反馈问题关注到两个问题
1.官方建议 tiup 部署在普通用户下部署
image
可以参考如下文档
https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup#第-2-步在中控机上安装-tiup-组件
2.如果只是简单单机部署有以下两种
体验 TiDB 功能 建议 使用 tiup playground 进行体验测试
如果是开发测试 可以参考如下 配置模板进行配置.
不包含 TiFlash 的部署模板:https://github.com/pingcap/docs-cn/blob/release-4.0/config-templates/simple-mini.yaml
如果想体验下 TiFlash 列存性能,建议按照官方推荐的 最低配置进行测试部署
包含 TiFlash 的部署模板:https://github.com/pingcap/docs-cn/blob/release-4.0/config-templates/simple-tiflash.yaml

问题依旧,已切换新建的用户 hxtidb上来。执行日志如下。

[hxtidb@7ef24bdea1ab tidb]$ tiup cluster start hx-tidb-cluster
Starting component cluster: /home/hxtidb/.tiup/components/cluster/v1.1.1/tiup-cluster start hx-tidb-cluster
Starting cluster hx-tidb-cluster…

  • [ Serial ] - SSHKeySet: privateKey=/home/hxtidb/.tiup/storage/cluster/clusters/hx-tidb-cluster/ssh/id_rsa, publicKey=/home/hxtidb/.tiup/storage/cluster/clusters/hx-tidb-cluster/ssh/id_rsa.pub
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [Parallel] - UserSSH: user=hxtidb, host=172.17.0.2
  • [ Serial ] - StartCluster
    Starting component pd
    Starting instance pd 172.17.0.2:2379
    Start pd 172.17.0.2:2379 success
    Starting component node_exporter
    Starting instance 172.17.0.2
    Start 172.17.0.2 success
    Starting component blackbox_exporter
    Starting instance 172.17.0.2
    Start 172.17.0.2 success
    Starting component tikv
    Starting instance tikv 172.17.0.2:20162
    Starting instance tikv 172.17.0.2:20160
    Starting instance tikv 172.17.0.2:20161
    Start tikv 172.17.0.2:20160 success
    Start tikv 172.17.0.2:20161 success
    Start tikv 172.17.0.2:20162 success
    Starting component tidb
    Starting instance tidb 172.17.0.2:4008
    Start tidb 172.17.0.2:4008 success
    Starting component tiflash
    Starting instance tiflash 172.17.0.2:9000
    retry error: operation timed out after 2m0s
    tiflash 172.17.0.2:9000 failed to start: timed out waiting for port 9000 to be started after 2m0s, please check the log of the instance

Error: failed to start tiflash: tiflash 172.17.0.2:9000 failed to start: timed out waiting for port 9000 to be started after 2m0s, please check the log of the instance: timed out waiting for port 9000 to be started after 2m0s

Warn: Failed to write error debug log.
Error: run /home/hxtidb/.tiup/components/cluster/v1.1.1/tiup-cluster (wd:/home/hxtidb/.tiup/data/S9xr6HR) failed: exit status 1

您好麻烦截图展示下
tiup cluster list

tiup cluster display
确认集群部署成功以及 各部署组件状态

以及您测试服务器的配置
CPU 核数及主频
内存大小
磁盘类型及大小
网络带宽


我的系统桌面是linuxmint,安装了docker,在docker里面跑的tidb,用的centos最新版本

%E5%9B%BE%E7%89%87

%E5%9B%BE%E7%89%87

您好根据您的情况 ,与测试环境的部署标准相差较大.强烈建议在满足最低配置的服务器上进行 测试部署.
tiflash 是对资源要求较高的服务组件,根据我们的测试结果.您的服务器配置应该不能成功启动这个组件
至于docker 环境内部署.如果是个人尝试可以先检查下 docker 内操作系统的
/var/log/message 查看是否有Out of Memory 的关键字.

如果是个人电脑测试
还是强烈建议您使用
tiup playground 进行体验

不清楚硬件要求要多高才跑的起来,
现在内存已经是16GB,硬盘用的m2.0固态硬盘。
/var/log 目录下没有message文件
%E5%9B%BE%E7%89%87

详细的部署配置推荐可以参考如下文档
https://docs.pingcap.com/zh/tidb/stable/tiflash-deployment-topology#拓扑信息

https://docs.pingcap.com/zh/tidb/stable/hardware-and-software-requirements#开发及测试环境

tiup playground 快速部署可以参看
https://docs.pingcap.com/zh/tidb/stable/tiup-playground#启动多个组件实例

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