TiDB 4000 Port Fails to Start

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

Original topic: tidb 4000端口无法启动

| username: TiDBer_lF5whaJ3

[Test Environment for TiDB] Testing
[TiDB Version] v6.1.0
[Reproduction Path] Install TiDB environment, TiDB port 4000 fails to start
[Encountered Problem: Symptoms and Impact] TiDB init fails to start
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]

| username: 裤衩儿飞上天 | Original post link

The error is very clear: region is unavailable.
Are all the TiKV nodes up?
Is there any region loss?

| username: TiDBer_lF5whaJ3 | Original post link

TiKV has only one node, and it is up.

| username: 裤衩儿飞上天 | Original post link

Is it a single replica? Check if there are any errors reported by TiKV and PD?

| username: TiDBer_lF5whaJ3 | Original post link

Found the cause of the problem. The time on the two nodes was inconsistent. After calibration, it worked.

| username: Kongdom | Original post link

NTP time synchronization needs to be deployed.

| username: TiDBer_lF5whaJ3 | Original post link

After calibrating the time, it works, but creating the database still reports the same error.
TiKV log:


PD log:

| username: WalterWj | Original post link

Is the environment not clean? There was a cluster before, and it was not cleaned up properly, leading to the reuse of directories during the new deployment.

| username: 裤衩儿飞上天 | Original post link

First, clean up the environment before redeploying, or use different directories and ports. Perform a check before deployment.

| username: liuis | Original post link

I encountered this before as well. Just clean up the environment and redeploy.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.