集群启动失败check bootstrapped failed,error=“[tikv:9005]Region is unavailable”

【 TiDB 使用环境】生产环境
【 TiDB 版本】v6.1.0
【遇到的问题】启动集群,tidb失败
image
【问题现象及影响】
tidb.log显示Region is unavailable:

[2022/11/02 10:55:59.137 +08:00] [FATAL] [session.go:3068] [“check bootstrapped failed”] [error=“[tikv:9005]Region is unavailable”] [stack=“github.com/pingcap/tidb/session.getStoreBootstrapVersion\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:3068\ngithub.com/pingcap/tidb/session.BootstrapSession\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2843\nmain.createStoreAndDomain\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:296\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/tidb-server/main.go:202\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”]

tiflash显示有问题:

【怀疑及问题】
1.tidb和pd在同一台机器上,并且在同一磁盘,会不会有问题
2.tikv:Region is unavailable是哪里出了问题
3.tiflash所在的机器核数如下,是不是不满足需求
image

【附件】
tidb.log (411.1 KB)

topology.yaml:

pd_servers:
  - host: 172.17.0.154

tidb_servers:
  - host: 172.17.0.154

tikv_servers:
  - host: 172.17.0.155
  - host: 172.17.0.156
  - host: 172.17.0.157

tiflash_servers:
  - host: 172.17.0.158
    data_dir: /tidb-data/tiflash-9000
    deploy_dir: /tidb-deploy/tiflash-9000

monitoring_servers:
  - host: 172.17.0.159

grafana_servers:
  - host: 172.17.0.159

alertmanager_servers:
  - host: 172.17.0.159

可以看一下 Tikv 的日志,tidb 的这个客户端日志只能表明连不上 tikv


https://docs.pingcap.com/zh/tidb/stable/tidb-troubleshooting-map#11-客户端报-region-is-unavailable-错误
也有可能是 TiFlash 没起来导致的,看一下 TiFlash 没起来的原因?

https://docs.pingcap.com/zh/tidb/stable/backup-and-restore-faq#使用-br-恢复备份数据后sql-查询报错-region-is-unavailable

关注,进展 :smile: