Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb 4000端口无法启动
[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]
The error is very clear: region is unavailable.
Are all the TiKV nodes up?
Is there any region loss?
TiKV has only one node, and it is up.
Is it a single replica? Check if there are any errors reported by TiKV and PD?
Found the cause of the problem. The time on the two nodes was inconsistent. After calibration, it worked.
NTP time synchronization needs to be deployed.
After calibrating the time, it works, but creating the database still reports the same error.
TiKV log:
PD log:
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.
First, clean up the environment before redeploying, or use different directories and ports. Perform a check before deployment.
I encountered this before as well. Just clean up the environment and redeploy.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.