Simulating Deployment of Production Environment Cluster on a Single Machine, Error: Timed out waiting for port 20160 to be started after 2m0s

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

Original topic: 在单机上模拟部署生产环境集群,报错timed out waiting for port 20160 to be started after 2m0s

| username: TiDBer_bRJZ3dB8

Could the experts please help me solve this problem? Thank you.

【TiDB Usage Environment】
Local testing (simulating a production environment cluster on a single machine)

【TiDB Version】
v6.1.0

【Reproduction Path】Error occurs after executing the cluster deployment command
Start command: tiup cluster start tidb-test --init

【Encountered Problem: Symptoms and Impact】
Error: Error: failed to start tikv: failed to start: 192.168.0.123 tikv-20160.service, please check the instance’s log (/home/tidb/tidb-deploy/tikv-20160/log) for more detail.: timed out waiting for port 20160 to be started after 2m0s

【Resource Configuration】
topo.yaml (1.2 KB)

【Attachments: Screenshots/Logs/Monitoring】
tikv.log (3.0 MB)

| username: Billmay表妹 | Original post link

  1. Check if it is a permission issue:
  1. First, check the firewall, network, and port occupancy, and check the network connectivity.
| username: 会飞的土拨鼠 | Original post link

Was it normal during initialization?


Check if the tidb user has read and write permissions for /tmp.

| username: 会飞的土拨鼠 | Original post link

Did you deploy using the tidb user or the root user?

| username: Ming | Original post link

Did you previously conduct deployment tests in that directory? Are there any residual files in the directory? You can specify a directory instead of using the default one and give it a try.

| username: TiDBer_bRJZ3dB8 | Original post link

Hello, it was started by the root user, so there shouldn’t be any permission issues. The firewall is not enabled, and the port query shows it is not in use. It was started by the root user on the local machine, so it does not involve network connectivity with other machines.

| username: TiDBer_bRJZ3dB8 | Original post link

Hello, does initialization refer to the step of tiup cluster deploy? There were no errors in this step. It was started using the root user, not the tidb user.

| username: TiDBer_bRJZ3dB8 | Original post link

Hello, it is the root user.

| username: TiDBer_bRJZ3dB8 | Original post link

Hello, I tried using tiup cluster destroy, cleared all the directories, but after re-executing, it’s still the same.

| username: 啦啦啦啦啦 | Original post link

Is the memory insufficient?

| username: Billmay表妹 | Original post link

What is your resource configuration like?
Did you deploy according to the official requirements TiDB 软件和硬件环境建议配置 | PingCAP 文档中心?

| username: WalterWj | Original post link

How large is your /home/tidb home directory disk?

| username: 会飞的土拨鼠 | Original post link

Could you please provide the configuration details of your local test machine, such as disk size, number of CPU cores, and memory size?

| username: system | Original post link

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