Cluster startup failed check bootstrapped failed, error="[tikv:9005]Region is unavailable"

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

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

| username: TiDBer_8PQqVTE6

【TiDB Usage Environment】Production Environment
【TiDB Version】v6.1.0
【Encountered Problem】Failed to start the cluster, TiDB failed
image
【Problem Phenomenon and Impact】
tidb.log shows 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 shows issues:

【Suspicions and Questions】

  1. TiDB and PD are on the same machine and on the same disk, could this be an issue?
  2. TiKV: Where is the problem with “Region is unavailable”?
  3. The number of cores on the machine where TiFlash is located is as follows, does it meet the requirements?
    image

【Attachments】
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
| username: ealam_小羽 | Original post link

You can check the TiKV logs. The TiDB client logs only indicate that it cannot connect to TiKV.

It could also be caused by TiFlash not starting. Check the reason why TiFlash didn’t start?

| username: 近墨者zyl | Original post link

Following, progress :smile: